// email

function checkEmail (strng) {
var error="";
if (strng == "") {
   error = "Please enter a valid email address.\n Thank you.\n";
}

    var emailFilter=/^.+@.+\..{2,3}$/;
    if (!(emailFilter.test(strng))) { 
       error = "Email address unvalid, please try again.\n";
    }
    else {

       var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/
         if (strng.match(illegalChars)) {
          error = "Illegal chars have been used.\n";
       }
    }
return error;    
}

// non-empty textbox

function isEmpty(strng,categ) {
var error = "";
  if (strng.length == 0) {
     error = "You must enter the following required info : " + categ + " \n";
  }
return error;	  
}

