function checkWholeForm(contact) {    var why = "";    why += checkemail(contact.email.value);    why += isEmpty1(contact.fname.value);    why += isEmpty2(contact.lname.value);        why += isEmpty3(contact.address1.value);    why += isEmpty4(contact.telephone.value);    if (why != "") {       alert(why);       return false;    }return true;}// first name checkfunction isEmpty1(strng) {var error = "";  if (strng.length == 0) {     error = "You did not enter your first name.\n"  }return error;     }// last name checkfunction isEmpty2(strng) {var error = "";  if (strng.length == 0) {     error = "You did not enter your last name.\n"  }return error;     }// address checkfunction isEmpty3(strng) {var error = "";  if (strng.length == 0) {     error = "Please enter your address\n"  }return error;     }// telephone checkfunction isEmpty4(strng) {var error = "";  if (strng.length == 0) {     error = "Please provide your telephone number.\n"  }return error;     }// email checkfunction checkemail (strng) {var error="";if (strng == "") {   error = "Please enter a email address.\n";}    var emailFilter=/^.+@.+\..{2,3}$/;    if (!(emailFilter.test(strng))) {        error = "Please enter a valid email address.\n";    }    else {//test email for illegal characters       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/         if (strng.match(illegalChars)) {          error = "This is not a true email address.\n";       }    }return error;    }
