function validateEmail(){
var status = false;
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
     if (document.member.email.value.search(emailRegEx) == -1) {
          alert("Please enter a valid email address.");
     }
     else if (document.member.emailcheck.value != document.member.email.value) {
          alert("Please try email addresses again, they did not match.");
     }
     else {

          status = true;
     }
     return status;
}