﻿//onsubmit="return checkWholeForm(download);" - Place into formfunction checkWholeForm(download) {    var why = "";    why += checkemail(download.email.value);    why += isEmpty1(download.name.value);    why += isEmpty2(download.pcid.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;     }// Passcode Checkfunction isEmpty2(strng) {var error = "";  if (strng.length == 0) {     error = "Please provide us with your passcode.\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;    }
