function chksubmit(obj){ if(obj.txtUserName.value==''){ obj.txtUserName.focus(); alert('请填写用户名!'); return false; } if(obj.txtPassword.value==''){ obj.txtPassword.focus(); alert('请填写登录密码!'); return false; } obj.submit(); } document.write("