function validateContacts(theForm){
		if(!isName(theForm.name.value) || theForm.name.value == ""){
			alert("Please enter a a valid name");
			theForm.name.focus();
			return false;
		}
		var countryBox = theForm.country;
		if(countryBox[countryBox.selectedIndex].value == "GB"){	
			if(!isPostcode(theForm.postcode.value)){
				alert("Please enter a valid postcode");
				theForm.postcode.focus();
				return false;
			}
		}
		
		if(!isPhone(theForm.telephone.value)){
			alert("Please provide your phone number");
			theForm.telephone.focus();
			return false;
		}
		
		if(!isEmail(theForm.email.value)){
			alert("Please provide a valid email address");
			theForm.email.focus();
			return false;
		}
				
		if(!theForm.byemail.checked && !theForm.byphone.checked){
			alert("Please specify your preferred contact method.");
			theForm.byemail.focus();
			return false;
		}
		
		if(theForm.regarding.value == ""){
			alert("Please provide some details as to what you would like " + sitename + " to contact you regarding.");
			theForm.regarding.focus();
			return false;
		}

		return true;
	}

function doPostcodeRequired() {
		var countryBox = document.contacts.country;
		if(countryBox[countryBox.selectedIndex].value == "GB"){
			document.getElementById('pcodereq').style.display = '' ;
		} else {
			document.getElementById('pcodereq').style.display = 'none' ;
		}
}