<!--
//function called on window onload
function iniForm()
{	
	document.form1.NumberOfChildren.value = 0;
}

function showhideTripLength(val)
{
	if (val == "Single")
		document.getElementById("TripLength1").innerHTML = "<span class='formblackbold'> Trip Length in days </span>&nbsp;&nbsp;<input onkeypress='return numbersonly(event);' maxLength='3' size='3' name='TripLength'>";
	else
		document.getElementById("TripLength1").innerHTML = "";
}

function resetform()
{document.form1.reset();}

function validate()
{
	if (!validVisitorAge(document.form1))  return false;
 	if (!validSpouseAge(document.form1)) return false;
	if (!validDepChildrenAge(document.form1)) return false;
	if (document.form1.CoveragePeriod.selectedIndex == 0)
	{
		alert("Please select the Trip Type");
		return false;
	}
	if (document.form1.CoveragePeriod.value == "Single" && (document.form1.TripLength.value==''|| (!validNumeric(document.form1.TripLength.value))))	
	{
		alert("Please enter valid trip length period");
		return false;
	}
	if (document.form1.CoverageType[0].checked == false && document.form1.CoverageType[1].checked == false)
	{
		alert('Please select the coverage type');
		return false;
	}
	if (conditionalparameters())
	{document.form1.submit();}
}

function conditionalparameters()
{
	
	return true;
}

//-->

