function reposition(){var n=$("#loginArea"),t=n.height(),i=$(window).height(),r=(i-t)*.3;n.css("margin-top",Math.max(12,r)).fadeIn(function(){var n=$("#tbUser");focused||n.val()!=""||(n.focus(),focused=!0)})}function preChgPwd(){var n=$("#pwd_tbNew").val(),t=$("#pwd_tbVerify").val();return n.length<3?showAndExit("请输入有效的新密码！"):t==""?showAndExit("请输入确认新密码！"):n!=t?showAndExit("两次输入的新密码不一致！"):!0}function pwdKeydown(){var n=getKeyCode()==13;return n&&$("#pwd_tbNew").val()!=""&&($("#pwd_tbVerify").val()==""?$("#pwd_tbVerify").focus():$("#pwd_btnOK").click()),!n}var focused=!1;$(function(){reposition();$(window).resize(reposition)})