// Sets visibility for child age select menus. 
// myFormCount is the number of the reservation form you wish to update.
// reservation form numbering starts at 1 and can be greater than 1 if more than one form is on the page.

function updateChildOptions(myFormCount,myChildCount) {
	for (i = 1; i<= 20; i++) {
		mySelect = 'childAge_' + myFormCount + '_' + i;
		document.getElementById(mySelect).style.visibility = "hidden";
		document.getElementById(mySelect).style.display = "none";
	}
	if (isNumeric(myChildCount)) {
		for (i = 1; i<= myChildCount; i++) {
			mySelect = 'childAge_' + myFormCount + '_' + i;
			document.getElementById(mySelect).style.visibility = "visible";
			document.getElementById(mySelect).style.display = "block";
		}
	}
}
