www.gusucode.com > hi5360.com网站源码 2.2.1208 > inc/foot.js

    var cr='<div class="border_bg">Copyright 2007-2009, 版权所有 <a href="http://www.hi5360.com/"  target="_blank">Hi5360.COM</a>&nbsp;&nbsp;';
document.write(cr);

function findA(theobj)
{	
	var s=theobj+""; s=s.substr(s.length-2,2);
	var obj=document.getElementsByName(s);
	obj[0].style.color="red";
}
function checkIP()
{
	var ipArray,ip,j;
	ip = document.formIP.ip.value;
	
	ipArray = ip.split(".");
	j = ipArray.length
	if(j!=4)
	{
		alert("请输入正确的IP");
		document.formIP.ip.focus();
		return false;
	}

	for(var i=0;i<4;i++)
	{
		if(ipArray[i].length==0 || ipArray[i]>255)
		{
			alert("不是正确的IP");
			document.formIP.ip.focus();
			return false;
		}
	}	
}
function checkMobile(){var sMobile = document.formMobile.hiCode.value;
	if(!(/^1[3|5][0-9]\d{4,8}$/.test(sMobile))){
	alert("请输入11位手机号(或手机号前7位)");
	document.formMobile.hiCode.focus();
	return false;}
}
function checkURL(theID){var reghttp=/^[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^\"\"])*$/;
	var o=document.getElementById(theID);
	if(!reghttp.exec(o.value)){
	alert('输入的域名格式有误,请重新输入');
	o.focus();
	return false;
	}
}