﻿//onsubmit="return checkWholeForm(contact);" - Place into formfunction checkWholeForm(beryllia_contact) {    var why = "";    why += checkemail(beryllia_contact.email.value);    why += isEmpty1(beryllia_contact.nameid.value);    why += isEmpty2(beryllia_contact.telephone.value);        if (why != "") {       alert(why);       return false;    }return true;}// name checkfunction isEmpty1(strng) {var error = "";  if (strng.length == 0) {     error = "Please provide us with your name.\n"  }return error;     }// telephone checkfunction isEmpty2(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 sddress.\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;    }