//检查会员ＩＤ的
function checkform()
{
if (message.username.value == "")
  {
    alert("请输入你的会员号。");
    message.username.focus();
    return false;
  }
 if (message.password.value == "")
  {
    alert("请输入你的密码。");
    message.password.focus();
    return false;
  }
 
  return (true);
}


function CheckIfEnglish( String )
{ 
    var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-";
     var i;
     var c;
      if(String.charAt( 0 )=='-')
	return false;
      if( String.charAt( String.length - 1 ) == '-' )
          return false;
     for( i = 0; i < String.length; i ++ )
     {
          c = String.charAt( i );
	  if (Letters.indexOf( c ) < 0)
	     return false;
     }
     return true;
}
//检查国际域名查询
function submitchecken() {

	if (document.checker.Domain.value == "") {
		alert("请输入您要查询的英文域名。");
		document.checker.Domain.focus();
		return false;
	}

if (!CheckIfEnglish(document.checker.Domain.value )) {
		alert("在查询英文域名应输入英文\n不能输入中文及非法字符！");
		document.checker.Domain.focus();
		return false;
	}
	return true;
}

//检查网站建设意向表单
function checkwebform() {

	if (document.webform.company.value == "") {
		alert("请输入您的公司名称！");
		document.webform.company.focus();
		return false;
	}
		if (document.webform.domain.value == "") {
		alert("请输入网址！");
		document.webform.domain.focus();
		return false;
	}
		if (document.webform.name.value == "") {
		alert("请输入您的姓名！");
		document.webform.name.focus();
		return false;
	}
		if (document.webform.tel.value == "") {
		alert("请输入电话！");
		document.webform.tel.focus();
		return false;
	}
		if (document.webform.email.value == "") {
		alert("请输入您的邮箱！");
		document.webform.email.focus();
		return false;
	}	if (document.webform.adress.value == "") {
		alert("请输入地址！");
		document.webform.adress.focus();
		return false;
	}
	if (document.webform.detail.value == "") {
		alert("请输入备注！");
		document.webform.detail.focus();
		return false;
	}

}

//检测－查询已开通城市表单

function checkcityname() {

	if (document.cityname.r_city.value == "") {
		alert("请输入您要查询的城市！");
		document.cityname.r_city.focus();
		return false;
	}

}
//检测－城市域名、邮箱查询
function checkcitydomain() {

	if (document.city.domain.value == "") {
		alert("请输入您要查询的域名或邮箱！");
		document.city.domain.focus();
		return false;
	}
	if (document.city.city_do.value == "") {
		alert("请输入您要查询的域名或邮箱所在的城市的域名！");
		document.city.city_do.focus();
		return false;
	}

if (!CheckIfEnglish(document.city.domain.value )) {
		alert("在查询城市域名应输入英文\n不能输入中文及非法字符！");
		document.city.domain.focus();
		return false;
	}
	return true;
}
//城市域名邮箱注册表单检测
function checkmaildomain() {

	if (document.maildomain.mail_domain.value == "") {
		alert("请输入您要查询的域名！");
		document.maildomain.mail_domain.focus();
		return false;
	}
	if (document.maildomain.c_domain.value == "") {
		alert("请输入您要查询的城市！");
		document.maildomain.c_domain.focus();
		return false;
	}



if (!CheckIfEnglish(document.maildomain.mail_domain.value )) {
		alert("在查询城市域名应输入英文\n不能输入中文及非法字符！");
		document.maildomain.mail_domain.focus();
		return false;
	}
	return true;
}
//检查网站推广申请表
function checkwebbillform()
{
if (webbill.url.value == "")
  {
    alert("请填写网站网址。");
    webbill.url.focus();
    return false;
  }
if (webbill.title.value == "")
  {
    alert("请填写网站标题。");
    webbill.title.focus();
    webbill.title.select();
    return false;
  }
if (webbill.detail.value == "")
  {
    alert("网站介绍必须填写。");
    webbill.detail.focus();
    webbill.detail.select();
    return false;
  }
if (webbill.email.value == "")
  {
    alert("请输入你的email。");
    webbill.email.focus();
    webbill.email.select();
    return false;
  }
if (webbill.dtel.value == "")
  {
    alert("请输入你的电话号码。");
    webbill.tel.focus();
    webbill.tel.select();
    return false;
  }
  return true;
}

function checkagent() {
     if (document.agent.webname.value == "") {
		alert("请输入网站名称！");
		document.agent.webname.focus();
		return false;
	}
	  if (document.agent.name.value == "") {
		alert("请输入姓名！");
		document.agent.name.focus();
		return false;
	}
	 if (document.agent.tel.value == "") {
		alert("请输入电话！");
		document.agent.tel.focus();
		return false;
	}
	 if (document.agent.adress.value == "") {
		alert("请输入地址！");
		document.agent.adress.focus();
		return false;
	}
	if (document.agent.detail.value == "") {
		alert("请输入代理优势！");
		document.agent.detail.focus();
		return false;
	}
	if (document.agent.company.value == "") {
		alert("请输入公司！");
		document.agent.company.focus();
		return false;
	}
	if (document.agent.email.value == "") {
		alert("请输入电子邮件！");
		document.agent.email.focus();
		return false;
	}
   if (document.agent.sex.value == "") {
		alert("请输入性别！");
		document.agent.sex.focus();
		return false;
	}
}

//跳转菜单
function FormMenu(targ,selObj,restore){ 
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}