function trimStringLogin(a){a=this!=window?this:a;return a.replace(/^\s+/g,"").replace(/\s+$/g,"")}function RemoveMsgsFromLoginControls(){document.getElementById("lblLoginError").innerHTML="";document.getElementById("lblLoginValidation").innerHTML=""}
function ValidateLogin(){document.getElementById("txtEmailId").value=trimStringLogin(document.getElementById("txtEmailId").value);var a=document.getElementById("txtEmailId");if(a.value==""){document.getElementById("lblLoginError").innerHTML="*Some fields were missed. Please check below fields marked with red.<br>";document.getElementById("lblLoginError").style.display="block";a.className="cssform_inputtxt_singin1_red";return false}else if(isEmail(a.value)==false){document.getElementById("lblLoginValidation").innerHTML=
"*Invalid email address";document.getElementById("lblLoginValidation").style.display="block";document.getElementById("lblLoginError").style.display="none";a.className="cssform_inputtxt_singin1_red";return false}else{document.getElementById("lblLoginValidation").style.display="none";document.getElementById("lblLoginError").style.display="none";a.className="cssform_inputtxt_singin1"}if(Validatepassword("false")==false)return false;return true}
function Validatepassword(a){var c=false;Control=document.getElementById("txtPassword");if(Control.value==""){document.getElementById("lblLoginError").innerHTML="*Some fields were missed. Please check below fields marked with red.<br>";document.getElementById("lblLoginError").style.display="block";Control.className="cssform_inputtxt_singin1_red";c=false}else if(a=="false"){Control.className="cssform_inputtxt_singin1";document.getElementById("lblLoginError").style.display="none";c=true}else if(Control.value!=
""&&a=="true")Control.className="cssform_inputtxt_singin1";if(c==false)document.getElementById("pSignIn").style.paddingBottom="0px";return c}function isEmail(a){return true}
function ClearMsgs(a,c,b){b=window.event?window.event:b;var d=navigator.appName=="Microsoft Internet Explorer"?b.keyCode:b.which;if(d==13)c=="login"&&document.getElementById("btnLogin").click();else if((a=="txtEmailId"||a=="txtPassword")&&d==32){if(b.preventDefault)b.preventDefault();else return b.returnValue=false;b.returnValue=false}}
function clickButtonLogin(a,c){try{var b=a?a:window.event;if(document.getElementById(c))if(b.keyCode==13){document.getElementById("hPerformLogin").value="1";document.getElementById("btnLogin").click()}}catch(d){alert(d.description)}};
