function getObj(e){var t=null;return document.getElementById?t=document.getElementById(e):document.all&&(t=document.all[e]),t}function setFocus(e){if(e)try{e.focus(),e.select&&e.select()}catch(t){}}function initialize(){var e=getObj("loginform");setFocus(e?e.email:e.pwd)}function alertFocus(e,t){var n=getObj("serverSideMessage");n&&(n.innerHTML=htmlMultilineEncode(e)),showInfoDialog(htmlMultilineEncode(e),"Error Setting Password",0,"",t.id)}function validateLoginVals(){var e,t,n,l,a,o=getObj("loginform"),i=!1;return o?(e=o.user,t=o.pwd,n=o.newpwd,l=o.confirmnewpwd,o=o.newUserEmail,a=n&&Object.prototype.hasOwnProperty.call(window,"g_passwordRules"),o&&e&&""===e.value?alertFocus("Please enter a user name.",e):o&&""===o.value?alertFocus("Please enter an email address!",o):n&&l&&n.value!=l.value?alertFocus("The passwords do not match!",l):a&&!validateClientSidePasswordVals(e,n||t,alertFocus)||(i=!0)):i=!0,i}window.onload=initialize;