function CheckForm(theForm)
{

if (theForm.name.value == "") // has name been entered?
{
alert("Please enter your name") // if not, display a message
theForm.name.focus() // and send user to offending entry
return false // and of course ... return false
}

if (theForm.email.value.indexOf("@",0) == -1) // is there an "@" present on email?
{
alert("Please enter a valid email address")  //if not, display message
theForm.email.focus()  // and send user to offending entry
theForm.email.select() // selects field
return false   // return false
}
	
if (theForm.email.value.indexOf(".",0) == -1) // is there a "." present on email?
{
alert("Please enter a valid email address")  //if not, display message
theForm.email.focus()  // and send user to offending entry
theForm.email.select()  // selects field
return false   // return false
}

// End validation codes for personal details.
						
else
return true // if everything meets validation rules ... return true
	
} //end of function
