function validateElement(elementName, elementLabel){
	if (eval('document.quoteform.' + elementName + '.value') == "" || eval('document.quoteform.' + elementName + '.value') == elementLabel){
		alert('You must enter ' + elementLabel)
		eval('document.quoteform.' + elementName + '.focus()');
		checkResult = 'error';
	}else{
		checkResult = 'ok';
	}
}



function validateQuote(){

	//debugger;
	

	validateElement('myname', 'your Name');
	if (checkResult == 'error'){
		return false
	}
	
	validateElement('myemail', 'your E-mail');
	if (checkResult == 'error'){
		return false
	}
	
	validateElement('howmany', 'How many people will be travelling');
	if (checkResult == 'error'){
		return false
	}

	validateElement('where', 'Where would you like to travel to');
	if (checkResult == 'error'){
		return false
	}
	
	validateElement('when', 'When would you like to travel');
	if (checkResult == 'error'){
		return false
	}
	
	validateElement('stay', 'How long would you like to stay for');
	if (checkResult == 'error'){
		return false
	}
	
	validateElement('accommodation', 'What kind of accommodation are you looking for');
	if (checkResult == 'error'){
		return false
	}
	
	validateElement('rounds', 'How many rounds would you like to play');
	if (checkResult == 'error'){
		return false
	}
	
	validateElement('hearlongmere', 'Where did you hear of us');
	if (checkResult == 'error'){
		return false
	}
	
	document.forms['quoteform'].submit();

}
