	

function validateForm() 

	{

		var okSoFar=true

		with (document.phpformmailer)

		{

		var foundAt = email.value.indexOf("@",0)

		if (foundAt < 1 && okSoFar)

		{

			okSoFar = false

			alert ("Please enter a valid email address.")

			email.focus()

		}

		if (comments.value=="" && okSoFar)

		{

			okSoFar=false

			alert("Please enter the details for your enquiry/message.")

			themessage.focus()

		}

		if (okSoFar==true)  submit();

		}

	}