<!--- === This script validates the login fields have been entered on Partner Login === --->
function validatePLogin(){
	var okSoFar=true;  //-- Changes to false when bad field found. 
  if (document.PLogin.login.value=='' && okSoFar) {
    okSoFar=false;
    alert ('Please enter your login');
    document.PLogin.login.focus(); 
    }
  if (document.PLogin.password.value=='' && okSoFar) {
    okSoFar=false;
    alert ('Please enter your password');
    document.PLogin.password.focus();
    }
  if (okSoFar==true) {
    //document.Form1.submit();
    alert ('Login failed. Either the password or the login you entered is incorrect. Please try again.');
    return true;}
  else {
    return false;}
}
