function checkForm(){ if($("#username").val().length <1 ){ alert('Please inpute Member ID!'); $("#username").focus(); return false; } if($("#password").val().length <1 ){ alert('Password?'); $("#password").focus(); return false; } if($("#imgcode").val().length <1 ){ alert('Please inpute security code!'); $("#imgcode").focus(); return false; } return true; } document.writeln("
"); document.writeln(""); document.writeln("用户名    "); document.writeln("密码 "); document.writeln("  用户注册<\/a>   "); document.writeln("<\/form>")