document.write("
用户名:
密  码:
找回密码?请按这里
"); function CheckForm() { if(document.UserLogin.UserName.value=="") { alert("请输入用户名!"); document.UserLogin.UserName.focus(); return false; } if(document.UserLogin.Password.value == "") { alert("请输入密码!"); document.UserLogin.Password.focus(); return false; } }