function validateForm() {
	
	var okSoFar=true
	if (document.fmail.firstname.value=="") {
		okSoFar=false
		alert("Please enter your first name.")
		document.fmail.firstname.focus()
		}
if (document.fmail.surname.value=="") {
		okSoFar=false
		alert("Please enter your surname.")
		document.fmail.surname.focus()
		}
	  var foundAt = document.fmail.email.value.indexOf("@",0)
      if (foundAt < 1 && okSoFar) {
       okSoFar = false
       alert ("Please enter a valid email address!")
       document.fmail.email.focus()
      }


       if (okSoFar==true) {
        document.fmail.submit()
       }
     }