function onLoginClick(){if(!validateXSS()){return}var form=eval("document.forms[0]");document.getElementsByClassName("passwordEncryption")[0].value="";if(form.corpId.value==""){alert(corpIdIsMandatory);form.corpId.focus();return}else{if(form.userName.value==""){alert(userNameIsMandatory);form.userName.focus();return}else{if(form.passwordEncryption.value==""){alert(passwordIsMandatory);form.passwordEncryption.focus();return}}}form.action=loginRequest;form.password.value=hex_md5(form.passwordEncryption.value);form.password.value=hex_sha1(form.password.value);form.passwordEncryption.value="";form.submit()}function onClearClick(a){a.corpId.value="";a.userName.value="";a.passwordEncryption.value="";a.language.selectedIndex=0}function onCheckError(){if(!validateXSS()){return}if(errorMessage!=null&&errorMessage!=""){alert(errorMessage)}}function doLogin(a){if((a.keyCode==13)||(a.which==13)){onLoginClick()}}function loadOnFokus(){document.getElementsByClassName("corpId")[0].focus()}function checkErrorFDS(){var d=true;var b=location.href.indexOf("fds")!=-1;if(d&&b){var c=unescape(location.href.replace(new RegExp("^(?:.*[&\\?]"+escape("fds").replace(/[\.\+\*]/g,"$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"));if("1"==c){var a=errorFDS1}else{if("2"==c){var a=errorFDS2}else{if("3"==c){var a=errorFDS3}else{var a=errorFDS4}}}alert(a)}};