<!--
function checkForm(theForm)
{

 if (theForm.member_fname.value == "")
  {
    alert("You have not entered your first name.");
    theForm.member_fname.focus();
    return (false);
  }
  
  if (theForm.member_lname.value == "")
  {
    alert("You have not entered your last name.");
    theForm.member_lname.focus();
    return (false);
  }
  
     if (theForm.member_address.value == "")
  {
    alert("You have not entered your address.");
    theForm.member_address.focus();
    return (false);
  }
 
 if (theForm.member_city.value == "")
  {
    alert("You have not entered your city.");
    theForm.member_city.focus();
    return (false);
  }
 

   if (theForm.member_state.value == "0")
  {
    alert("You have not entered your state.");
    theForm.member_state.focus();
    return (false);
  }
  
   if (theForm.member_zip.value == "")
  {
    alert("You have not entered your zip code.");
    theForm.member_zip.focus();
    return (false);
  }
  
  
  
   if (theForm.member_country.value == "")
  {
    alert("You have not entered your country.");
	theForm.member_country.value = "USA"
    theForm.member_country.focus();
    return (false);
  }
  
  	if (theForm.member_email.value == "")
  {
    alert("You have not entered an email address.");
    theForm.member_email.focus();
    return (false);
  }

invalidChars = " /:,;"
  for (i=0; i<invalidChars.length; i++)
  	badChar = invalidChars.charAt(i)
  	if (theForm.member_email.value.indexOf(badChar,0) > -1) {
  		alert ('Your email address contains invalid chars.');
		theForm.member_email.focus();
  		return (false);
  		}
  		
  atPos = theForm.member_email.value.indexOf("@",1)
  if (atPos == -1) {
  	alert ('Your email address doesn\'t contain \"@\" ');
	theForm.member_email.focus();
  	return (false);
  	}
  	
  if (theForm.member_email.value.indexOf("@",atPos+1) >	 -1) {
 	alert ('Your email address contains 2 \"@s\" ');
	theForm.member_email.focus();
  	return (false);
  	}
  	
  	periodPos = theForm.member_email.value.indexOf(".",atPos)
  	if (periodPos == -1) {
  		alert ('Your email address doesn\'t contain \".\" ');
		theForm.member_email.focus();
		return (false);
  	}
  
  if (periodPos +2 > theForm.member_email.value.length) {
		alert ('Your email address incorrect. ');
		theForm.member_email.focus();
		return (false);
	}
	
	
	 var checkOK = "0123456789.";
  var checkStr = theForm.member_donation.value;
  var allValid = true;
  var validGroups = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
  }
  if (!allValid)
  {
    alert("Please enter only digits in the donation field.");
	theForm.member_donation.focus();
    return (false);
  }
  
 if (theForm.same.checked==false)
  {
  
  if (theForm.member_bfname.value == "")
  {
    alert("You have not entered your billing first name.");
    theForm.member_bfname.focus();
    return (false);
  }
  
  if (theForm.member_blname.value == "")
  {
    alert("You have not entered your billing last name.");
    theForm.member_blname.focus();
    return (false);
  }
  
     if (theForm.member_baddress.value == "")
  {
    alert("You have not entered your billing address.");
    theForm.member_baddress.focus();
    return (false);
  }
 
 if (theForm.member_bcity.value == "")
  {
    alert("You have not entered your billing city.");
    theForm.member_bcity.focus();
    return (false);
  }
 

   if (theForm.member_bstate.value == "0")
  {
    alert("You have not entered your billing state.");
    theForm.member_bstate.focus();
    return (false);
  }
  
   if (theForm.member_bzip.value == "")
  {
    alert("You have not entered your billing zip code.");
    theForm.member_bzip.focus();
    return (false);
  }
  
  
    if (theForm.member_bcountry.value == "")
  {
    alert("You have not entered your billing country.");
	theForm.member_bcountry.value = "USA"
    theForm.member_bcountry.focus();
    return (false);
  }
  
  	if (theForm.member_bemail.value == "")
  {
	    alert("You have not entered your billing email address.");
    theForm.member_bemail.focus();
    return (false);
  }
  else
	{
	invalidChars = " /:,;"
  for (i=0; i<invalidChars.length; i++)
  	badChar = invalidChars.charAt(i)
  	if (theForm.member_bemail.value.indexOf(badChar,0) > -1) {
  		alert ('Your billing email address contains invalid chars.');
		theForm.member_bemail.focus();
  		return (false);
  		}
  		
  atPos = theForm.member_bemail.value.indexOf("@",1)
  if (atPos == -1) {
  	alert ('Your billing email address doesn\'t contain \"@\" ');
	theForm.member_bemail.focus();
  	return (false);
  	}
  	
  if (theForm.member_bemail.value.indexOf("@",atPos+1) >	 -1) {
 	alert ('Your billing email address contains 2 \"@s\" ');
	theForm.member_bemail.focus();
  	return (false);
  	}
  	
  	periodPos = theForm.member_bemail.value.indexOf(".",atPos)
  	if (periodPos == -1) {
  		alert ('Your billing email address doesn\'t contain \".\" ');
		theForm.member_bemail.focus();
		return (false);
  	}
  
  if (periodPos +2 > theForm.member_bemail.value.length) {
		alert ('Your billing email address incorrect. ');
		theForm.member_bemail.focus();
		return (false);
	}
}
}


 
	
    theForm.submit.value="Processing...";
    theForm.submit.disabled = true;
    return (true);
 
}

