ASP 用户
注册常用代码
------------------------------------------
if (document.form1.tel.value!="") {
if(document.all.form1.tel.value.length<7 || document.all.form1.tel.value.length>13){ alert("联系电话必须为 7 到 12 位数字"); document.form1.tel.focus(); return false; } else if (document.all.form1.tel.value.search(re1) != -1) { } else { alert("联系电话必须是数字.") document.form1.tel.focus(); return false; }