document.all.login.focus();

function loginform_validator(theForm) {
  var filter=/^(.+)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
  var email = theForm.login.value;
  if(!filter.test(email)){
    alert("Please enter your correct \"Email\"!");
    theForm.login.focus();
    return (false);
  }
  if(theForm.password.value.length<3)  {
    alert("Please enter your \"Password\" in allowed format!\n (Use only letters, numbers and \"_\" with at least 4 characters)");
    theForm.password.focus();
    return (false);
  }
  return (true);
}
