function checkForm(){
        var missing = "";
		var missingradio = "";
        if(document.contactForm.first_name.value == "") missing += "First Name\n";
		if(document.contactForm.last_name.value == "") missing += "Last Name\n";
		if(document.contactForm.address.value == "") missing += "Street Address\n";
		if(document.contactForm.city.value == "") missing += "City\n";
		if(document.contactForm.state.value == "") missing += "State\n";
		if(document.contactForm.zip.value == "") missing += "Zip\n";		
		if(document.contactForm.phone.value == ""){
			missing += "Phone\n";
		}
		else{
			var phonestrng = contactForm.phone.value;
			var stripped = phonestrng.replace(/[\(\)\.\-\ ]/g, '');
			//strip out acceptable non-numeric characters
			var i;
			for (i = 0; i < stripped.length; i++){   
      			// Check that current character is number.
       			var c = stripped.charAt(i);
       			if (((c < "0") || (c > "9"))){
					alert("The phone number contains illegal characters.\n");
					return false;
				}
    		}
				if (stripped.length != 10) {
					alert("The phone number is the wrong length.\nMake sure you included an area code.\n");
				return false;
				}
		}		
		if(document.contactForm.submit_by.value == ""){
			missing += "Your E-mail Address\n";
		}
		else {
			 var emailFilter=/^.+@.+\..{2,3}$/;
			 var emailstrng = document.contactForm.submit_by.value;
   			 if (!(emailFilter.test(emailstrng))) { 
     			 alert("Please enter a valid email address.\n");
				 return false;
    		 }
   			else {
			//test email for illegal characters
      			 var illegalChars=/[\(\)\<\>\,\;\:\\\/\"\[\]]/;//THIS SUBSEQUENT END QUOTE IS FOR HOMESITE TO HIGHLIGHT PROPERLY"
        		 if (emailstrng.match(illegalChars)) {
         			 alert("The email address contains illegal characters.\n");
					 return false;
      		 	}
   			}
		}
		if(contactForm.submit_to.value == "") missingradio += "Desired REC Representative.\n";
		if(contactForm.method.value == "") missingradio += "Contact Method\n";
        if(missing != ""){
                alert("Please enter values for the following fields:\n\n" + missing + missingradio);
                return false;
        }
	function isInteger(s){
   		// All characters are numbers.
  		 return true;
	}
}