// VALIDATE THE FORM
function ValidateForm() {
    document.frmLogin.EmailAddress.style.backgroundColor = InputFormTextBoxInitialState
    document.frmLogin.Password.style.backgroundColor = InputFormTextBoxInitialState


// VALIDATE EMAIL
  if (isEmail(document.frmLogin.EmailAddress.value)==false) {
    document.frmLogin.EmailAddress.style.backgroundColor = InputFormTextBoxHighight
    alert("Email Address is invalid.  Please enter a valid Email Address.")
    document.frmLogin.EmailAddress.focus()
    return false
  }


// VALIDATE PASSWORD CONFIRM
  if (isWhitespace(document.frmLogin.Password.value)==true) {
    alert("Password can not be blank.  Please confim the password you entered.")
    document.frmLogin.Password.style.backgroundColor = InputFormTextBoxHighight
    document.frmLogin.Password.focus()
    return false
  }

	// Disable Submit button while we process login
	if (document.frmLogin.noProcess.value == 1) {
	document.frmLogin.Submit.disabled = true;
	} 
	else
	{
	document.frmLogin.Submit.value = "Processing...";
	document.frmLogin.Submit.disabled = true;
	}

}
