function keycheck(event){if(event && event.which==13||event.keyCode==13){submitloginform();}else{return true;}}function submitloginform() {document.getElementById("email").value=remove_all_spaces(document.getElementById("email").value);var email=document.getElementById("email").value;var email_is_ok=isEmail(email);if(email_is_ok) {document.getElementById("pwd").value=remove_all_spaces(document.getElementById("pwd").value);var pwd=document.getElementById("pwd").value;if((pwd.length>25)||(pwd.length<6)){alert("The password you entered is too long ... or too short.");document.getElementById("pwd").focus();return;}if(!isAlphaNumeric(pwd)){alert("Your password should contain only letters, numbers, underscores and hyphens.");document.getElementById("pwd").value='';document.getElementById("pwd").focus();return;}document.getElementById("login").submit();}else{if(email.length===0){alert("You need to enter the e-mail address associated with your account.");document.getElementById("email").focus();return;}alert("An invalid e-mail address appears to have been entered");document.getElementById("email").focus();}}