<!-- Hide code from non-js browsers
//First set up some global variables
var adults=0
var days =0
	 

function getQuote(formObj) {

	if(validateForm(formObj)){
		document.snowquote.action="snowquote.htm"
		document.snowquote.submit()
	}
	else {return}
}


function purchasePolicy(formObj) {
	formObj=document.snowquote
	if(validateForm(formObj)){
		document.snowquote.action="snowform.htm"
		document.snowquote.submit()
	}
	else {
	//alert ("here")
	return
	}
}


function validateForm(formObj)
{
	adults=cleanAndSet("document.snowquote.a")
	locale=document.snowquote.l.selectedIndex
	period=document.snowquote.days.selectedIndex
	days=getSelectValue(document.snowquote.days)
	document.snowquote.d.value=days
	document.snowquote.partner.value=partner
	
	if (adults<1)
	{
		alert("We can only give a quote if you tell us how many people there are in the party\nPlease try again");
		return false;
	}
	
	return true
}	
// end hiding -->
