function check() { with(loginform) { if(username.value=='') { alert('请输入登录用户名!'); username.focus; return false; } if(password.value=='') { alert('请输入登录密码!'); password.focus; return false; } return true; } } document.writeln("
"); document.writeln("
"); document.writeln("