<!--
function checkForm_vol(volunteer) {

   msg = '';
   empty_fields = '';

   if (!volunteer.first_name.value) {
      if (empty_fields) { empty_fields += "\n"; }
      empty_fields += "First Name";
   }

   if (!volunteer.last_name.value) {
      if (empty_fields) { empty_fields += "\n"; }
      empty_fields += "Last Name";
   }

   volunteer_state_Choice = volunteer.state.selectedIndex;
   if (volunteer.state.options[volunteer_state_Choice].value == "") {
      if (empty_fields) { empty_fields += "\n"; }
      empty_fields += "State";
   }

   if (!volunteer.zip.value) {
      if (empty_fields) { empty_fields += "\n"; }
      empty_fields += "Zip Code";
   }

   if (!validEmail(volunteer.submit_by.value)) {
      if (empty_fields) { empty_fields += "\n"; }
      empty_fields += "Valid Email Address";
   }

   if (empty_fields) {
      msg += "The following data is required\nin order to submit your request:\n\n" + empty_fields;
      alert(msg);
      return false;
   }

   window.open('','popup','width=400,height=300,scrollbars=0,resizeable=0');

   return true;

}

function validEmail(email) {
   invalidChars = " /:,;";
   if (email == "") {   
      return false;
   }
   for (i = 0; i < invalidChars.length; i++) {
      badChar = invalidChars.charAt(i);
      if (email.indexOf(badChar,0) > -1) {
         return false
      }
   }
   atPos = email.indexOf("@",1)
   if (atPos == -1) {
      return false;
   }
   if (email.indexOf("@",atPos+1) != -1) {
      return false
   }
   atPos = email.indexOf("@",1)
   if (atPos == -1) {   
      return false;
   }
   if (email.indexOf("@",atPos+1) != -1) {
      return false;
   }
   periodPos = email.indexOf(".",atPos);
   if (periodPos == -1) {
      return false;
   }
   if (periodPos+3 > email.length) {
      return false;
   }
   return true;
}

//-->