function check(form){
	if(form.All.checked == true){
		for(i=0;i<form.postfix.length;i++){
			form.postfix[i].checked = true;
			}
	}
	else{
		for(i=0;i<form.postfix.length;i++){
		form.postfix[i].checked = false;
			}
	}
}
//英文域名
function judge1(){
	var domain = document.SearchForm1.domain.value;
	if(domain.value=="注册域名请先查询"){
		alert("请在输入框中输入您想要注册的域名！");
		document.SearchForm1.domain.focus();
		return false;
	}
	if(domain == ""){
		alert("请输入要查询的域名！");
		document.SearchForm1.domain.focus();
		return false;
	}
	if(domain.indexOf(",") != -1||domain.indexOf("，") != -1||domain.indexOf(".") != -1||domain.indexOf("。") != -1){
		alert("查询的域名中含有非法字符！");
		document.SearchForm1.domain.focus();
		return false;
	}
	if(domain.length > 60){
		alert("输入的域名长度不得大于60个字符！");
		document.SearchForm1.domain.focus();
		return false;
	  }
	else{
	var isEnglish = "1" ;
	for(i=0; i<domain.length; i++){
		 c = domain.charCodeAt(i);
		if(c>127){
			isEnglish = "0";
			break;
		}
	}
	if(isEnglish == "0"){
		alert("输入的域名中含有中文字符！");
		document.SearchForm1.domain.focus();
		return false;
	}
}
	var k = 0;
	for(i=0;i<SearchForm1.postfix.length;i++){
		if(SearchForm1.postfix[i].checked){
		  k++;
		}
	}
	if(k == 0){
		alert("请勾选要查询的域名后缀！");
		return false;
	}
	else{
		return true;
	}
}
//中文域名
function judge2(){
	if((document.SearchForm2.domain.value == "")||(domain.value=="注册域名请先查询")){
		alert("请输入要查询的域名！");
		document.SearchForm2.domain.focus();
		return false;
	}
	 if((document.SearchForm2.domain.value .indexOf(",")!=-1)||(document.SearchForm2.domain.value .indexOf("，")!=-1)||(document.SearchForm2.domain.value .indexOf(".")!=-1)||(document.SearchForm2.domain.value .indexOf("。")!=-1)){
		alert("查询的域名中含有非法字符！");
		document.SearchForm2.domain.focus();
		return false;
	}
	if(document.SearchForm2.domain.value.length > 60){
		alert("输入的域名长度不得大于60个字符！");
		document.SearchForm2.domain.focus();
		return false;
	} 
	if(/[\u4E00-\u9FA5]+/g.test(document.SearchForm2.domain.value)==false) {
		alert("输入的域名中必须含有汉字！");
		document.SearchForm2.domain.focus();
		return false;
	}
	if(document.SearchForm2.domain.value.split(",").length > 5){
		alert("输入的域名的名字不得超过5个！");
		document.SearchForm2.domain.focus();
		return false
	}
	var k = 0;
	for(i=0;i<SearchForm2.postfix.length;i++){
		if(SearchForm2.postfix[i].checked){
			k++;
		}
	}
	if(k == 0){
		alert("请勾选要查询的域名后缀！");
		return false;
	}
	else{
		return true;
	}
}
function judge5(){	
if(commonAddress == ""){
	alert("请输入要查询的通用网址！");
	document.SearchForm3.domainnamet1.focus();
	return false;  
}
	return true
}//通用网址
function judge3(){		//通用网址
	var commonAddress = document.SearchForm3.domainnamet1.value;
	var ipv4_1Reg =/^[ ]*(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])[ ]*$/;
	var ipv4_2Reg =/^[ ]*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])) - ((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))[ ]*$/;
	var ipv4_3Reg =/^[ ]*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\/([12]?[0-9]|3[012])[ ]*$/;
if(commonAddress == ""){
	alert("请输入要查询的通用网址！");
	document.SearchForm3.domainnamet1.focus();
	return false;  
}
if(commonAddress.length > 60){
	alert("输入的域名长度不得大于60！");
	document.SearchForm3.domainnamet1.focus();
	return false;
}
if ((commonAddress .indexOf(",")!=-1)||(commonAddress .indexOf("，")!=-1)||(commonAddress .indexOf(".")!=-1) || (commonAddress .indexOf("。")!=-1) && (!ipv4_1Reg.test(commonAddress) && !ipv4_2Reg.test(commonAddress) && !ipv4_3Reg.test(commonAddress))) {
	alert("您输入的通用网址中含有非法字符！");
	document.SearchForm3.domainnamet1.focus();
	return false; 
}
	return true;
}
function judge4(){		//通用网址
var commonAddress = document.SearchForm4.domainnamet2.value;
var ipv4_1Reg =/^[ ]*(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])[ ]*$/;
var ipv4_2Reg =/^[ ]*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])) - ((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))[ ]*$/;
var ipv4_3Reg =/^[ ]*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\/([12]?[0-9]|3[012])[ ]*$/;
if(commonAddress == ""){
	alert("请输入要查询的通用网址！");
	document.SearchForm4.domainnamet2.focus();
	return false;  
}
if(commonAddress.length > 60){
	alert("输入的域名长度不得大于60！");
	document.SearchForm4.domainnamet2.focus();
	return false;
}
if ((commonAddress .indexOf(",")!=-1)||(commonAddress .indexOf("，")!=-1)||(commonAddress .indexOf(".")!=-1) || (commonAddress .indexOf("。")!=-1) && (!ipv4_1Reg.test(commonAddress) && !ipv4_2Reg.test(commonAddress) && !ipv4_3Reg.test(commonAddress))){
	alert("您输入的通用网址中含有非法字符！");
	document.SearchForm4.domainnamet2.focus();
	return false; 
}
	return true;
}
function judgemobi(){	//英文域名
var domain = document.SearchFormMobi.domain.value;
if(domain == ""){
	alert("请输入要查询的域名！");
	document.SearchFormMobi.domain.focus();
	return false;
}
if(domain.indexOf(",") != -1||domain.indexOf("，") != -1||domain.indexOf(".") != -1||domain.indexOf("。") != -1){
	alert("查询的域名中含有非法字符！");
	document.SearchFormMobi.domain.focus();
	return false;
}
if((domain.length > 63)||(domain.length < 3)||(domain.value=="注册域名请先查询")){
	alert("输入的域名长度不得大于63个字符,小于3个字符！，请在输入框中输入您想要注册的域名！");
	document.SearchFormMobi.domain.focus();
	return false;
}
else{
		var isEnglish = "1" ;
		for(i=0; i<domain.length; i++)
		{
			 c = domain.charCodeAt(i);
			if(c>127)
			{
				isEnglish = "0";
				break;
			}
		}
	if(isEnglish == "0"){
		alert("输入的域名中含有中文字符！");
		document.SearchFormMobi.domain.focus();
		return false;
	}
}
	var k = 0;
	if(SearchFormMobi.postfix.checked){
		k++;
	}
	if(k == 0){
		alert("请勾选要查询的域名后缀！");
		return false;
	}
	else{
		return true;
	}
}
