function Validateregistrationform(theForm) {
	if (theForm.firstname.value == "") {
	  alert("Please enter your first name.");
	  theForm.firstname.focus();
	  return (false);
	} /* First_Name */
	
	if (theForm.lastname.value == "") {
	  alert("Please enter your surname.");
	  theForm.lastname.focus();
	  return (false);
	} /* lastname */
		
	var emailpat;
	emailpat = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+$/;
		if( !emailpat.test( theForm.email.value ) ) {
		  alert("Please enter a valid email address.");
      			theForm.email.focus();
      			return (false);
		} /* Email */

	if (theForm.state.value == "" && theForm.country.value == "AU") {
	  alert("Please select your state.");
	  theForm.state.focus();
	  return (false);
	} /* state */
		
	if (theForm.country.value == "") {
	  alert("Please select your country.");
	  theForm.country.focus();
	  return (false);
	} /* country */		
	
	if (theForm.dob_day.value == "") {
		alert("Please select your birthday.");
		theForm.dob_day.focus();
		return (false);
	}
	
	if (theForm.dob_month.value == "") {
		alert("Please select your birthday.");
		theForm.dob_month.focus();
		return (false);
	}
} /* ValidateEntryForm */

	

