function checkData (){
if (document.contact.name.value == "") {
	alert("Please fill in your name.")
	document.contact.name.focus()
	return false}
if (document.contact.email.value == "") {
	alert("Please fill in your email.")
	document.contact.email.focus()
	return false}
var EnteredEmail = document.contact.email.value
var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (filter.test(EnteredEmail)){
} else {alert('The email you entered is not a valid e-mail address.');
	document.contact.email.focus()
	return false}
if (document.contact.city.value == "") {
	alert('Please fill in your city.')
	document.contact.city.focus()
	return false}
if (document.contact.state.value == "") {
	alert('Please fill in your state/province.')
	document.contact.state.focus()
	return false}
if (document.contact.subject.value == "NO SUBJECT SELECTED") {
	alert("Please choose a subject from the list.")
	document.contact.subject.focus()
	return false}
if (document.contact.themessage.value == "") {
	alert("Please fill in your message.")
	document.contact.themessage.focus()
	return false;}
}
