// 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
  }

}
