function checklogin(theForm) { if(theForm.username.value == "") { alert("请填写登录名!"); return false; } if(theForm.password.value == "") { alert("请填写密码!"); return false; } theForm.backurl.value = window.location; } document.write("