<!-- Hide code from non-js browsers
//Written 15.11.99
//First set up some global variables
var client=""
var address1=""
var address2=""
var country=""
var postcode=""
var dates=""
var people=""
var region=""
	 
//Now define the particular functions for this page

function validateForm(formObj)
{
	
	formObj.client.value=stripCharsNotInBag(formObj.client.value,addressChars)
	formObj.address1.value=stripCharsNotInBag(formObj.address1.value,addressChars)
	formObj.address2.value=stripCharsNotInBag(formObj.address2.value,addressChars)
	formObj.postcode.value=stripCharsNotInBag(formObj.postcode.value,addressChars)
	
	formObj.country.value=stripCharsNotInBag(formObj.country.value,addressChars)	
	//formObj.dates.value=stripCharsNotInBag(formObj.dates.value,addressChars)
	//formObj.people.value=stripCharsNotInBag(formObj.people.value,addressChars)
	//formObj.region.value=stripCharsNotInBag(formObj.region.value,addressChars)
	formObj.email.value=stripCharsNotInBag(formObj.email.value,emailChars)
	
	
	
	client=formObj.client.value
	address1=formObj.address1.value
	address2=formObj.address2.value
	country=formObj.country.value
	postcode=formObj.postcode.value
	email=formObj.email.value
	//dates=formObj.dates.value
	//people=formObj.people.value
	//region=formObj.region.value
	//food=formObj.food.value
	//scenery=formObj.scenery.value
	//access=formObj.access.value
	//ancient=formObj.ancient.value
	lead=getSelectValue(formObj.lead)
	

	if(!isEmailValue(email,"FALSE")){
	email="not given"
	//alert("here")
	}
	
	if (isWhitespace(client)) {
	alert("Please enter your name in the form")
	formObj.client.focus()
	return false
	}
	
	if (isWhitespace(address1)&&isWhitespace(address1)) {
	alert("Please enter your address in the form")
	formObj.address1.focus()
	return false
	}
	
	if (isWhitespace(postcode)) {
	alert("Please enter your postcode in the form")
	formObj.postcode.focus()
	return false
	}
	
	if (lead=="Choose"){
		alert("Please tell us how you heard about us")
		formObj.lead.focus()
		return false
	}
	if (lead=="-"){
		alert("Please select a specific place where you heard about us")
		formObj.lead.focus()
		return false
	}
	
	
	formObj.action="cgi-bin/MailForm.pl"
	formObj.submit()
}	
// end hiding -->
