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; } function ChkForm2(frm1) { if(frm1.txtUserName.value=="登陆名") { frm1.txtUserName.value=""; } } function ChkForm3(frm2) { if(frm2.txtPassword.value=="密码") { frm2.txtPassword.value=""; } } function ChkForm4(frm3) { if(frm3.txtValidateKey.value=="验证码") { frm3.txtValidateKey.value=""; } }