function jump2whoisnet()
	{
		var strName,v1; 
		var c;
		var i;
		strName = document.frmwhoisnet.name.value;
		var isEnglish = "1" ;
		//byte[] buf = strName.getBytes();
		for(i=0; i<strName.length; i++)
		{
			 c = strName.charCodeAt(i);
			if(c>127)
			{
				isEnglish = "0";
				break;
			}
		}
		for(i=0; i<document.frmwhoisnet.ws.length; i++)
		{
			if (document.frmwhoisnet.ws[i].checked)
			{
				v1=document.frmwhoisnet.ws[i].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 (v1=="com")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".com")
					{
						strName = strName + ".com";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
				} else {
					alert("请输入所要查询的com域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".com")
					{
						strName = strName + ".com";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
			    } else {
					alert("请输入所要查询的com域名");
			    }
			 }
		}else if (v1=="net")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".net")
					{
						strName = strName + ".net";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
				} else {
					alert("请输入所要查询的net域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".net")
					{
						strName = strName + ".net";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
			    } else {
					alert("请输入所要查询的net域名");
			    }
			 }
		}else if (v1=="org")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".org")
					{
						strName = strName + ".org";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
				} else {
					alert("请输入所要查询的org域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".org")
					{
						strName = strName + ".org";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
			    } else {
					alert("请输入所要查询的org域名");
			    }
			 }
		}else if (v1=="cc")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".cc")
					{
						strName = strName + ".cc";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
				} else {
					alert("请输入所要查询的cc域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".cc")
					{
						strName = strName + ".cc";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
			    } else {
					alert("请输入所要查询的cc域名");
			    }
			 }
		}else if (v1=="cc")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".cc")
					{
						strName = strName + ".cc";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
				} else {
					alert("请输入所要查询的cc域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".cc")
					{
						strName = strName + ".cc";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
			    } else {
					alert("请输入所要查询的cc域名");
			    }
			 }
		}else if (v1=="info")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".info")
					{
						strName = strName + ".info";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
				} else {
					alert("请输入所要查询的info域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".info")
					{
						strName = strName + ".info";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
			    } else {
					alert("请输入所要查询的info域名");
			    }
			 }
		}else if (v1=="biz")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".biz")
					{
						strName = strName + ".biz";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
				} else {
					alert("请输入所要查询的biz域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".biz")
					{
						strName = strName + ".biz";
					}
					
					window.open("http://reports.internic.net/cgi/whois?whois_nic="+strName+"&type=domain","_blank")
			    } else {
					alert("请输入所要查询的biz域名");
			    }
			 }
		}

		return false
	}
	
	
	
	
	function jump2whois()
	{
		var strName,v1; 
		var c;
		var i;
		strName = document.frmwhois.name.value;
		var isEnglish = "1" ;
		//byte[] buf = strName.getBytes();
		for(i=0; i<strName.length; i++)
		{
			 c = strName.charCodeAt(i);
			if(c>127)
			{
				isEnglish = "0";
				break;
			}
		}
		for(i=0; i<document.frmwhois.ws.length; i++)
		{
			if (document.frmwhois.ws[i].checked)
			{
				v1=document.frmwhois.ws[i].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(v1=="ip")
         {
         	if(ipv4_1Reg.test(strName) || ipv4_2Reg.test(strName) || ipv4_3Reg.test(strName))
          	{
            	window.location.href="http://ipwhois.cnnic.net.cn/ipwhoisresult.php?query_option=ipv4&txtquery="+strName+"";
             } else {
             	if (strName.indexOf(":")!=-1)
                {
                	window.location.href="http://ipwhois.cnnic.net.cn/ipwhoisresult.php?query_option=ipv6&txtquery="+strName+"";
                 } else {
                 	alert("请输入所要查询的IP地址");
                 }
             }
         }else if (v1=="cn")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".cn")
					{
						strName = strName + ".cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
				} else {
					alert("请输入所要查询的CN域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".cn")
					{
						strName = strName + ".cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
			    } else {
					alert("请输入所要查询的CN域名");
			    }
			 }
		}else if (v1=="com.cn")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".com.cn")
					{
						strName = strName + ".com.cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
				} else {
					alert("请输入所要查询的com.cn域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".com.cn")
					{
						strName = strName + ".com.cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
			    } else {
					alert("请输入所要查询的com.cn域名");
			    }
			 }
		}else if (v1=="net.cn")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".net.cn")
					{
						strName = strName + ".net.cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
				} else {
					alert("请输入所要查询的net.cn域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".net.cn")
					{
						strName = strName + ".net.cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
			    } else {
					alert("请输入所要查询的net.cn域名");
			    }
			 }
		}else if (v1=="org.cn")
		 {
			if (((strName .indexOf(".")!=-1) || (strName .indexOf("。")!=-1)) && (!ipv4_1Reg.test(strName) && !ipv4_2Reg.test(strName) && !ipv4_3Reg.test(strName)))
			{
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".org.cn")
					{
						strName = strName + ".org.cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
				} else {
					alert("请输入所要查询的org.cn域名");
				}
			 }else {
				if(isEnglish != "0")
				{
					if(strName.substring(strName.length-3,strName.length)!=".org.cn")
					{
						strName = strName + ".org.cn";
					}
					
					window.open("http://ewhois.cnnic.cn/validatecode/validate.jsp?value="+strName+"&entity=domain&service=/whois&inputfield=value","_blank")
			    } else {
					alert("请输入所要查询的org.cn域名");
			    }
			 }
		}


		return false
	}
	
	
	function jump2whoisch()
	{
		var strNamech,v1; 
		var c;
		var i;
		strNamech = document.frmwhoisch.name.value;
		var isEnglish = "1" ;
		//byte[] buf = strNamech.getBytes();
		for(i=0; i<strNamech.length; i++)
		{
			 c = strNamech.charCodeAt(i);
			if(c>127)
			{
				isEnglish = "0";
				break;
			}
		}
		for(i=0; i<document.frmwhoisch.ws.length; i++)
		{
			if (document.frmwhoisch.ws[i].checked)
			{
				v1=document.frmwhoisch.ws[i].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 (v1=="zh")
		{
			if ((strNamech .indexOf(".")!=-1) || (strNamech .indexOf("。")!=-1) && (!ipv4_1Reg.test(strNamech) && !ipv4_2Reg.test(strNamech) && !ipv4_3Reg.test(strNamech)))
			{
				if(isEnglish == "0")
				{
					if(strNamech.substring(strNamech.length-3,strNamech.length)!=".cn")
					{
						strNamech = strNamech + ".cn";
					}
					window.open("http://cwhois.cnnic.cn/validatecode/validate.jsp?value="+strNamech+"&entity=domain&service=/whois&inputfield=value","_blank")
				}else {
					alert("请输入所要查询的中文域名");
				} 
			}else {
				if(isEnglish == "0")
				{
					if(strNamech.substring(strNamech.length-3,strNamech.length)!=".cn")
					{
						strNamech = strNamech + ".cn";
					}
					window.open("http://cwhois.cnnic.cn/validatecode/validate.jsp?value="+strNamech+"&entity=domain&service=/whois&inputfield=value","_blank")
				} else {
					alert("请输入所要查询的中文域名");
				}
			}
		}else if (v1=="ch")
		{
			if ((strNamech .indexOf(".")!=-1) || (strNamech .indexOf("。")!=-1) && (!ipv4_1Reg.test(strNamech) && !ipv4_2Reg.test(strNamech) && !ipv4_3Reg.test(strNamech)))
			{
				if(isEnglish == "0")
				{
					if(strNamech.substring(strNamech.length-3,strNamech.length)!=".com.cn")
					{
						strNamech = strNamech + ".com.cn";
					}
					window.open("http://cwhois.cnnic.cn/validatecode/validate.jsp?value="+strNamech+"&entity=domain&service=/whois&inputfield=value","_blank")
				}else {
					alert("请输入所要查询的中文域名");
				} 
			}else {
				if(isEnglish == "0")
				{
					if(strNamech.substring(strNamech.length-3,strNamech.length)!=".com.cn")
					{
						strNamech = strNamech + ".com.cn";
					}
					window.open("http://cwhois.cnnic.cn/validatecode/validate.jsp?value="+strNamech+"&entity=domain&service=/whois&inputfield=value","_blank")
				} else {
					alert("请输入所要查询的中文域名");
				}
			}
		}else if (v1=="nh")
		{
			if ((strNamech .indexOf(".")!=-1) || (strNamech .indexOf("。")!=-1) && (!ipv4_1Reg.test(strNamech) && !ipv4_2Reg.test(strNamech) && !ipv4_3Reg.test(strNamech)))
			{
				if(isEnglish == "0")
				{
					if(strNamech.substring(strNamech.length-3,strNamech.length)!=".net.cn")
					{
						strNamech = strNamech + ".net.cn";
					}
					window.open("http://cwhois.cnnic.cn/validatecode/validate.jsp?value="+strNamech+"&entity=domain&service=/whois&inputfield=value","_blank")
				}else {
					alert("请输入所要查询的中文域名");
				} 
			}else {
				if(isEnglish == "0")
				{
					if(strNamech.substring(strNamech.length-3,strNamech.length)!=".net.cn")
					{
						strNamech = strNamech + ".net.cn";
					}
					window.open("http://cwhois.cnnic.cn/validatecode/validate.jsp?value="+strNamech+"&entity=domain&service=/whois&inputfield=value","_blank")
				} else {
					alert("请输入所要查询的中文域名");
				}
			}
		}

		return false
	}
