function Validateregistrationform(theForm) {
	/*
	if (theForm.title.value == "") {
	  alert("Please select a title");
	  theForm.title.focus();
	  return (false);
	}*/ /* title */
	
	if (theForm.title.value == ""){
		alert("Please select your title.");
		theForm.title.focus();
		return (false);
	}
	
	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.elements['gender'][0].checked || theForm.elements['gender'][1].checked) ) {
		alert("Please select your gender.");
		theForm.gender.focus();
		return (false);
	}
	
	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);
	} else {
	
		var checkedExp = false;
		
		checkedcontentCount = 0;
		var c = theForm['content_selection[]'];
		
		for(var i=0;i<c.length;i++){
			c[i].checked?checkedcontentCount++:null;
		}
		
		if ( checkedcontentCount > 0 ){
			checkedExp = true;	
		}
		
		if (!checkedExp){
			alert("Please select what Queensland content are you interested in receiving.");
			return (false);
		} else {
			// start check on if driving option selected
			checkedDestCount = 0;
		
			var c = theForm['destinations_selection[]'];
			for(var i=0;i<c.length;i++){
				c[i].checked?checkedDestCount++:null;
			}
	
			if (checkedDestCount < 2) {
				alert("Please select your two favourite Queensland destinations.");		   
				return (false);
			}
		}
		return (true);
	}
} /* ValidateEntryForm */

	