function validateForm() {
	var okSoFar=true
	with (document.phpformmailer1 || document.phpformmailer2 || document.phpformmailer3 || document.phpformmailer4)
	{
	
	var foundAt = email.value.indexOf("@",0)
	if (foundAt < 1 && okSoFar) {
		okSoFar = false
		alert ("Please enter a valid email address. ie. reception@cordellsdesign.com")
		email.focus()
	}
	
	var e1 = email.value
	var e2 = email2.value
	if (!(e1==e2) && okSoFar) {
		okSoFar = false
		alert ("Email addresses you entered do not match. Please confirm you've entered them correctly.")
		email.focus()
	}
	if (thesubject.value=="" && okSoFar) {
		okSoFar=false
		alert("Please enter the subject of your message.")
		thesubject.focus()
	}
	if (themessage.value=="" && okSoFar) {
		okSoFar=false
		alert("Please enter the details of your message.")
		themessage.focus()
	}
	if (okSoFar==true)  submit(); 
	}
}