<!--
function validatePax(loForm) {

	var bValid = true;
	var llAdu = 0;
	var llChi = 0;
	var llInf = 0;
	var llTotalPax = 0;

	//Validate pax
	with(loForm)
	{
		if (AdultPax[AdultPax.selectedIndex].value == "")
		{
			alert("Please select the number of Adults in your party");
			AdultPax.focus();
			return false;
		}
		if (ChildPax[ChildPax.selectedIndex].value == "")
		{
			alert("Please select the number of children in your party");
			ChildPax.focus();
			return false;
		}
		if (InfantPax[InfantPax.selectedIndex].value == "")
		{
			alert("Please select the number of infants in your party");
			InfantPax.focus();
			return false;
		}

		llAdu = Number(AdultPax[AdultPax.selectedIndex].value);
		llChi = eval(ChildPax[ChildPax.selectedIndex].value);
		llInf = eval(InfantPax[InfantPax.selectedIndex].value);
		
		llTotalPax = llAdu + llChi + llInf;
					
		if (llTotalPax > 8)
		{
			bValid = false;
			alert("You have chosen a party with " + llTotalPax + " members.\nParties of 9 or more must be booked by telephone.");
		}
		return bValid;
	}
}

function validateAccomProviderPax()
{
	var llAdu = 0;
	var llChi = 0;

	var llHRAdu = 0;
	var llHRChi = 0;

	llAdu = parseInt(document.getElementById("AdultPax").value);
	llChi = parseInt(document.getElementById("ChildPax").value);

	llHRAdu = 0;
	llHRChi = 0;

	for (i = 1; i <= 5; i++)
	{
		llHRAdu += parseInt(document.getElementById("adu_room" + i).value);
		llHRChi += parseInt(document.getElementById("chi_room" + i).value);
	}

	if (llHRAdu != llAdu)
	{
		alert ("The total number of Adults in each room does not match the total of adult passengers.");
		return false;
	}
	else if (llHRChi != llChi)
	{
		alert ("The total number of Children in each room does not match the total of children passengers.");
		return false;
	}
	else
	{
		return true;
	}
}
//--> 

