//// This is the javascript validation for the Contact form (contact.php). If all of the// validation passes then the form is posted using AJAX (not the normal form POST). The response// is then processed and we either show a <DIV> that has the confirmation message or we display// a javascript alert popup with the error message returned from the PHP script.//function validate_project_request_form() {  //Form validation  var bError = false;  if ($j('#first_name').val() == '') { addError('first_name'); bError = true; } else { removeErrorClass('first_name'); }  if ($j('#last_name').val() == '') { addError('last_name'); bError = true; } else { removeErrorClass('last_name'); }  if ($j('#phone').val() == '') { addError('phone'); bError = true; } else { removeErrorClass('phone'); }  if ($j('#zip').val() == '') { addError('zip'); bError = true; } else { removeErrorClass('zip'); }  var sEmail = $j('#email').val();  if (sEmail == '' || !sEmail.match(/^\b[A-Z0-9._%+-]+@(?:[A-Z0-9\-]+\.)+[A-Z]{2,4}\b$/i)) { addError('email'); bError = true; } else { removeErrorClass('email'); }  if ($j('#description').val() == '') { addError('description'); bError = true; } else { removeErrorClass('description'); }  if (bError == true) {    alert ("Please correct the highlighted fields.");    return false;  }  else {    return true;  }}function removeErrorClass(control_id) {  $j('#'+control_id).parent().parent().removeClass('error');  return true;}function addError(control_id) {  $j('#'+control_id).select().focus();  $j('#'+control_id).parent().parent().addClass('error');  return true;}