document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("
登 录 名:
密    码:
验证码: 
"); document.write(" 注册"); document.write("
"); function ChkForm(frm) { if(frm.txtUserName.value==""||frm.txtPassword.value=="") { alert("用户名和密码都不能为空!"); return false; } var reg=/['<> \"]+/; if(reg.test(frm.txtUserName.value)) { alert("用户名不能包含特殊字符!"); return false; } if(reg.test(frm.txtPassword.value)) { alert("用户密码不能包含特殊字符!"); return false; } reg=/^\d{4}$/; if(!reg.test(frm.txtValidateKey.value)) { alert("验证码只能是数字,且是四位数!"); return false; } return true; }