							function validateForm() 
							{
							 var okSoFar=true
							 with (document.mot_booking)
							 {
							  if (car_make.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm car manufacturer.")
								car_make.focus()
							  }
							  if (car_model.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm car model.")
								car_model.focus()
							  }
							  if (reg_year.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm year of registration.")
								reg_year.focus()
							  }
							  if (engine.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm engine size.")
								engine.focus()
							  }
							  if (fuel.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm fuel type.")
								fuel.focus()
							  }
							  if (title.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm your title.")
								title.focus()
							  }
							  if (forename.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm your forename.")
								forename.focus()
							  }
							  if (surname.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm your surname.")
								surname.focus()
							  }
							  if (address.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm your address.")
								address.focus()
							  }
							  if (phone.value=="" && okSoFar)
							  {
								okSoFar=false
								alert("Please confirm your telephone number.")
								phone.focus()
							  }
							  var foundAt = email.value.indexOf("@",0)
							  if (foundAt < 1 && okSoFar)
							  {
								okSoFar = false
								alert ("Please enter a valid email address.")
								email.focus()
							  }
							  if (okSoFar==true)  submit();
							 }
							}
