function onSubmit(o){	
	/*var oStartDate = new Date();
	var oEndDate = new Date();
	var date = new Date();
	
	oStartDate.setFullYear( slArrivalYear.value , parseInt(slArrivalMonth.value.replace("0","")), slArrivalDay.value );
	oEndDate.setFullYear( slDepartureYear.value, parseInt(slDepartureMonth.value.replace("0","")), slDepartureDay.value );
	*/
	if(o.txtYourName.value.length == 0){
		alert("Please enter your name");
		o.txtYourName.focus();
		return false;
	}
	if(o.txtYourEmail.value.length == 0){
		alert("Please enter your email address");
		o.txtYourEmail.focus();
		return false;
	}
	
	if(!o.txtYourEmail.value.match(/^[\w-+\.]+@[\w-+\.]+[\w-]$/)){
		alert("Your email address in not valid");
		o.txtYourEmail.focus();
		return false;
	}

	if(o.txtConfirmYourEmail.value.length == 0){
		alert("Please confirm your email address");
		o.txtConfirmYourEmail.focus();
		return false;
	}
	
	if(!o.txtConfirmYourEmail.value.match(/^[\w-+\.]+@[\w-+\.]+[\w-]$/)){
		alert("Your confirmation email address in not valid");
		o.txtConfirmYourEmail.focus();
		return false;
	}
	
	if(o.txtYourEmail.value != o.txtConfirmYourEmail.value){
		alert("Your email addresses don't match");
		o.txtYourEmail.focus();
		return false;
	}
	
	if(o.txtPostcode.value.length == 0){
		alert("Please enter your postcode");
		o.txtPostcode.focus();
		return false;
	}
	
	if(o.txtCountry.value.length == 0){
		alert("Please enter your country");
		o.txtCountry.focus();
		return false;
	}
	
	if(o.txtTelephone.value.length == 0){
		alert("Please enter your telephone number");
		o.txtTelephone.focus();
		return false;
	}
	
	if($("#txtArrivalDate").val().length ==0){
		alert("Please specify an arrival date");
		$("#txtArrivalDate").focus();
		return false;
	}
	
	if($("#txtDepartureDate").val().length ==0){
		alert("Please specify a departure date");
		$("#txtDepartureDate").focus();
		return false;
	}
	
	/*
	if(oStartDate < date){
		alert("Arrival date must not be in the past");
		slArrivalDay.focus();
		return false;
	}
	
	if(oEndDate < date){
		alert("Departure date must not be in the past");
		slDepartureDay.focus();
		return false;
	}
	
	if ( oStartDate >= oEndDate ){
		alert("The Departure date you have selected is before the arrival date, please try again");
		slDepartureDay.focus();
		return false;
	}
	*/
		
	if(o.txtEmailKey.value.length == 0){
		alert("Please tell us whether you live");
		o.txtEmailKey.focus();
		return false;
	}

		oCookieManager.StoreFormData();

	return true;
	
}