/*
This regular expression assumes that the inputEmail has been through the 
main site validation. This regular expression only checks for the below 'odd'
ASCII characters, which may actually be valid in an email address, according
to the probably obsolete RFC 2822. This is a useful check, because the majority
of these odd characters are only present in bad email addresses (addresses which
bounce when we try and send to them.)

Brian J. Stinar 11/30/2009
*/


function validateEmail(inputEmail){
   var regEx = /[\s\!\"#\\$%&\'()\*`\/:;<=>\?\\[\\\\\]\^\{\|\}~]/;
   var result = inputEmail.search(regEx);
  
   // if a match is not found, this routine considers the email address valid.
   if(result == -1){
      return true;
   }

   // If a match is found, it will return the index of the first occurance
   else{
      return false;
   }
}
