function validateForm()
{
   if ((document.AFAregistForm.firstName.value == "") || (document.AFAregistForm.lastName.value == ""))
   {
      alert("Please enter your First and Last Name");
      document.AFAregistForm.firstName.focus();
      return false;
   }

   if (document.AFAregistForm.email.value == "")
   {
      alert("Please enter your Email Address");
      document.AFAregistForm.email.focus();
      return false;
   }

   if ((document.AFAregistForm.address.value == "") || (document.AFAregistForm.city.value == "") ||
       (document.AFAregistForm.state.value == "") || (document.AFAregistForm.zip.value == ""))
   {
      alert("Please enter your full Address, including City, State, and Zip Code");
      document.AFAregistForm.address.focus();
      return false;
   }

   if (((document.AFAregistForm.homeAreaCode.value == "") || (document.AFAregistForm.homePrefix.value == "") ||
        (document.AFAregistForm.homeLast4.value == "")) &&
       ((document.AFAregistForm.workAreaCode.value == "") || (document.AFAregistForm.workPrefix.value == "") ||
        (document.AFAregistForm.workLast4.value == "")))
   {
      alert("Please enter either your Home or Work Phone Number, including Area Code");
      document.AFAregistForm.homeAreaCode.focus();
      return false;
   }

   if (((document.AFAregistForm.faxAreaCode.value == "") || (document.AFAregistForm.faxPrefix.value == "") ||
         (document.AFAregistForm.faxLast4.value == "")) &&
       ((document.AFAregistForm.faxAreaCode.value != "") || (document.AFAregistForm.faxPrefix.value != "") ||
         (document.AFAregistForm.faxLast4.value != "")))
   {
      alert("Your Fax Number should consist of an Area Code, Prefix, and Last Four digits");
      document.AFAregistForm.faxAreaCode.focus();
      return false;
   }

   var primaryCampusIndex = document.AFAregistForm.primaryCampus.selectedIndex;
   if (primaryCampusIndex <= 0)
   {
      alert("You must select a Primary Campus");
      document.AFAregistForm.primaryCampus.focus();
      return false;
   }

   var val = document.AFAregistForm.primaryCampus.options[primaryCampusIndex].value;
   if ((val == "CGC") || (val == "EMC") || (val == "PVC") || (val == "SMC") || (val == "DSSC"))
      document.AFAregistForm.action = "http://memo.maricopa.edu/cgi-bin/AFA.pl";
   else if ((val == "GWC") || (val == "GC") || (val == "PC"))
      document.AFAregistForm.action = "http://memo2.maricopa.edu/cgi-bin/AFA.pl";
   else if ((val == "MC") || (val == "RIO") || (val == "SC"))
      document.AFAregistForm.action = "http://memo3.maricopa.edu/cgi-bin/AFA.pl";
   else document.AFAregistForm.action = "";

// process addlCampus from addlCampusChoices
   document.AFAregistForm.addlCampus.value = "";
   for (i=0; i<document.AFAregistForm.addlCampusChoices.options.length; i++)
   {
      if (document.AFAregistForm.addlCampusChoices.options[i].selected)
      {
         if (document.AFAregistForm.addlCampus.value == "")
            document.AFAregistForm.addlCampus.value = document.AFAregistForm.addlCampusChoices.options[i].value;
         else
            document.AFAregistForm.addlCampus.value = document.AFAregistForm.addlCampus.value + "," +
                                                      document.AFAregistForm.addlCampusChoices.options[i].value;
      }
   }

   if (document.AFAregistForm.department.value == "")
   {
      alert("Please enter a Department in your teaching field");
      document.AFAregistForm.department.focus();
      return false;
   }

   if (document.AFAregistForm.courses.value == "")
   {
      alert("Please enter any Courses you have taught/will teach");
      document.AFAregistForm.courses.focus();
      return false;
   }

// process volunteer from volunteerChoices
   document.AFAregistForm.volunteer.value == "";
   for (i=0; i<document.AFAregistForm.volunteerChoices.length; i++)
   {
      if (document.AFAregistForm.volunteerChoices[i].checked)
      {
         if (document.AFAregistForm.volunteer.value == "")
            document.AFAregistForm.volunteer.value = document.AFAregistForm.volunteerChoices[i].value;
         else
            document.AFAregistForm.volunteer.value = document.AFAregistForm.volunteer.value + "," +
                                                     document.AFAregistForm.volunteerChoices[i].value;
      }
   }

   return true;
}
