<!-- 
function checkFormGeneric() {
	// set up error message string
	var errmsg = "";
	var anyboxchecked = false;
	if (document.generic.FirstName.value == '') {	errmsg+='- Please enter your First Name \n';    }
	if (document.generic.FamilyName.value == '') {	errmsg+='- Please enter your Family Name \n';    }

	// Check if any of the options at the bottom have been clicked for how info is to be given
	if  (document.generic.SendEmailWithMoreInformation != null) {
		if (document.generic.SendEmailWithMoreInformation.checked == true) {
			anyboxchecked = true;
			//alert('hello');
		}
	}
	//SendEmailWithMoreInformation
	if  (document.generic.SendMonthlyEmailUpdate != null) {
		if (document.generic.SendMonthlyEmailUpdate.checked == true) {
			anyboxchecked = true;
		}
	}
	if  (document.generic.SendInformationPackInMail != null) {
		if (document.generic.SendInformationPackInMail.checked == true) {
			anyboxchecked = true;
		}
	}
	if  (document.generic.SendMonthlyUpdatesByPost != null) {
		if (document.generic.SendMonthlyUpdatesByPost.checked == true) {
			anyboxchecked = true;
		}
	}
	if  (document.generic.SendMeInformationOnAllDestinationsByPostOrByEmail != null) {
		if (document.generic.SendMeInformationOnAllDestinationsByPostOrByEmail.checked == true) {
			anyboxchecked = true;
		}
	}
	if  (document.generic.SendMeCountrySpecificInformation != null) {
		if (document.generic.SendMeCountrySpecificInformation.checked == true) {
			anyboxchecked = true;
		}
	}
	
	if (anyboxchecked == false){
		errmsg+='- Please tick an option indicating how you would like us to contact you \n';    
	}	
	// check if they've asked for email, check email is present
	if  (document.generic.SendEmailWithMoreInformation != null && document.generic.SendMonthlyEmailUpdate != null ){
		if ((document.generic.SendEmailWithMoreInformation.checked == true)||(document.generic.SendMonthlyEmailUpdate.checked == true)) {	
			if (document.generic.Email.value == '') {	errmsg+='- You requested information by email - Please supply an email address \n';    }
		}
	}
	// check if they've asked for snail mail, check address is present
	if  (document.generic.SendInformationPackInMail != null && document.generic.SendMonthlyUpdatesByPost != null ){
		if ((document.generic.SendInformationPackInMail.checked == true)||(document.generic.SendMonthlyUpdatesByPost.checked == true)) {	
			if (document.generic.Address.value == '') {	errmsg+='- You requested information by post - Please supply an address \n';    }
			if (document.generic.Suburb.value == '') {	errmsg+='- You requested information by post - Please supply a suburb \n';    }
			if (document.generic.State.value == '') {	errmsg+='- You requested information by post - Please supply a state \n';    }
			if (document.generic.Postcode.value == '') {	errmsg+='- You requested information by post - Please supply a postcode \n';    }
		}
	}

	// now check errmsg to see if it's blank
	if (errmsg != ""){
		alert('Sorry, there was a problem with the information you entered, the items to be rectified are: \n\n'+errmsg+'\n\nAfter you\'ve entered these details, please submit the form again');
		return false;
	} 

return true;
}
// end hide -->