
function contactForm() {
	
		var warningText = "Please complete the following information:\n"
		var warningTrack = 0
		selectWhichField = ""
		if (document.theForm.contact_name.value == "")	{
			warningText += "Name\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = document.theForm.contact_name	}
		}
		if (document.theForm.email.value == "")	{
			warningText += "Email Address\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = document.theForm.email	}
		}
		if (document.theForm.phone.value == "")	{
			warningText += "Phone\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = document.theForm.phone	}
		}

		if (document.theForm.email.value != "" && document.theForm.email.value != document.theForm.email_confirm.value)	{
			warningText += "Email Addresses do not match\n"
			warningTrack++
			if (selectWhichField == "") {	selectWhichField = document.theForm.email	}
		}


		if (warningTrack>0)	{
			alert(warningText)
			
			// it will only be "" if How did you hear about us? was not checked
			if (selectWhichField != "") {
				selectWhichField.select()
			}
				
		}	else	{
			//now, submit the form
			document.theForm.submit()
		}
		return true	// needed to make it not display an error in Netscape
}

