function CheckForm() { if(document.index_logon.UserName.value=="") { alert("请输入通行证"); document.index_logon.UserName.focus(); return false; } if(document.index_logon.UserPassword.value=="") { alert("请输入登录密码"); document.index_logon.UserPassword.focus(); return false; } document.index_logon.submit(); } document.writeln("