function ValidateForm(form) {
	Today = new Date()
	CheckInDate = new Date (document.Main_Search.CheckInDate.value)
	CheckOutDate = new Date (document.Main_Search.CheckOutDate.value)
	NumOfKids = document.Main_Search.NumOfKids.value
	
	//if (CheckInDate < Today) {
		//alert("Please select a Check-In Date later than Today's Date");
		//return false;
		//}
	
	if (CheckOutDate <= CheckInDate) {
		alert("Please select a Check-Out Date later than the Check-In Date");
		return false;
		}
	
	for(n = 0; n < NumOfKids; n++) {
		num=n+1
		if (eval("document.Main_Search.AgeKids"+num+".value") == "0") {
			alert("Please select age of child  #");
			return false;
			}
		}	
	return true;
}

function ValidateForm2(form) {
	Today = new Date()
	CheckInDate = new Date (document.RefineSearchDates.CheckInDate.value)
	CheckOutDate = new Date (document.RefineSearchDates.CheckOutDate.value)
	NumOfKids = document.RefineSearchDates.NumOfKids.value
	
	//if (CheckInDate < Today) {
		//alert("Please select a Check-In Date later than Today's Date");
		//return false;
		//}
	
	if (CheckOutDate <= CheckInDate) {
		alert("Please select a Check-Out Date later than the Check-In Date");
		return false;
		}
	
	for(n = 0; n < NumOfKids; n++) {
		num=n+1
		if (eval("document.RefineSearchDates.AgeKids"+num+".value") == "0") {
			alert("Please select age of child  #");
			return false;
			}
		}	
	return true;
}

function ValidateForm3(form) {
	Today = new Date()
	CheckInDate = new Date (document.Change_Dates1.CheckInDate.value)
	CheckOutDate = new Date (document.Change_Dates1.CheckOutDate.value)
	NumOfKids = document.Change_Dates1.NumOfKids.value
	
	//if (CheckInDate < Today) {
		//alert("Please select a Check-In Date later than Today's Date");
		//return false;
		//}
	
	if (CheckOutDate <= CheckInDate) {
		alert("Please select a Check-Out Date later than the Check-In Date");
		return false;
		}
	
	for(n = 0; n < NumOfKids; n++) {
		num=n+1
		if (eval("document.Change_Dates1.AgeKids"+num+".value") == "0") {
			alert("Please select age of child  #");
			return false;
			}
		}	
	return true;
}

function ValidateForm4(form) {
	Today = new Date()
	CheckInDate = new Date (document.Change_Dates2.CheckInDate.value)
	CheckOutDate = new Date (document.Change_Dates2.CheckOutDate.value)
	NumOfKids = document.Change_Dates2.NumOfKids.value
	
	//if (CheckInDate < Today) {
		//alert("Please select a Check-In Date later than Today's Date");
		//return false;
		//}
	
	if (CheckOutDate <= CheckInDate) {
		alert("Please select a Check-Out Date later than the Check-In Date");
		return false;
		}
	
	for(n = 0; n < NumOfKids; n++) {
		num=n+1
		if (eval("document.Change_Dates2.AgeKids"+num+".value") == "0") {
			alert("Please select age of child  #");
			return false;
			}
		}	
	return true;
}