function CheckForm() { if(document.index_logon.UserName.value=="") { alert("请输入登陆用户名"); document.index_logon.UserName.focus(); return false; } if(document.index_logon.PassWord.value=="") { alert("请输入登陆的密码"); document.index_logon.PassWord.focus(); return false; } document.index_logon.submit(); } document.writeln("
"); document.writeln("
用户:密码:"); document.writeln(" <\/div><\/form>");