//用户登陆检查
function CheckInput()
{
	if (document.regform.u_name.value=="")
	{
		alert ("请输入用户名！");
		document.regform.u_name.focus();
		return false;
	}
	if (document.regform.u_password.value=="")
	{
		alert ("请输入用户密码！");
		document.regform.u_password.focus();
		return false;
	}
}
//检查是否a-z,0-9,-
function CheckIfEnglish( String )
{
    var Letters = "abcdefghijklmnopqrstuvwxyz1234567890-";
     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.frmsearchInt.name.value == "") {
		alert("请输入您要查询的英文域名。");
		document.frmsearchInt.name.focus();
		return false;
	}
if (!CheckIfEnglish(document.frmsearchInt.name.value )) {
		alert("在查询英文域名应输入小写英文字母，不能输入中文及非法字符！");
		document.frmsearchInt.name.focus();
		return false;
	}
	document.frmsearchInt.searchType.value = "IntDomain";
	return true;
}

