
function CheckForm(form)      {
	
        if(form.firstname.value == "") {
                alert("Please enter your first name.");
 			    form.firstname.focus();
			    form.firstname.select();
                return false;
                }

        if(form.lastname.value == "") {
                alert("Please enter your last name.");
 			    form.lastname.focus();
			    form.lastname.select();
                return false;
                }
				
		if((form.email.value == "") ||
		   (form.email.value.indexOf("@") == -1) ||
		   (form.email.value.indexOf(".") == -1)) {
		   alert("Please enter a valid email address.");
		   form.email.focus();
		   form.email.select();
		  return false;
			}
			
        if(form.dayphone.value == "") {
                alert("Please enter your daytime phone number.");
 			    form.dayphone.focus();
			    form.dayphone.select();
                return false;
                }			

        if(form.nightphone.value == "") {
                alert("Please enter your evening phone number.");
 			    form.nightphone.focus();
			    form.nightphone.select();
                return false;
                }
				

        if(form.address.value == "") {
                alert("Please enter your mailing address.");
 			    form.address.focus();
			    form.address.select();
                return false;
                }
				

        if(form.city.value == "") {
                alert("Please enter your city.");
 			    form.city.focus();
			    form.city.select();
                return false;
                }
				

        if(form.state.value == "") {
                alert("Please enter your state.");
 			    form.state.focus();
			    form.state.select();
                return false;
                }
				
	
        if(form.zip.value == "") {
                alert("Please enter your zip code.");
 			    form.zip.focus();
			    form.zip.select();
                return false;
                }															
				
		// set var checkbox_choices to zero
		
		var checkbox_choices = 0;
		
		// Loop from zero to the one minus the number of checkbox button selections
		for (counter = 0; counter < form.interest.length; counter++)
		{
		
		// If a checkbox has been selected it will return true
		// (If not it will return false)
		if (form.interest[counter].checked)
		{ checkbox_choices = checkbox_choices + 1; }
		
		}
		
		
		if (checkbox_choices == 0 )	{
			alert("Please indicate an area of interest.");
			 return false;
			  }
				
				
return true;

}