<!--
function validate(theForm)
{
	
	if (theForm.organization.value == "")
  {
    alert("Please enter a value for the \"Organization\" field.");
    theForm.organization.focus();
    return (false);
  }
	
	if (theForm.name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("You have not entered an email address.");
    theForm.email.focus();
    return (false);
  }

invalidChars = " /:,;"
  for (i=0; i<invalidChars.length; i++)
  	badChar = invalidChars.charAt(i)
  	if (theForm.email.value.indexOf(badChar,0) > -1) {
  		alert ('email address contains invalid chars.');
  		return (false);
  		}
  		
  atPos = theForm.email.value.indexOf("@",1)
  if (atPos == -1) {
  	alert ('email address doesn\'t contain \"@\" ');
  	return (false);
  	}
  	
  if (theForm.email.value.indexOf("@",atPos+1) >	 -1) {
 	alert ('email address contains 2 \"@s\" ');
  	return (false);
  	}
  	
  	periodPos = theForm.email.value.indexOf(".",atPos)
  	if (periodPos == -1) {
  		alert ('email address doesn\'t contain \".\" ');
		return (false);
  	}
  
  if (periodPos +3 > theForm.email.value.length) {
		alert ('email address incorrect. ');
		return (false);
	}
	
  if (theForm.phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.phone.focus();
    return (false);
  }
  phoneLength = theForm.phone.value.length;
  if (phoneLength < 12 )
  {
  alert("Please include the Area Code in the \"Phone\" field.");
    theForm.phone.focus();
    return (false);
  }
  
    if (theForm.address1.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.address1.focus();
    return (false);
  }
    
    if (theForm.city.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.city.focus();
    return (false);
  }
    
 if (theForm.state.value == "")

  {
    alert("Please enter a value for the \"State\" field.");
    theForm.state.focus();
    return (false);
  }
      
    if (theForm.zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.zip.focus();
    return (false);
  }
  
  // if (theForm.country.options[theForm.country.selectedIndex].value == "")

  //{
   // alert("Please enter a value for the \"Country\" field.");
    //theForm.country.focus();
    //return (false);
  //}
  
    if (theForm.product.options[theForm.product.selectedIndex].value == "0")

  {
    alert("Please enter a value for the \"Products\" field.");
    theForm.product.focus();
    return (false);
  }
  
    if (theForm.comments.value == "")
  {
    alert("Please enter a value for the \"Comments\" field.");
    theForm.comments.focus();
    return (false);
  }

return (true)
}
//-->
