www.gusucode.com > 雨点单用户免雨点单用户免费留言板 2.0 Build 080828 > inc/modify.js
//Design By L.C.H function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function fucCheckLength(strTemp) { var i,sum; sum=0; for(i=0;i<strTemp.length;i++) { if ((strTemp.charCodeAt(i)>=0) && (strTemp.charCodeAt(i)<=255)) sum=sum+1; else sum=sum+2; } return sum; } function IsDigit(cCheck) { return (('0'<=cCheck) && (cCheck<='9')); } function IsAlpha(cCheck) { return ((('a'<=cCheck) && (cCheck<='z')) || (('A'<=cCheck) && (cCheck<='Z'))) } function Juge(theForm) { if (theForm.pwd1.value !=theForm.pwd2.value) { alert("两次密码输入不一样"); theForm.pwd1.focus(); return (false); } if (theForm.web.value == "") { alert("请输入网站名称"); theForm.web.focus(); return (false); } if (theForm.url.value == "") { alert("请输入网址"); theForm.url.focus(); return (false); } }