							function validateForm() 
							{
							 var okSoFar=true
							 with (document.contact_form)
							 {
							  if (name.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please enter your name.")
								name.focus()
							  }
							  var foundAt = email.value.indexOf("@",0)
							  if (foundAt < 1 && okSoFar)
							  {
								okSoFar = false
								alert ("Please enter a valid email address.")
								email.focus()
							  }
							  if (thesubject.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please enter the title of your query.")
								thesubject.focus()
							  }
							  if (themessage.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please enter the details for your enquiry.")
								themessage.focus()
							  }
							  if (okSoFar==true)  submit();
							 }
							}
