function checkWholeForm(theForm) {
   var why = "";
    var focusSet = "";
   	
   	why += checkMsg(theForm.f03_ContactMsg.value);
    if (why != ""){
    	theForm.f03_ContactMsg.focus();
    	focusSet = "set"
    }
   why += checkEmail(theForm.fpMailFromAddr.value);
     if (why != "" && focusSet == ""){
      	theForm.f08_Email.focus();
      	focusSet = "set"
      }
	
     if (why != "") {
		
           alert(why);
           return false;
    
        }



 theForm.f08_Email.value = theForm.fpMailFromAddr.value;
return true;
}
       

function checkEmail(strng) {
var error="";
if (strng == "") {
   error = "You didn't enter an 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= /&#91;()<>,;:\"&#91;&#93;&#93;/
         if (strng.match(illegalChars)) {
          error = "The email address contains illegal characters. \n";
       }
    }

return error;    
}


function checkMsg(strng) {
var error = "";
  if (strng.length == 0) {
     error = "Please describe the accessibility issue. \n"
  }
return error;	  
}
