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.write(""); document.write("
"); document.write(" 用户名"); document.write("
"); document.write(" 密   码"); document.write(" "); document.write(" "); document.write("
");