<!--
function checkIP()
{
	var ipArray,ip,j;
	ip = document.ipform.ip.value;
	
	if(/[A-Za-z_-]/.test(ip)){
		if(!/^([\w-]+\.)+((com)|(net)|(org)|(gov\.cn)|(info)|(cc)|(com\.cn)|(net\.cn)|(org\.cn)|(name)|(biz)|(tv)|(cn))$/.test(ip)){
			alert("不是正确的域名");
			document.ipform.ip.focus();
			return false;
		}
	}
	else{
		ipArray = ip.split(".");
		j = ipArray.length
		if(j!=4)
		{
			alert("不是正确的IP");
			document.ipform.ip.focus();
			return false;
		}

		for(var i=0;i<4;i++)
		{
			if(ipArray[i].length==0 || ipArray[i]>255)
			{
				alert("不是正确的IP");
				document.ipform.ip.focus();
				return false;
			}
		}
	}
}

function checkMobile(){
	var sMobile = document.mobileform.mobile.value
	if(!(/^1[3|5][0-9]\d{4,8}$/.test(sMobile))){
		alert("不是完整的11位手机号或者正确的手机号前七位");
		document.mobileform.mobile.focus();
		return false;
	}
}

function checkPost(){
	var sPost = document.post2areaform.post.value
	if(!(/^\d{4,6}$/.test(sPost))){
		alert("请输入邮政编码前4-6位");
		return false;
	}
	window.open('', 'searchwindow', ',')
}

function checkTel(){
	var sTel = document.tel2areaform.tel.value
	if(!(/^0\d{2,3}$/.test(sTel))){
		alert("请输入3位或者4位区号");
		return false;
	}
	window.open('', 'searchwindow', ',')
}

function checkArea2Post(){
	var sArea = document.area2postForm.area.value
	if(sArea==""){
		alert("请输入地址");
		document.area2postForm.area.focus();
		return false;
	}
	window.open('', 'searchwindow', ',')
}

function checkArea2Tel(){
	var sArea = document.area2telForm.area.value
	if(sArea==""){
		alert("请输入地址");
		document.area2telForm.area.focus();
		return false;
	}
	window.open('', 'searchwindow', ',')
}

function checkID(){
	var sID = document.IDform.userid.value
	if(!(/^\d{15}$|^\d{18}$|^\d{17}x$/.test(sID))){
		alert("请输入15位或18位身份证号");
		document.IDform.userid.focus();
		return false;
	}
}
function checkID15(theForm){
	var sID = theForm.userid.value
	if(!(/^\d{15}$/.test(sID))){
		alert("请输入15位身份证号");
		theForm.userid.focus();
		return false;
	}
}
//-->