function FormVaildateContact(f){
	// this is a list of checkboxes of which we want people to select at least one
	var MoreInfoCheckBoxes = new Array(f.InfAbt_GT,f.InfAbt_DE,f.InfAbt_HTS,f.InfAbt_TAB,f.InfAbt_UBT,f.InfAbt_TROUGH,f.InfAbt_MH,f.InfAbt_PF,f.InfAbt_CM,f.InfAbt_BC, f.InfAbt_TT, f.InfAbt_OT)
	
	var AtLeastOneMoreInfoChecked = false
	//loop thru the list
	for (var i = 0;i< MoreInfoCheckBoxes.length;i++){
			if (!AtLeastOneMoreInfoChecked && MoreInfoCheckBoxes[i].checked) {
				AtLeastOneMoreInfoChecked = true
			}
	}
	
	if (!AtLeastOneMoreInfoChecked) {
		// if none are selected
		alert("Please select at least one product to recieve more info about.")
		return false;
	}

	
	MM_validateForm('FirstName','','R','LastName','','R','Email','','RisEmail','What_would_you_like_to_know','','R');
	if(!document.MM_returnValue) return document.MM_returnValue;

	if (f.ContactMe_PHONE.checked) {
		MM_validateForm('FirstName','','R','LastName','','R','Email','','RisEmail','What_would_you_like_to_know','','R');
		if(!document.MM_returnValue) return document.MM_returnValue;
	}
	if (f.ContactMe_PHONE.checked) {
		MM_validateForm('Telephone1','','R');
		if(!document.MM_returnValue) return document.MM_returnValue;
	}
	if (f.SendInf_POST.checked) {
		MM_validateForm('Street','','R', 'Suburb','','R', 'State','','R', 'Country','','R','Postcode','','R');
		if(!document.MM_returnValue) return document.MM_returnValue;
	}
	
	//if you make it this far...
	f.PostBack.value="1";
	return true;
}

function setFormContent(elementArray, bCheckValue){
	//pass in a checkValue (boolean), then set the display based on that value
	var e;
	//alert(bCheckValue);
	for (var i=0;i<elementArray.length;i++){
		var e = document.getElementById(elementArray[i])
		if (bCheckValue){
			e.style.display = 'inline';
		}else{
			e.style.display = 'none';
		}
		//alert(e.style.display)
	}
}

