
var mindays;
var custage; 
function win_open()

{
window.open('/portal/cb/microcbol/master.html','','width=625,height=440')
}

function trimSpace(x)
{
var emptySpace = / /g;
var trimAfter = x.replace(emptySpace,"");
return(trimAfter);
}

function textValidate(incomingString, defaultValue)
{
if(trimSpace(incomingString).length == 0 || incomingString.search(/[^a-zA-Z ]/g) != -1 || incomingString==defaultValue)
{

return false;

}

else
	
return true;

}

function genValidate(incomingString, defaultValue)

{
if(trimSpace(incomingString).length == 0 || incomingString==defaultValue)

{
return false;
}

else
return true;
}

function alphanumeric(incomingString, defaultValue)
{
if(trimSpace(incomingString).length == 0 || incomingString.search(/[^0-9a-zA-Z ]/g) != -1 || incomingString==defaultValue)
{
return false;
}
else
return true;

}

function numberValidate(incomingString, defaultValue)

{

if(trimSpace(incomingString).length == 0 || incomingString.search(/[^0-9]/g) != -1 || incomingString==defaultValue || parseInt(incomingString, 10) <= 0 )

{

return false;

}

else

return true;	

}


var emailexp = /^([a-zA-Z0-9_\-\.]+)@([a-zA-Z\-]+)\.(([a-zA-Z]{2,3}|[0-9]{1,3})|([a-zA-Z]{2}\.[a-zA-Z]{2}))$/;


function reset1()

{

document.ngnghpolicycards.reset()

return false


}

	function hide_disagree()
	{
		//alert("If you want to proceed further, please read the Declaration / Disclaimer completely and give us your acceptance");
		document.form1.ch2.disabled = true;
		document.form1.ch3.disabled = true;
		hide_image();
	}
	function show_disagree()
	{
		document.form1.ch2.disabled = false;
		document.form1.ch3.disabled = false;
		show_image();
	}

var submitFlag = true;
function enable_91days()
{
persons1 = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

					if(persons1 == 1)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;
						document.form1.txtPRAmt.disabled =false;
						
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons1 == 2)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.txtPRAmt.disabled =false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons1 == 3)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons1 == 4)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons1 == 5)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.sltInsure5.disabled = false;
						document.form1.txtNameHealth5.disabled = false;
						document.form1.sltGender5.disabled = false;
						document.form1.healthDD5.disabled = false;
						document.form1.healthMM5.disabled = false;
						document.form1.healthYYYY5.disabled = false;
						document.form1.sltCoverageAmt5.disabled = false;
						document.form1.ct5[0].disabled = false;
						document.form1.ct5[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
}

function disable_91days()
{
	persons1 = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

				if(persons1 == 1)
					{

				//		alert("Minimum age of the Insured person has to be 91 days");

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;
						document.form1.txtPRAmt.disabled =true;

						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
					//	document.form1.agr[0].disabled = true;
					//	document.form1.agr[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons1 == 2)
					{

				//	alert("Minimum age of the Insured person has to be 91 days");

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons1 == 3)
					{

					//	alert("Minimum age of the Insured person has to be 91 days");

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons1 == 4)
					{

					//	alert("Minimum age of the Insured person has to be 91 days");

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons1 == 5)
					{

				//		alert("Minimum age of the Insured person has to be 91 days");

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;

						document.form1.sltInsure5.disabled = true;
						document.form1.txtNameHealth5.disabled = true;
						document.form1.sltGender5.disabled = true;
						document.form1.healthDD5.disabled = true;
						document.form1.healthMM5.disabled = true;
						document.form1.healthYYYY5.disabled = true;
						document.form1.sltCoverageAmt5.disabled = true;
						document.form1.ct5[0].disabled = true;
						document.form1.ct5[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}

}


function disable2()
{
	persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 2)
	{
	
		document.form1.sltCoverageAmt2.disabled = true;
		document.form1.ct2[0].disabled = true;
		document.form1.ct2[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;

		hide_image();
	}
	else if(persons == 3)
	{

		document.form1.sltCoverageAmt2.disabled = true;
		document.form1.ct2[0].disabled = true;
		document.form1.ct2[1].disabled = true;

		document.form1.sltInsure3.disabled = true;
		document.form1.txtNameHealth3.disabled = true;
		document.form1.sltGender3.disabled = true;
		document.form1.healthDD3.disabled = true;
		document.form1.healthMM3.disabled = true;
		document.form1.healthYYYY3.disabled = true;
		document.form1.sltCoverageAmt3.disabled = true;
		document.form1.ct3[0].disabled = true;
		document.form1.ct3[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;

		hide_image();
	}
	else if(persons == 4)
	{

		document.form1.sltCoverageAmt2.disabled = true;
		document.form1.ct2[0].disabled = true;
		document.form1.ct2[1].disabled = true;

		document.form1.sltInsure3.disabled = true;
		document.form1.txtNameHealth3.disabled = true;
		document.form1.sltGender3.disabled = true;
		document.form1.healthDD3.disabled = true;
		document.form1.healthMM3.disabled = true;
		document.form1.healthYYYY3.disabled = true;
		document.form1.sltCoverageAmt3.disabled = true;
		document.form1.ct3[0].disabled = true;
		document.form1.ct3[1].disabled = true;

		document.form1.sltInsure4.disabled = true;
		document.form1.txtNameHealth4.disabled = true;
		document.form1.sltGender4.disabled = true;
		document.form1.healthDD4.disabled = true;
		document.form1.healthMM4.disabled = true;
		document.form1.healthYYYY4.disabled = true;
		document.form1.sltCoverageAmt4.disabled = true;
		document.form1.ct4[0].disabled = true;
		document.form1.ct4[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;

		hide_image();
	}
	else if(persons == 5)
	{

		document.form1.sltCoverageAmt2.disabled = true;
		document.form1.ct2[0].disabled = true;
		document.form1.ct2[1].disabled = true;

		document.form1.sltInsure3.disabled = true;
		document.form1.txtNameHealth3.disabled = true;
		document.form1.sltGender3.disabled = true;
		document.form1.healthDD3.disabled = true;
		document.form1.healthMM3.disabled = true;
		document.form1.healthYYYY3.disabled = true;
		document.form1.sltCoverageAmt3.disabled = true;
		document.form1.ct3[0].disabled = true;
		document.form1.ct3[1].disabled = true;

		document.form1.sltInsure4.disabled = true;
		document.form1.txtNameHealth4.disabled = true;
		document.form1.sltGender4.disabled = true;
		document.form1.healthDD4.disabled = true;
		document.form1.healthMM4.disabled = true;
		document.form1.healthYYYY4.disabled = true;
		document.form1.sltCoverageAmt4.disabled = true;
		document.form1.ct4[0].disabled = true;
		document.form1.ct4[1].disabled = true;

		document.form1.sltInsure5.disabled = true;
		document.form1.txtNameHealth5.disabled = true;
		document.form1.sltGender5.disabled = true;
		document.form1.healthDD5.disabled = true;
		document.form1.healthMM5.disabled = true;
		document.form1.healthYYYY5.disabled = true;
		document.form1.sltCoverageAmt5.disabled = true;
		document.form1.ct5[0].disabled = true;
		document.form1.ct5[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;

		hide_image();
	}
				
}

function disable3()
{
persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 3)
	{

		document.form1.sltCoverageAmt3.disabled = true;
		document.form1.ct3[0].disabled = true;
		document.form1.ct3[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;
		hide_image();
	}
	else if(persons == 4)
	{

		document.form1.sltCoverageAmt3.disabled = true;
		document.form1.ct3[0].disabled = true;
		document.form1.ct3[1].disabled = true;

		document.form1.sltInsure4.disabled = true;
		document.form1.txtNameHealth4.disabled = true;
		document.form1.sltGender4.disabled = true;
		document.form1.healthDD4.disabled = true;
		document.form1.healthMM4.disabled = true;
		document.form1.healthYYYY4.disabled = true;
		document.form1.sltCoverageAmt4.disabled = true;
		document.form1.ct4[0].disabled = true;
		document.form1.ct4[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;
		hide_image();
	}
	else if(persons == 5)
	{

		document.form1.sltCoverageAmt3.disabled = true;
		document.form1.ct3[0].disabled = true;
		document.form1.ct3[1].disabled = true;

		document.form1.sltInsure4.disabled = true;
		document.form1.txtNameHealth4.disabled = true;
		document.form1.sltGender4.disabled = true;
		document.form1.healthDD4.disabled = true;
		document.form1.healthMM4.disabled = true;
		document.form1.healthYYYY4.disabled = true;
		document.form1.sltCoverageAmt4.disabled = true;
		document.form1.ct4[0].disabled = true;
		document.form1.ct4[1].disabled = true;

		document.form1.sltInsure5.disabled = true;
		document.form1.txtNameHealth5.disabled = true;
		document.form1.sltGender5.disabled = true;
		document.form1.healthDD5.disabled = true;
		document.form1.healthMM5.disabled = true;
		document.form1.healthYYYY5.disabled = true;
		document.form1.sltCoverageAmt5.disabled = true;
		document.form1.ct5[0].disabled = true;
		document.form1.ct5[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;

		hide_image();
	}
}

function disable4()
{
persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 4)
	{
		document.form1.sltCoverageAmt4.disabled = true;
		document.form1.ct4[0].disabled = true;
		document.form1.ct4[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;
		hide_image();
	}
	else if(persons == 5)
	{
		document.form1.sltCoverageAmt4.disabled = true;
		document.form1.ct4[0].disabled = true;
		document.form1.ct4[1].disabled = true;

		document.form1.sltInsure5.disabled = true;
		document.form1.txtNameHealth5.disabled = true;
		document.form1.sltGender5.disabled = true;
		document.form1.healthDD5.disabled = true;
		document.form1.healthMM5.disabled = true;
		document.form1.healthYYYY5.disabled = true;
		document.form1.sltCoverageAmt5.disabled = true;
		document.form1.ct5[0].disabled = true;
		document.form1.ct5[1].disabled = true;
						
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;
		hide_image();
	}


}

function disable5()
{
persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 5)
	{

		document.form1.sltCoverageAmt5.disabled = true;
		document.form1.ct5[0].disabled = true;
		document.form1.ct5[1].disabled = true;
								
		document.form1.txtPRAmt.disabled =true;
		//document.form1.ch1.disabled = true;
		document.form1.ch1[0].disabled = true;
		document.form1.ch1[1].disabled = true;
		document.form1.ch2.disabled = true;

		hide_image();
	}

}

function enable2()
{
persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 2)
	{
		document.form1.sltCoverageAmt2.disabled = false;
		document.form1.ct2[0].disabled = false;
		document.form1.ct2[1].disabled = false;
						
		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}
	else if(persons == 3)
	{
		document.form1.sltCoverageAmt2.disabled = false;
		document.form1.ct2[0].disabled = false;
		document.form1.ct2[1].disabled = false;
						
		document.form1.sltInsure3.disabled = false;
		document.form1.txtNameHealth3.disabled = false;
		document.form1.sltGender3.disabled = false;
		document.form1.healthDD3.disabled = false;
		document.form1.healthMM3.disabled = false;
		document.form1.healthYYYY3.disabled = false;
		document.form1.sltCoverageAmt3.disabled = false;
		document.form1.ct3[0].disabled = false;
		document.form1.ct3[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}
	else if(persons == 4)
	{
		document.form1.sltCoverageAmt2.disabled = false;
		document.form1.ct2[0].disabled = false;
		document.form1.ct2[1].disabled = false;
						
		document.form1.sltInsure3.disabled = false;
		document.form1.txtNameHealth3.disabled = false;
		document.form1.sltGender3.disabled = false;
		document.form1.healthDD3.disabled = false;
		document.form1.healthMM3.disabled = false;
		document.form1.healthYYYY3.disabled = false;
		document.form1.sltCoverageAmt3.disabled = false;
		document.form1.ct3[0].disabled = false;
		document.form1.ct3[1].disabled = false;
						
		document.form1.sltInsure4.disabled = false;
		document.form1.txtNameHealth4.disabled = false;
		document.form1.sltGender4.disabled = false;
		document.form1.healthDD4.disabled = false;
		document.form1.healthMM4.disabled = false;
		document.form1.healthYYYY4.disabled = false;
		document.form1.sltCoverageAmt4.disabled = false;
		document.form1.ct4[0].disabled = false;
		document.form1.ct4[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}
	else if(persons == 5)
	{
		
		document.form1.sltCoverageAmt2.disabled = false;
		document.form1.ct2[0].disabled = false;
		document.form1.ct2[1].disabled = false;
						
		document.form1.sltInsure3.disabled = false;
		document.form1.txtNameHealth3.disabled = false;
		document.form1.sltGender3.disabled = false;
		document.form1.healthDD3.disabled = false;
		document.form1.healthMM3.disabled = false;
		document.form1.healthYYYY3.disabled = false;
		document.form1.sltCoverageAmt3.disabled = false;
		document.form1.ct3[0].disabled = false;
		document.form1.ct3[1].disabled = false;
						
		document.form1.sltInsure4.disabled = false;
		document.form1.txtNameHealth4.disabled = false;
		document.form1.sltGender4.disabled = false;
		document.form1.healthDD4.disabled = false;
		document.form1.healthMM4.disabled = false;
		document.form1.healthYYYY4.disabled = false;
		document.form1.sltCoverageAmt4.disabled = false;
		document.form1.ct4[0].disabled = false;
		document.form1.ct4[1].disabled = false;

		document.form1.sltInsure5.disabled = false;
		document.form1.txtNameHealth5.disabled = false;
		document.form1.sltGender5.disabled = false;
		document.form1.healthDD5.disabled = false;
		document.form1.healthMM5.disabled = false;
		document.form1.healthYYYY5.disabled = false;
		document.form1.sltCoverageAmt5.disabled = false;
		document.form1.ct5[0].disabled = false;
		document.form1.ct5[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}
}

function enable3()
{
persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 3)
	{
		document.form1.sltCoverageAmt3.disabled = false;
		document.form1.ct3[0].disabled = false;
		document.form1.ct3[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}
	else if(persons == 4)
	{
		document.form1.sltCoverageAmt3.disabled = false;
		document.form1.ct3[0].disabled = false;
		document.form1.ct3[1].disabled = false;
						
		document.form1.sltInsure4.disabled = false;
		document.form1.txtNameHealth4.disabled = false;
		document.form1.sltGender4.disabled = false;
		document.form1.healthDD4.disabled = false;
		document.form1.healthMM4.disabled = false;
		document.form1.healthYYYY4.disabled = false;
		document.form1.sltCoverageAmt4.disabled = false;
		document.form1.ct4[0].disabled = false;
		document.form1.ct4[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}
	else if(persons == 5)
	{
						
		document.form1.sltCoverageAmt3.disabled = false;
		document.form1.ct3[0].disabled = false;
		document.form1.ct3[1].disabled = false;
						
		document.form1.sltInsure4.disabled = false;
		document.form1.txtNameHealth4.disabled = false;
		document.form1.sltGender4.disabled = false;
		document.form1.healthDD4.disabled = false;
		document.form1.healthMM4.disabled = false;
		document.form1.healthYYYY4.disabled = false;
		document.form1.sltCoverageAmt4.disabled = false;
		document.form1.ct4[0].disabled = false;
		document.form1.ct4[1].disabled = false;

		document.form1.sltInsure5.disabled = false;
		document.form1.txtNameHealth5.disabled = false;
		document.form1.sltGender5.disabled = false;
		document.form1.healthDD5.disabled = false;
		document.form1.healthMM5.disabled = false;
		document.form1.healthYYYY5.disabled = false;
		document.form1.sltCoverageAmt5.disabled = false;
		document.form1.ct5[0].disabled = false;
		document.form1.ct5[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}

}

function enable4()
{
persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 4)
	{
		document.form1.sltCoverageAmt4.disabled = false;
		document.form1.ct4[0].disabled = false;
		document.form1.ct4[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;
		show_image();
	}
	else if(persons == 5)
	{
		document.form1.sltCoverageAmt4.disabled = false;
		document.form1.ct4[0].disabled = false;
		document.form1.ct4[1].disabled = false;

		document.form1.sltInsure5.disabled = false;
		document.form1.txtNameHealth5.disabled = false;
		document.form1.sltGender5.disabled = false;
		document.form1.healthDD5.disabled = false;
		document.form1.healthMM5.disabled = false;
		document.form1.healthYYYY5.disabled = false;
		document.form1.sltCoverageAmt5.disabled = false;
		document.form1.ct5[0].disabled = false;
		document.form1.ct5[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}

}

function enable5()
{
persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

	if(persons == 5)
	{
						
		document.form1.sltCoverageAmt5.disabled = false;
		document.form1.ct5[0].disabled = false;
		document.form1.ct5[1].disabled = false;

		document.form1.txtPRAmt.disabled =false;
		//document.form1.ch1.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
		document.form1.ch2.disabled = false;

		show_image();
	}
}

function checkAge(val)
{
	persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;
//	alert(val);

	if(val == 1)
	{
			
			if(document.form1.sltInsure1.selectedIndex == 0)
			{
				alert("Please select number of persons you would like to insure.");
				document.form1.sltInsure1.focus();
				return false;
			}
				if(space.test(document.form1.healthDD1.value))
				{
					alert("Please enter date of birth of the person to be insured of the person to be insured");
					document.form1.healthDD1.value="DD";
					document.form1.healthDD1.focus();
					return false;
				}
				/*if(document.form1.healthDD1.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured of the person to be insured");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();
					return false;
				}*/
				if(space.test(document.form1.healthMM1.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM1.value="MM";
					document.form1.healthMM1.focus();
					return false;
				}
				/*if(document.form1.healthMM1.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();
					return false;
				}*/
				if(space.test(document.form1.healthYYYY1.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY1.value="YYYY";
					document.form1.healthYYYY1.focus();
					return false;
				}
				/*if(document.form1.healthYYYY1.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY1.focus();
					document.form1.healthYYYY1.select();
					return false;
				}*/
				if (document.form1.healthDD1.value != "DD")
				{
					if(isNaN(document.form1.healthDD1.value))
					{
						alert("Please check. The date of birth field entry seems to be invalid.");
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						return false;
					}
				}
				if((document.form1.healthDD1.value == "0") || (document.form1.healthDD1.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();
					return false;
				}
				if(document.form1.healthMM1.value!="MM")
				{
					if(isNaN(document.form1.healthMM1.value))
					{
						alert("Please check. The month of birth field entry seems to be invalid.");
						document.form1.healthMM1.focus();
						document.form1.healthMM1.select();
						return false;
					}
				}
				if((document.form1.healthMM1.value == "0") || (document.form1.healthMM1.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();
					return false;
				}
				if(document.form1.healthYYYY1.value!="YYYY")
				{
					if(isNaN(document.form1.healthYYYY1.value))
					{
						alert("Please check. The year of birth field entry seems to be invalid.");
						document.form1.healthYYYY1.focus();
						document.form1.healthYYYY1.select();
						return false;
					}
				}
				if(document.form1.healthYYYY1.value == "")
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					document.form1.healthYYYY1.focus();
					document.form1.healthYYYY1.select();
					return false;
				}

				var datedd = document.form1.healthDD1.value;
				var datemm = document.form1.healthMM1.value;
				var dateyy = document.form1.healthYYYY1.value;

				var finaldob = datedd+"/"+datemm+"/"+dateyy;
			//	alert(finaldob);
			
				var curdt1 = new Date();
				var yrt1   = curdt1.getFullYear();
				var mnth1   = curdt1.getMonth()+1;

				if(datedd > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();return false;
				}
				if((dateyy == yrt1) && (datemm > mnth1))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();return false;
				}
				else if(datemm > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();return false;
				}
				if(dateyy > yrt1)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					disable_91days();
					document.form1.healthYYYY1.focus();
					document.form1.healthYYYY1.select();return false;
				}
				else
				{

				var dobage = finaldob;
				var sptdobage = new Array();
				sptdobage = dobage.split('/');
				var dtage = new Date();
				var yage  = dtage.getFullYear();
				var mage = dtage.getMonth();
	
				run(datedd,datemm,dateyy);
				tota = custage;
				totdays = mindays;
				//alert(tota+" "+totdays);
		
				if((document.form1.sltInsure1.selectedIndex == 3) || (document.form1.sltInsure1.selectedIndex == 4) || (document.form1.sltInsure1.selectedIndex == 9) || (document.form1.sltInsure1.selectedIndex == 10) || (document.form1.sltInsure1.selectedIndex == 15) || (document.form1.sltInsure1.selectedIndex == 16) || (document.form1.sltInsure1.selectedIndex == 19) || (document.form1.sltInsure1.selectedIndex == 20))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;				
					}
				}
				else
				{
					enable_91days();
				}

				if((document.form1.sltInsure1.selectedIndex == 1) || (document.form1.sltInsure1.selectedIndex == 2) || (document.form1.sltInsure1.selectedIndex == 5) || (document.form1.sltInsure1.selectedIndex == 6) || (document.form1.sltInsure1.selectedIndex == 7) || (document.form1.sltInsure1.selectedIndex == 8) || (document.form1.sltInsure1.selectedIndex == 11) || (document.form1.sltInsure1.selectedIndex == 12) || (document.form1.sltInsure1.selectedIndex == 13) || (document.form1.sltInsure1.selectedIndex == 14) || (document.form1.sltInsure1.selectedIndex == 17) || (document.form1.sltInsure1.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;				
					}
				}
				else
				{
					enable_91days();
				}

				if(tota > 60)
				{
					if(persons == 1)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");

						//document.form1.healthYYYY1.focus();
						//document.form1.healthYYYY1.select();

						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;
						document.form1.txtPRAmt.disabled =true;

						//document.form1.ch1.disabled = true;
						document.form1.ch2.disabled = true;
						hide_image();
					}
					else if(persons == 2)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					//	document.form1.healthYYYY1.focus();
					//	document.form1.healthYYYY1.select();

						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons == 3)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					//	document.form1.healthYYYY1.focus();
					//	document.form1.healthYYYY1.select();

						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons == 4)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					//	document.form1.healthYYYY1.focus();
					//	document.form1.healthYYYY1.select();
						
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons == 5)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						//document.form1.healthYYYY1.focus();
						//document.form1.healthYYYY1.select();

						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();

						document.form1.sltCoverageAmt1.disabled =true;
						document.form1.ct1[0].disabled =true;
						document.form1.ct1[1].disabled =true;

						document.form1.sltInsure2.disabled = true;
						document.form1.txtNameHealth2.disabled = true;
						document.form1.sltGender2.disabled = true;
						document.form1.healthDD2.disabled = true;
						document.form1.healthMM2.disabled = true;
						document.form1.healthYYYY2.disabled = true;
						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;

						document.form1.sltInsure5.disabled = true;
						document.form1.txtNameHealth5.disabled = true;
						document.form1.sltGender5.disabled = true;
						document.form1.healthDD5.disabled = true;
						document.form1.healthMM5.disabled = true;
						document.form1.healthYYYY5.disabled = true;
						document.form1.sltCoverageAmt5.disabled = true;
						document.form1.ct5[0].disabled = true;
						document.form1.ct5[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					
				}
				else
				{
					if(persons == 1)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;
						document.form1.txtPRAmt.disabled =false;
				
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons == 2)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons == 3)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
					//	document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons == 4)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons == 5)
					{
						document.form1.sltCoverageAmt1.disabled =false;
						document.form1.ct1[0].disabled =false;
						document.form1.ct1[1].disabled =false;

						document.form1.sltInsure2.disabled = false;
						document.form1.txtNameHealth2.disabled = false;
						document.form1.sltGender2.disabled = false;
						document.form1.healthDD2.disabled = false;
						document.form1.healthMM2.disabled = false;
						document.form1.healthYYYY2.disabled = false;
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.sltInsure5.disabled = false;
						document.form1.txtNameHealth5.disabled = false;
						document.form1.sltGender5.disabled = false;
						document.form1.healthDD5.disabled = false;
						document.form1.healthMM5.disabled = false;
						document.form1.healthYYYY5.disabled = false;
						document.form1.sltCoverageAmt5.disabled = false;
						document.form1.ct5[0].disabled = false;
						document.form1.ct5[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
				}
				}
			document.form1.sltCoverageAmt1.selectedIndex = 0;
			document.form1.txtPRAmt.value = "";
		}
		else if(val == 2)
		{
				if(document.form1.sltInsure2.selectedIndex == 0)
				{
					alert("Please select number of persons you would like to insure.");
					document.form1.sltInsure2.focus();
					return false;
				}
				if(space.test(document.form1.healthDD2.value))
				{
					alert("Please enter date of birth of the person to be insured of the person to be insured of birth of the person to be insured");
					document.form1.healthDD2.value="DD";
					document.form1.healthDD2.focus();
					return false;
				}
				if(space.test(document.form1.healthMM2.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM2.value="MM";
					document.form1.healthMM2.focus();
					return false;
				}
				if(space.test(document.form1.healthYYYY2.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY2.value="YYYY";
					document.form1.healthYYYY2.focus();
					return false;
				}
				/*if(document.form1.healthDD2.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured of the person to be insured");
					document.form1.healthDD2.focus();
					document.form1.healthDD2.select();
					return false;
				}
				if(document.form1.healthMM2.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();
					return false;
				}
				if(document.form1.healthYYYY2.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY2.focus();
					document.form1.healthYYYY2.select();
					return false;
				}*/
				if(document.form1.healthYYYY2.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY2.focus();
					document.form1.healthYYYY2.select();
					return false;
				}
				if(document.form1.healthDD2.value != "DD")
				{
					if(isNaN(document.form1.healthDD2.value))
					{
						alert("Please check. The date of birth field entry seems to be invalid.");
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						return false;
					}
				}
				if((document.form1.healthDD2.value == "0") || (document.form1.healthDD2.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD2.focus();
					document.form1.healthDD2.select();
					return false;
				}
				if(document.form1.healthMM2.value!="MM")
				{
					if(isNaN(document.form1.healthMM2.value))
					{
						alert("Please check. The month of birth field entry seems to be invalid.");
						document.form1.healthMM2.focus();
						document.form1.healthMM2.select();
						return false;
					}
				}
				if((document.form1.healthMM2.value == "0") || (document.form1.healthMM2.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();
					return false;
				}
				if(document.form1.healthYYYY2.value!="YYYY")
				{
					if(isNaN(document.form1.healthYYYY2.value))
					{
						alert("Please check. The year of birth field entry seems to be invalid.");
						document.form1.healthYYYY2.focus();
						document.form1.healthYYYY2.select();
						return false;
					}
				}

				var datedd2 = document.form1.healthDD2.value;
				var datemm2 = document.form1.healthMM2.value;
				var dateyy2 = document.form1.healthYYYY2.value;

				var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);
				
				
				var curdt2 = new Date();
				var yrt2   = curdt2.getFullYear();
				var mnth2   = curdt2.getMonth();
				
				if(datedd2 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD2.focus();
					document.form1.healthDD2.select();return false;
				}
				if((dateyy2 == yrt2) && (datemm2 > mnth2))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();return false;
				}
				else if(datemm2 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();return false;
				}
				if(dateyy2 > yrt2)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					document.form1.healthYYYY2.focus();
					document.form1.healthYYYY2.select();
					disable2();
					return false;
				}
				else
				{
			
				var dobage2 = finaldob2;
				var sptdobage2 = new Array();
				sptdobage2 = dobage2.split('/');
				
					var dtage2 = new Date();
					var yage2  = dtage2.getFullYear();
					var mage2 = dtage2.getMonth();
				
				run(datedd2,datemm2,dateyy2);
				tota2 = custage;
				totdays = mindays;

				if((document.form1.sltInsure2.selectedIndex == 3) || (document.form1.sltInsure2.selectedIndex == 4) || (document.form1.sltInsure2.selectedIndex == 9) || (document.form1.sltInsure2.selectedIndex == 10) || (document.form1.sltInsure2.selectedIndex == 15) || (document.form1.sltInsure2.selectedIndex == 16) || (document.form1.sltInsure2.selectedIndex == 19) || (document.form1.sltInsure2.selectedIndex == 20))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;	
					}
				}
				else if((document.form1.sltInsure2.selectedIndex == 1) || (document.form1.sltInsure2.selectedIndex == 2) || (document.form1.sltInsure2.selectedIndex == 5) || (document.form1.sltInsure2.selectedIndex == 6) || (document.form1.sltInsure2.selectedIndex == 7) || (document.form1.sltInsure2.selectedIndex == 8) || (document.form1.sltInsure2.selectedIndex == 11) || (document.form1.sltInsure2.selectedIndex == 12) || (document.form1.sltInsure2.selectedIndex == 13) || (document.form1.sltInsure2.selectedIndex == 14) || (document.form1.sltInsure2.selectedIndex == 17) || (document.form1.sltInsure2.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;
					}
				}
				else
				{
					enable2();
				}

				if(tota2 > 60)
				{
					if(persons == 2)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						//document.form1.healthYYYY2.focus();
						//document.form1.healthYYYY2.select();

						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();

						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons == 3)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					//	document.form1.healthYYYY2.focus();
					//	document.form1.healthYYYY2.select();

						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();

						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons == 4)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					//	document.form1.healthYYYY2.focus();
					//	document.form1.healthYYYY2.select();

						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();

						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;
						
						hide_image();
					}
					else if(persons == 5)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						//document.form1.healthYYYY2.focus();
						//document.form1.healthYYYY2.select();

						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();

						document.form1.sltCoverageAmt2.disabled = true;
						document.form1.ct2[0].disabled = true;
						document.form1.ct2[1].disabled = true;

						document.form1.sltInsure3.disabled = true;
						document.form1.txtNameHealth3.disabled = true;
						document.form1.sltGender3.disabled = true;
						document.form1.healthDD3.disabled = true;
						document.form1.healthMM3.disabled = true;
						document.form1.healthYYYY3.disabled = true;
						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;

						document.form1.sltInsure5.disabled = true;
						document.form1.txtNameHealth5.disabled = true;
						document.form1.sltGender5.disabled = true;
						document.form1.healthDD5.disabled = true;
						document.form1.healthMM5.disabled = true;
						document.form1.healthYYYY5.disabled = true;
						document.form1.sltCoverageAmt5.disabled = true;
						document.form1.ct5[0].disabled = true;
						document.form1.ct5[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
				}
				else
				{
					if(persons == 2)
					{
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons == 3)
					{
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons == 4)
					{
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
					else if(persons == 5)
					{
						
						document.form1.sltCoverageAmt2.disabled = false;
						document.form1.ct2[0].disabled = false;
						document.form1.ct2[1].disabled = false;
						
						document.form1.sltInsure3.disabled = false;
						document.form1.txtNameHealth3.disabled = false;
						document.form1.sltGender3.disabled = false;
						document.form1.healthDD3.disabled = false;
						document.form1.healthMM3.disabled = false;
						document.form1.healthYYYY3.disabled = false;
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.sltInsure5.disabled = false;
						document.form1.txtNameHealth5.disabled = false;
						document.form1.sltGender5.disabled = false;
						document.form1.healthDD5.disabled = false;
						document.form1.healthMM5.disabled = false;
						document.form1.healthYYYY5.disabled = false;
						document.form1.sltCoverageAmt5.disabled = false;
						document.form1.ct5[0].disabled = false;
						document.form1.ct5[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;

						show_image();
					}
				}
			}
			document.form1.sltCoverageAmt2.selectedIndex = 0;
			document.form1.txtPRAmt.value = "";
		}
		else if(val == 3)
		{
				if(document.form1.sltInsure3.selectedIndex == 0)
				{
					alert("Please select number of persons you would like to insure.");
					document.form1.sltInsure3.focus();
					return false;
				}

				if(space.test(document.form1.healthDD3.value))
				{
					alert("Please enter date of birth of the person to be insured");
					document.form1.healthDD3.value="DD";
					document.form1.healthDD3.focus();
					return false;
				}
				if(space.test(document.form1.healthMM3.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM3.value="MM";
					document.form1.healthMM3.focus();
					return false;
				}
				if(space.test(document.form1.healthYYYY3.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY3.value="YYYY";
					document.form1.healthYYYY3.focus();
					return false;
				}
				/*if(document.form1.healthDD3.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					document.form1.healthDD3.focus();
					document.form1.healthDD3.select();
					return false;
				}
				if(document.form1.healthMM3.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();
					return false;
				}
				if(document.form1.healthYYYY3.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY3.focus();
					document.form1.healthYYYY3.select();
					return false;
				}*/
				if(document.form1.healthYYYY3.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY3.focus();
					document.form1.healthYYYY3.select();
					return false;
				}
				if(document.form1.healthDD3.value!="DD")
				{
					if(isNaN(document.form1.healthDD3.value))
					{
						alert("Please check. The date of birth field entry seems to be invalid.");
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						return false;
					}
				}
				if((document.form1.healthDD3.value == "0") || (document.form1.healthDD3.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD3.focus();
					document.form1.healthDD3.select();
					return false;
				}
				if(document.form1.healthMM3.value!="MM")
				{
					if(isNaN(document.form1.healthMM3.value))
					{
						alert("Please check. The month of birth field entry seems to be invalid.");
						document.form1.healthMM3.focus();
						document.form1.healthMM3.select();
						return false;
					}
				}
				if((document.form1.healthMM3.value == "0") || (document.form1.healthMM3.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();
					return false;
				}
				if(document.form1.healthYYYY3.value!="YYYY")
				{
					if(isNaN(document.form1.healthYYYY3.value))
					{
						alert("Please check. The year of birth field entry seems to be invalid.");
						document.form1.healthYYYY3.focus();
						document.form1.healthYYYY3.select();
						return false;
					}
				}

				var datedd3 = document.form1.healthDD3.value;
				var datemm3 = document.form1.healthMM3.value;
				var dateyy3 = document.form1.healthYYYY3.value;

				var finaldob3 = datedd3+"/"+datemm3+"/"+dateyy3;
			//	alert(finaldob3);
				
			
					var curdt3 = new Date();
					var yrt3   = curdt3.getFullYear();
					var mnth3   = curdt3.getMonth();
			
				if(datedd3 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD3.focus();
					document.form1.healthDD3.select();return false;
				}
				if((dateyy3 == yrt3) && (datemm3 > mnth3))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();return false;
				}
				else if(datemm3 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();return false;
				}
				if(dateyy3 > yrt3)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					document.form1.healthYYYY3.focus();
					document.form1.healthYYYY3.select();
					s
					return false;
				}
				else
				{
			
				var dobage3 = finaldob3;
				var sptdobage3 = new Array();
				sptdobage3 = dobage3.split('/');
				
					var dtage3 = new Date();
					var yage3  = dtage3.getFullYear();
					var mage3 = dtage3.getMonth();
				
				run(datedd3,datemm3,dateyy3);
				tota3 = custage;
				totdays = mindays;
				

				if((document.form1.sltInsure3.selectedIndex == 3) || (document.form1.sltInsure3.selectedIndex == 4) || (document.form1.sltInsure3.selectedIndex == 9) || (document.form1.sltInsure3.selectedIndex == 10) || (document.form1.sltInsure3.selectedIndex == 15) || (document.form1.sltInsure3.selectedIndex == 16) || (document.form1.sltInsure3.selectedIndex == 19) || (document.form1.sltInsure3.selectedIndex == 20))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;			
						
					}
				}
				else if((document.form1.sltInsure3.selectedIndex == 1) || (document.form1.sltInsure3.selectedIndex == 2) || (document.form1.sltInsure3.selectedIndex == 5) || (document.form1.sltInsure3.selectedIndex == 6) || (document.form1.sltInsure3.selectedIndex == 7) || (document.form1.sltInsure3.selectedIndex == 8) || (document.form1.sltInsure3.selectedIndex == 11) || (document.form1.sltInsure3.selectedIndex == 12) || (document.form1.sltInsure3.selectedIndex == 13) || (document.form1.sltInsure3.selectedIndex == 14) || (document.form1.sltInsure3.selectedIndex == 17) || (document.form1.sltInsure3.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;			
						
					}
				
				}
				else
				{
					enable3();
				}

				if(tota3 > 60)
				{
					if(persons == 3)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					//	document.form1.healthYYYY3.focus();
					//	document.form1.healthYYYY3.select();

						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();

						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;

						hide_image();
					}
					else if(persons == 4)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						//document.form1.healthYYYY3.focus();
						//document.form1.healthYYYY3.select();
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();

						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;
					
						hide_image();
					}
					else if(persons == 5)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						//document.form1.healthYYYY3.focus();
						//document.form1.healthYYYY3.select();
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();

						document.form1.sltCoverageAmt3.disabled = true;
						document.form1.ct3[0].disabled = true;
						document.form1.ct3[1].disabled = true;

						document.form1.sltInsure4.disabled = true;
						document.form1.txtNameHealth4.disabled = true;
						document.form1.sltGender4.disabled = true;
						document.form1.healthDD4.disabled = true;
						document.form1.healthMM4.disabled = true;
						document.form1.healthYYYY4.disabled = true;
						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;

						document.form1.sltInsure5.disabled = true;
						document.form1.txtNameHealth5.disabled = true;
						document.form1.sltGender5.disabled = true;
						document.form1.healthDD5.disabled = true;
						document.form1.healthMM5.disabled = true;
						document.form1.healthYYYY5.disabled = true;
						document.form1.sltCoverageAmt5.disabled = true;
						document.form1.ct5[0].disabled = true;
						document.form1.ct5[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;
		

						hide_image();
					}
				}
				else
				{
					if(persons == 3)
					{
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;
				

						show_image();
					}
					else if(persons == 4)
					{
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;
					
						show_image();
					}
					else if(persons == 5)
					{
						
						document.form1.sltCoverageAmt3.disabled = false;
						document.form1.ct3[0].disabled = false;
						document.form1.ct3[1].disabled = false;
						
						document.form1.sltInsure4.disabled = false;
						document.form1.txtNameHealth4.disabled = false;
						document.form1.sltGender4.disabled = false;
						document.form1.healthDD4.disabled = false;
						document.form1.healthMM4.disabled = false;
						document.form1.healthYYYY4.disabled = false;
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.sltInsure5.disabled = false;
						document.form1.txtNameHealth5.disabled = false;
						document.form1.sltGender5.disabled = false;
						document.form1.healthDD5.disabled = false;
						document.form1.healthMM5.disabled = false;
						document.form1.healthYYYY5.disabled = false;
						document.form1.sltCoverageAmt5.disabled = false;
						document.form1.ct5[0].disabled = false;
						document.form1.ct5[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;
				

						show_image();
					}
				}
			}
			document.form1.sltCoverageAmt3.selectedIndex = 0;
			document.form1.txtPRAmt.value = "";
			
		}
		else if(val == 4)
		{
				
				if(document.form1.sltInsure4.selectedIndex == 0)
				{
					alert("Please select number of persons you would like to insure.");
					document.form1.sltInsure4.focus();
					return false;
				}

				if(space.test(document.form1.healthDD4.value))
				{
					alert("Please enter date of birth of the person to be insured");
					document.form1.healthDD4.value="DD";
					document.form1.healthDD4.focus();
					return false;
				}
				if(space.test(document.form1.healthMM4.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM4.value="MM";
					document.form1.healthMM4.focus();
					return false;
				}
				if(space.test(document.form1.healthYYYY4.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY4.value="YYYY";
					document.form1.healthYYYY4.focus();
					return false;
				}
				/*if(document.form1.healthDD4.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					document.form1.healthDD4.focus();
					document.form1.healthDD4.select();
					return false;
				}
				if(document.form1.healthMM4.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();
					return false;
				}
				if(document.form1.healthYYYY4.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY4.focus();
					document.form1.healthYYYY4.select();
					return false;
				}*/
				if(document.form1.healthYYYY4.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY4.focus();
					document.form1.healthYYYY4.select();
					return false;
				}
				if(document.form1.healthDD4.value!="DD")
				{
					if(isNaN(document.form1.healthDD4.value))
					{
						alert("Please check. The date of birth field entry seems to be invalid.");
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
						return false;
					}
				}
				if((document.form1.healthDD4.value == "0") || (document.form1.healthDD4.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD4.focus();
					document.form1.healthDD4.select();
					return false;
				}
				if(document.form1.healthMM4.value!="MM")
				{
					if(isNaN(document.form1.healthMM4.value))
					{
						alert("Please check. The month of birth field entry seems to be invalid.");
						document.form1.healthMM4.focus();
						document.form1.healthMM4.select();
						return false;
					}
				}
				if((document.form1.healthMM4.value == "0") || (document.form1.healthMM4.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();
					return false;
				}
				if(document.form1.healthYYYY4.value!="YYYY")
				{
					if(isNaN(document.form1.healthYYYY4.value))
					{
						alert("Please check. The year of birth field entry seems to be invalid.");
						document.form1.healthYYYY4.focus();
						document.form1.healthYYYY4.select();
						return false;
					}
				}

				var datedd4 = document.form1.healthDD4.value;
				var datemm4 = document.form1.healthMM4.value;
				var dateyy4 = document.form1.healthYYYY4.value;

				var finaldob4 = datedd4+"/"+datemm4+"/"+dateyy4;
			//	alert(finaldob4);
				
				
					var curdt4 = new Date();
					var yrt4   = curdt4.getFullYear();
					var mnth4   = curdt4.getMonth();
				

				if(datedd4 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD4.focus();
					document.form1.healthDD4.select();return false;
				}
				if((dateyy4 == yrt4) && (datemm4 > mnth4))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();return false;
				}
				else if(datemm4 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();return false;
				}
				if(dateyy4 > yrt4)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					document.form1.healthYYYY4.focus();
					document.form1.healthYYYY4.select();disable4();return false;
				}
				else
				{
			
				var dobage4 = finaldob4;
				var sptdobage4 = new Array();
				sptdobage4 = dobage4.split('/');
				
					var dtage4 = new Date();
					var yage4  = dtage4.getFullYear();
					var mage4 = dtage4.getMonth();
				
				run(datedd4,datemm4,dateyy4);
				tota4 = custage;
				totdays = mindays;


					if((document.form1.sltInsure4.selectedIndex == 3) || (document.form1.sltInsure4.selectedIndex == 4) || (document.form1.sltInsure4.selectedIndex == 9) || (document.form1.sltInsure4.selectedIndex == 10) || (document.form1.sltInsure4.selectedIndex == 15) || (document.form1.sltInsure4.selectedIndex == 16) || (document.form1.sltInsure4.selectedIndex == 19) || (document.form1.sltInsure4.selectedIndex == 20))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
						disable4();
						return false;			
						
					}
				}
				else if((document.form1.sltInsure4.selectedIndex == 1) || (document.form1.sltInsure4.selectedIndex == 2) || (document.form1.sltInsure4.selectedIndex == 5) || (document.form1.sltInsure4.selectedIndex == 6) || (document.form1.sltInsure4.selectedIndex == 7) || (document.form1.sltInsure4.selectedIndex == 8) || (document.form1.sltInsure4.selectedIndex == 11) || (document.form1.sltInsure4.selectedIndex == 12) || (document.form1.sltInsure4.selectedIndex == 13) || (document.form1.sltInsure4.selectedIndex == 14) || (document.form1.sltInsure4.selectedIndex == 17) || (document.form1.sltInsure4.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
						disable4();
						return false;			
						
					}
				
				}
				else
				{
					enable4();
				}

				if(tota4 > 60)
				{
					if(persons == 4)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					//	document.form1.healthYYYY4.focus();
					//	document.form1.healthYYYY4.select();

						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();

						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;
			
						hide_image();
					}
					else if(persons == 5)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						//document.form1.healthYYYY4.focus();
						//document.form1.healthYYYY4.select();

						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();

						document.form1.sltCoverageAmt4.disabled = true;
						document.form1.ct4[0].disabled = true;
						document.form1.ct4[1].disabled = true;

						document.form1.sltInsure5.disabled = true;
						document.form1.txtNameHealth5.disabled = true;
						document.form1.sltGender5.disabled = true;
						document.form1.healthDD5.disabled = true;
						document.form1.healthMM5.disabled = true;
						document.form1.healthYYYY5.disabled = true;
						document.form1.sltCoverageAmt5.disabled = true;
						document.form1.ct5[0].disabled = true;
						document.form1.ct5[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						//document.form1.ch1.disabled = true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;
				
						hide_image();
					}
				}
				else
				{
					if(persons == 4)
					{
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;
			
						show_image();
					}
					else if(persons == 5)
					{
						
						document.form1.sltCoverageAmt4.disabled = false;
						document.form1.ct4[0].disabled = false;
						document.form1.ct4[1].disabled = false;

						document.form1.sltInsure5.disabled = false;
						document.form1.txtNameHealth5.disabled = false;
						document.form1.sltGender5.disabled = false;
						document.form1.healthDD5.disabled = false;
						document.form1.healthMM5.disabled = false;
						document.form1.healthYYYY5.disabled = false;
						document.form1.sltCoverageAmt5.disabled = false;
						document.form1.ct5[0].disabled = false;
						document.form1.ct5[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						//document.form1.ch1.disabled = false;
						document.form1.ch1[0].disabled = false;
						document.form1.ch1[1].disabled = false;
						document.form1.ch2.disabled = false;
					
						show_image();
					}
				}
			}
			document.form1.sltCoverageAmt4.selectedIndex = 0;
			document.form1.txtPRAmt.value = "";
		}
		else if(val == 5)
		{
				
				if(document.form1.sltInsure5.selectedIndex == 0)
				{
					alert("Please select number of persons you would like to insure.");
					document.form1.sltInsure5.focus();
					return false;
				}

				if(space.test(document.form1.healthDD5.value))
				{
					alert("Please enter date of birth of the person to be insured");
					document.form1.healthDD5.value="DD";
					document.form1.healthDD5.focus();
					return false;
				}
				if(space.test(document.form1.healthMM5.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM5.value="MM";
					document.form1.healthMM5.focus();
					return false;
				}
				if(space.test(document.form1.healthYYYY5.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY5.value="YYYY";
					document.form1.healthYYYY5.focus();
					return false;
				}

				/*if(document.form1.healthDD5.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					document.form1.healthDD5.focus();
					document.form1.healthDD5.select();
					return false;
				}
				if(document.form1.healthMM5.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					document.form1.healthMM5.focus();
					document.form1.healthMM5.select();
					return false;
				}
				if(document.form1.healthYYYY5.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY5.focus();
					document.form1.healthYYYY5.select();
					return false;
				}*/
				if(document.form1.healthYYYY5.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					document.form1.healthYYYY5.focus();
					document.form1.healthYYYY5.select();
					return false;
				}
				if(document.form1.healthDD5.value!="DD")
				{
					if(isNaN(document.form1.healthDD5.value))
					{
						alert("Please check. The date of birth field entry seems to be invalid.");
						document.form1.healthDD5.focus();
						document.form1.healthDD5.select();
						return false;
					}
				}
				if((document.form1.healthDD5.value == "0") || (document.form1.healthDD5.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD5.focus();
					document.form1.healthDD5.select();
					return false;
				}
				if(document.form1.healthMM5.value!="MM")
				{
					if(isNaN(document.form1.healthMM5.value))
					{
						alert("Please check. The month of birth field entry seems to be invalid.");
						document.form1.healthMM5.focus();
						document.form1.healthMM5.select();
						return false;
					}
				}
				if((document.form1.healthMM5.value == "0") || (document.form1.healthMM5.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM5.focus();
					document.form1.healthMM5.select();
					return false;
				}
				if(document.form1.healthYYYY5.value!="YYYY")
				{
					if(isNaN(document.form1.healthYYYY5.value))
					{
						alert("Please check. The year of birth field entry seems to be invalid.");
						document.form1.healthYYYY5.focus();
						document.form1.healthYYYY5.select();
						return false;
					}
				}

				var datedd5 = document.form1.healthDD5.value;
				var datemm5 = document.form1.healthMM5.value;
				var dateyy5 = document.form1.healthYYYY5.value;

				var finaldob5 = datedd5+"/"+datemm5+"/"+dateyy5;
			//	alert(finaldob5);
				
					var curdt5 = new Date();
					var yrt5   = curdt5.getFullYear();
					var mnth5   = curdt5.getMonth();
				
				if(datedd5 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD5.focus();
					document.form1.healthDD5.select();return false;
				}
				if((dateyy5 == yrt5) && (datemm5 > mnth5))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM5.focus();
					document.form1.healthMM5.select();return false;
				}
				else if(datemm5 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM5.focus();
					document.form1.healthMM5.select();return false;
				}
				if(dateyy5 > yrt5)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					document.form1.healthYYYY5.focus();
					document.form1.healthYYYY5.select();disable5();return false;
				}
				else
				{
			
				var dobage5 = finaldob5;
				var sptdobage5 = new Array();
				sptdobage5 = dobage5.split('/');
			
					var dtage5 = new Date();
					var yage5  = dtage5.getFullYear();
					var mage5 = dtage5.getMonth();

				run(datedd5,datemm5,dateyy5);
				tota5 = custage;
				totdays = mindays;
			


				if((document.form1.sltInsure5.selectedIndex == 3) || (document.form1.sltInsure5.selectedIndex == 4) || (document.form1.sltInsure5.selectedIndex == 9) || (document.form1.sltInsure5.selectedIndex == 10) || (document.form1.sltInsure5.selectedIndex == 15) || (document.form1.sltInsure5.selectedIndex == 16) || (document.form1.sltInsure5.selectedIndex == 19) || (document.form1.sltInsure5.selectedIndex == 20))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY5.value = "YYYY";
						document.form1.healthMM5.value = "MM";
						document.form1.healthDD5.value = "DD";
						document.form1.healthDD5.focus();
						document.form1.healthDD5.select();
						disable5();
						return false;			
						
					}
				}
				else if((document.form1.sltInsure5.selectedIndex == 1) || (document.form1.sltInsure5.selectedIndex == 2) || (document.form1.sltInsure5.selectedIndex == 5) || (document.form1.sltInsure5.selectedIndex == 6) || (document.form1.sltInsure5.selectedIndex == 7) || (document.form1.sltInsure5.selectedIndex == 8) || (document.form1.sltInsure5.selectedIndex == 11) || (document.form1.sltInsure5.selectedIndex == 12) || (document.form1.sltInsure5.selectedIndex == 13) || (document.form1.sltInsure5.selectedIndex == 14) || (document.form1.sltInsure5.selectedIndex == 17) || (document.form1.sltInsure5.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY5.value = "YYYY";
						document.form1.healthMM5.value = "MM";
						document.form1.healthDD5.value = "DD";
						document.form1.healthDD5.focus();
						document.form1.healthDD5.select();
						disable5();
						return false;			
						
					}
				
				}
				else
				{
					enable5();
				}

				if(tota5 > 60)
				{
					if(persons == 5)
					{

						alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						//document.form1.healthYYYY5.focus();
						//document.form1.healthYYYY5.select();
						document.form1.healthYYYY5.value = "YYYY";
						document.form1.healthMM5.value = "MM";
						document.form1.healthDD5.value = "DD";
						document.form1.healthDD5.focus();
						document.form1.healthDD5.select();

						document.form1.sltCoverageAmt5.disabled = true;
						document.form1.ct5[0].disabled = true;
						document.form1.ct5[1].disabled = true;
						
						document.form1.txtPRAmt.disabled =true;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = true;
				
						hide_image();
					}
				}
				else
				{
					if(persons == 5)
					{
						
						document.form1.sltCoverageAmt5.disabled = false;
						document.form1.ct5[0].disabled = false;
						document.form1.ct5[1].disabled = false;

						document.form1.txtPRAmt.disabled =false;
						document.form1.ch1[0].disabled = true;
						document.form1.ch1[1].disabled = true;
						document.form1.ch2.disabled = false;
				
						show_image();
					}
				}
			
		}
			document.form1.sltCoverageAmt5.selectedIndex = 0;
			document.form1.txtPRAmt.value = "";
		}

}

var alpha = /^[a-zA-Z.\ ]*$/;
var space = /^[\ ]*$/;
var num1= /^[0-9]*$/;
var prnum= /^[0-9\.]*$/;
var alphpnum = /^[a-zA-Z0-9\ ]*$/;
var email=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
	
	function validate_health(Form)
	{
	
	
		if(Form.sltTitle.selectedIndex == 0)
		{
			alert("Please choose a Title");
			Form.sltTitle.focus();
			return false;
		}
		if(space.test(Form.First_Name.value))
		{
			alert("Please enter your First Name");
			Form.First_Name.focus();
			return false;
		}
		if(Form.First_Name.value == "First Name")
		{
			alert("Please enter your First Name");
			Form.First_Name.focus();
			Form.First_Name.select();
			return false;
		}
		if(!alpha.test(Form.First_Name.value))
		{
			alert("Please check your First name (Alphabets only)");
			Form.First_Name.focus();
			Form.First_Name.select();
			return false;
		}	
		if(space.test(Form.Last_Name.value))
		{
			alert("Please enter your Last Name");
			Form.Last_Name.focus();
			return false;
		}
		if(Form.Last_Name.value == "Last Name")
		{
			alert("Please enter your Last Name");
			Form.Last_Name.focus();
			Form.Last_Name.select();
			return false;
		}
		if(!alpha.test(Form.Last_Name.value))
		{
			alert("Please check your Last Name(Alphabets only)");
			Form.Last_Name.focus();
			Form.Last_Name.select();
			return false;
		}	
		if(Form.Mobile.value == "")
		{
			if(space.test(Form.STD_Code.value))
			{
				alert("Please enter the STD Code of your City");
				Form.STD_Code.focus();
				return false;
			}
			if(Form.STD_Code.value == "STD code")
			{
				alert("Please enter the STD Code of your City");
				Form.STD_Code.focus();
				Form.STD_Code.select();
				return false;
			}
			if(!num1.test(Form.STD_Code.value))
			{
				alert("Please check the STD code");
				Form.STD_Code.focus();
				Form.STD_Code.select();
				return false;
			}
			if(Form.STD_Code.value.length < 3)
			{
				alert("Please check the STD code");
				Form.STD_Code.focus();
				Form.STD_Code.select();
				return false;
			}
			if(Form.STD_Code.value.length > 5)
			{
				alert("Please check the STD code");
				Form.STD_Code.focus();
				Form.STD_Code.select();
				return false;
			}
			if(Form.STD_Code.value.substr(0,1) !=0)
			{
				alert("Please check the STD code");
				Form.STD_Code.focus();
				Form.STD_Code.select();
				return false;
			}
		
			if(space.test(Form.Phone_Number.value))
			{
				alert("Please enter your Phone Number");
				Form.Phone_Number.focus();
				Form.Phone_Number.select();
				return false;
			}
			if(!num1.test(Form.Phone_Number.value))
			{
				alert("Please check the Phone number");
				Form.Phone_Number.focus();
				Form.Phone_Number.select();
				return false;
			}
			if((Form.Phone_Number.value.substr(0,1) == 0) || (Form.Phone_Number.value.substr(0,1) == 1) || (Form.Phone_Number.value.substr(0,1) == 7) || (Form.Phone_Number.value.substr(0,1) == 8) || (Form.Phone_Number.value.substr(0,1) == 9))
			{
				alert("Please check the Phone number");
				Form.Phone_Number.focus();
				Form.Phone_Number.select();
				return false;
			}
			if((Form.Phone_Number.value.substr(0,1) ==2) || (Form.Phone_Number.value.substr(0,1) ==3) || (Form.Phone_Number.value.substr(0,1) ==4) || (Form.Phone_Number.value.substr(0,1) == 5))
			{
				if((Form.Phone_Number.value.length < 6) || (Form.Phone_Number.value.length > 8))
				{
				alert("Please check the Phone number");
				Form.Phone_Number.focus();
				Form.Phone_Number.select();
				return false;
				}			
			}	
		}
		if(Form.Phone_Number.value == "")
		{
			if(space.test(Form.Mobile.value))
			{
				alert("Please enter your Mobile Number.");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
			}
			if(!num1.test(Form.Mobile.value))
			{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
			}
			if(Form.Mobile.value.length > 10)
			{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
			}
			if((Form.Mobile.value.substr(0,1) !=9))
			{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
			}
			if((Form.Mobile.value.substr(0,1) ==9))
			{
				if(!(Form.Mobile.value.length ==10))
				{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
				}
			}
		}
	
		if(!space.test(Form.Mobile.value))
		{
			if(!num1.test(Form.Mobile.value))
			{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
			}
			if(Form.Mobile.value.length > 10)
			{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
			}
			if((Form.Mobile.value.substr(0,1) !=9))
			{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
			}
			if((Form.Mobile.value.substr(0,1) ==9))
			{
				if(!(Form.Mobile.value.length ==10))
				{
				alert("Please check the Mobile Number");
				Form.Mobile.focus();
				Form.Mobile.select();
				return false;
				}
			}
		}
	
		if(space.test(Form.Email_Id.value))
		{
			alert("Please enter your Email ID");
			Form.Email_Id.focus();
			Form.Email_Id.select();
			return false;
		}
		if(!email.test(Form.Email_Id.value))
		{
			alert("Please enter valid Email ID");
			Form.Email_Id.focus();
			Form.Email_Id.select();
			return false;
		}

		if(Form.sltPersons.selectedIndex == 0)
		{
			alert("Please select number of persons you would like to insure.");
			Form.sltPersons.focus();
			return false;
		} 
		else
		{
			var persons = Form.sltPersons.options[Form.sltPersons.selectedIndex].value;
		}
		if(persons == "1")
		{
				if(Form.sltInsure1.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure1.focus();
					return false;
				}
				if(space.test(Form.txtNameHealth1.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth1.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth1.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth1.focus();
					Form.txtNameHealth1.select();
					return false;
				}
				if(Form.sltGender1.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender1.focus();
					return false;
				}
				if(space.test(Form.healthDD1.value))
				{
					alert("Please enter the Date of birth of the person to be insured");
					Form.healthDD1.focus();
					return false;
				}
				if(space.test(Form.healthMM1.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					return false;
				}
				if(space.test(Form.healthYYYY1.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					return false;
				}
				if(Form.healthDD1.value == "DD")
				{
					alert("Please enter the Date of birth of the person to be insured");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if(Form.healthMM1.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(isNaN(Form.healthDD1.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if((document.form1.healthDD1.value == "0") || (document.form1.healthDD1.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();
					return false;
				}
				if(isNaN(Form.healthMM1.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if((document.form1.healthMM1.value == "0") || (document.form1.healthMM1.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();
					return false;
				}
				if(isNaN(Form.healthYYYY1.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}

				var datedd = Form.healthDD1.value;
				var datemm = Form.healthMM1.value;
				var dateyy = Form.healthYYYY1.value;
				
				var finaldob = datedd+"/"+datemm+"/"+dateyy;
			//	alert(finaldob);
					
					var curdt1 = new Date();
					var yrt1   = curdt1.getFullYear();
					var mnth1   = curdt1.getMonth()+1;
				
				if(datedd > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();return false;
				}
				if((dateyy == yrt1) && (datemm > mnth1))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();return false;
				}
				else if(datemm > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();return false;
				}
				if(dateyy > yrt1)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();return false;
				}

				else
				{
					
						curDate = new Date();
						curDay = curDate.getDate();
						curMonth = curDate.getMonth()+1;
						curYear = curDate.getFullYear();

					MaxAge = 60;

					strDate = Form.healthDD1.value;
					strMonth = Form.healthMM1.value;
					strYear = parseInt(Form.healthYYYY1.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;

				//	alert(yearcal);
				
						run(datedd,datemm,dateyy);
						tota = custage;
						totdays = mindays;
						//alert(tota+" "+totdays);

					if(tota > 60)
					{
						if ((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
					
						}
						//	Form.healthYYYY1.focus();
						//	Form.healthYYYY1.select();

						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						return false;
					}
					
				//	alert(curMonth-strMonth);
				//	alert((curYear==strYear)&&((curMonth-strMonth) < 3)&&(strDate>1));
					
				run(datedd,datemm,dateyy);
				totage = custage;
				totdays = mindays;
			
						
		
				if((Form.sltInsure1.selectedIndex == 3) || (Form.sltInsure1.selectedIndex == 4) || (Form.sltInsure1.selectedIndex == 9) || (Form.sltInsure1.selectedIndex == 10) || (Form.sltInsure1.selectedIndex == 15) || (Form.sltInsure1.selectedIndex == 16) || (Form.sltInsure1.selectedIndex == 19) || (Form.sltInsure1.selectedIndex == 20))
				{
					if(totdays < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;	
					}
				}
				else if((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 5) || (Form.sltInsure1.selectedIndex == 6) || (Form.sltInsure1.selectedIndex == 7) || (Form.sltInsure1.selectedIndex == 8) || (Form.sltInsure1.selectedIndex == 11) || (Form.sltInsure1.selectedIndex == 12) || (Form.sltInsure1.selectedIndex == 13) || (Form.sltInsure1.selectedIndex == 14) || (Form.sltInsure1.selectedIndex == 17) || (Form.sltInsure1.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;				
					}
				}
				else
				{
					enable_91days();
				}
				
				}
				
				if((Form.ct1[0].checked == false) && (Form.ct1[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");	
					Form.ct1[0].focus();
					return false;
				}
				if(Form.ct1[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt1.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt1.focus();
					return false;
				}

			//	alert(age);
			//	alert(totdays);
				/*if(Form.txtflag.value == "0")
				{
					alert("Please click on the link 'Declaration / Disclaimer. Read it completely and give us your acceptance to proceed.");
					return false;
				}*/
				if((Form.ch1[0].checked == false) && (Form.ch1[1].checked == false))
				{
					alert("Please confirm your acceptance of the Declaration / Disclaimer!");
					Form.ch1[0].focus();
					return false;
				}
                if(Form.ch1[1].checked == false)
				{
				if(Form.ch2.checked == false)
				{
					answer2 = confirm ("Since you have not chosen the automatic renewal option, you would have to renew it manually every year!")
					if (answer2)
					{
						document.form1.ch2.value="Yes";
						Form.form_id.value="Citihealthfrm";			
						Form.Name1.value="HEALTHINSURAN";
						//Form.action="/portal/citiin/forms/citiinmirror_health.jsp";
						//Form.submit();
					}
					else
					{
						return false;
					}
				}
				
		}
		else
				{
					return false;
				}
				if(Form.ch3.checked == false)
					{
						alert("Please click on the check box to confirm your acceptance of the product's features, T&C and exclusions!");
						Form.ch3.focus();
						return false;
					}
				//Form.action="https://www.portalsit.citibank.co.in/portal/citiin/forms/citiinmirror_health.jsp";
				//Form.submit();

		}else if(persons == "2")
		{
				if(Form.sltInsure1.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure1.focus();
					return false;
				}
				if(space.test(Form.txtNameHealth1.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth1.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth1.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth1.focus();
					Form.txtNameHealth1.select();
					return false;
				}
				if(Form.sltGender1.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender1.focus();
					return false;
				}
				if(space.test(Form.healthDD1.value))
				{
					alert("Please enter date of birth of the person to be insured of the person to be insured of birth of the person to be insured of the person to be insured");
					Form.healthDD1.focus();
					return false;
				}
				if(space.test(Form.healthMM1.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					return false;
				}
				if(space.test(Form.healthYYYY1.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					return false;
				}
				if(Form.healthDD1.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured of the person to be insured");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if(Form.healthMM1.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(isNaN(Form.healthDD1.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if((document.form1.healthDD1.value == "0") || (document.form1.healthDD1.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();
					return false;
				}
				if(isNaN(Form.healthMM1.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if((document.form1.healthMM1.value == "0") || (document.form1.healthMM1.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();
					return false;
				}
				if(isNaN(Form.healthYYYY1.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}

				var datedd = Form.healthDD1.value;
				var datemm = Form.healthMM1.value;
				var dateyy = Form.healthYYYY1.value;
				
				var finaldob = datedd+"/"+datemm+"/"+dateyy;
			//	alert(finaldob);

					var curdt1 = new Date();
					var yrt1   = curdt1.getFullYear();
					var mnth1   = curdt1.getMonth()+1;

				if(datedd > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();return false;
				}
				if((dateyy == yrt1) && (datemm > mnth1))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();return false;
				}
				else if(datemm > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();return false;
				}
				if(dateyy > yrt1)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();return false;
				}
				else
				{
				
						curDate = new Date();
						curDay  = curDate.getDate();
						curMonth = curDate.getMonth()+1;
						curYear = curDate.getFullYear();
			
					MaxAge = 60;

					strDate = Form.healthDD1.value;
					strMonth = Form.healthMM1.value;
					strYear = parseInt(Form.healthYYYY1.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;

					run(datedd,datemm,dateyy);
					totage = custage;

					if(totage > 60)
					{
						if ((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY1.focus();
						//	Form.healthYYYY1.select();

						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						return false;
					}

					//	alert(finaldob);
				run(datedd,datemm,dateyy);
				totage = custage;
				totdays = mindays;
					
				if((Form.sltInsure1.selectedIndex == 3) || (Form.sltInsure1.selectedIndex == 4) || (Form.sltInsure1.selectedIndex == 9) || (Form.sltInsure1.selectedIndex == 10) || (Form.sltInsure1.selectedIndex == 15) || (Form.sltInsure1.selectedIndex == 16) || (Form.sltInsure1.selectedIndex == 19) || (Form.sltInsure1.selectedIndex == 20))
				{
					if(totdays < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;	
					}
				}
				else if((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 5) || (Form.sltInsure1.selectedIndex == 6) || (Form.sltInsure1.selectedIndex == 7) || (Form.sltInsure1.selectedIndex == 8) || (Form.sltInsure1.selectedIndex == 11) || (Form.sltInsure1.selectedIndex == 12) || (Form.sltInsure1.selectedIndex == 13) || (Form.sltInsure1.selectedIndex == 14) || (Form.sltInsure1.selectedIndex == 17) || (Form.sltInsure1.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;				
					}
				}
				else
				{
					enable_91days();
				}
				}
				
				if((Form.ct1[0].checked == false) && (Form.ct1[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");
					Form.ct1[0].focus();
					return false;
				}
				if(Form.ct1[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt1.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt1.focus();
					return false;
				}

		
				if(Form.sltInsure2.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure2.focus();
					return false;
				}
	
				if(space.test(Form.txtNameHealth2.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth2.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth2.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth2.focus();
					Form.txtNameHealth2.select();
					return false;
				}
				if(Form.sltGender2.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender2.focus();
					return false;
				}
				if(space.test(Form.healthDD2.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					return false;
				}
				if(space.test(Form.healthMM2.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					return false;
				}
				if(space.test(Form.healthYYYY2.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					return false;
				}
				if(Form.healthDD2.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if(Form.healthMM2.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if(Form.healthYYYY2.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}
				if(isNaN(Form.healthDD2.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if((document.form1.healthDD2.value == "0") || (document.form1.healthDD2.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD2.focus();
					document.form1.healthDD2.select();
					return false;
				}
				if(isNaN(Form.healthMM2.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if((document.form1.healthMM2.value == "0") || (document.form1.healthMM2.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();
					return false;
				}
				if(isNaN(Form.healthYYYY2.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}

				var datedd2 = Form.healthDD2.value;
				var datemm2 = Form.healthMM2.value;
				var dateyy2 = Form.healthYYYY2.value;
				
				var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);

					var curdt2 = new Date();
					var yrt2   = curdt2.getFullYear();
					var mnth2   = curdt2.getMonth()+1;

				if(datedd2 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();return false;
				}
				if((dateyy2 == yrt2) && (datemm2 > mnth2))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();return false;
				}
				else if(datemm2 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();return false;
				}
				if(dateyy2 > yrt2)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();return false;
				}
				else
				{
						curDate = new Date();
						curDay  = curDate.getDate();
						curMonth = curDate.getMonth()+1;
						curYear = curDate.getFullYear();

					MaxAge = 60;

					strDate = Form.healthDD2.value;
					strMonth = Form.healthMM2.value;
					strYear = parseInt(Form.healthYYYY2.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd2,datemm2,dateyy2);
					tota2 = custage;
				
					if(tota2 > 60)
					{
						if ((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//Form.healthYYYY2.focus();
						//	Form.healthYYYY2.select();
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						return false;
					}

				run(datedd2,datemm2,dateyy2);
				totage = custage;
				totdays2 = mindays;
				
				if((Form.sltInsure2.selectedIndex == 3) || (Form.sltInsure2.selectedIndex == 4) || (Form.sltInsure2.selectedIndex == 9) || (Form.sltInsure2.selectedIndex == 10) || (Form.sltInsure2.selectedIndex == 15) || (Form.sltInsure2.selectedIndex == 16) || (Form.sltInsure2.selectedIndex == 19) || (Form.sltInsure2.selectedIndex == 20))
				{
					if(totdays2 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;	
					}
				}
				else if((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 5) || (Form.sltInsure2.selectedIndex == 6) || (Form.sltInsure2.selectedIndex == 7) || (Form.sltInsure2.selectedIndex == 8) || (Form.sltInsure2.selectedIndex == 11) || (Form.sltInsure2.selectedIndex == 12) || (Form.sltInsure2.selectedIndex == 13) || (Form.sltInsure2.selectedIndex == 14) || (Form.sltInsure2.selectedIndex == 17) || (Form.sltInsure2.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;				
					}
				}
				else
				{
					enable2();
				}
			}
				
				if((Form.ct2[0].checked == false) && (Form.ct2[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");
					Form.ct2[0].focus();
					return false;
				}
				if(Form.ct2[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt2.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt2.focus();
					return false;
				} 	
				
				/*if(Form.txtflag.value == "0")
				{
					alert("Please click on the link 'Declaration / Disclaimer. Read it completely and give us your acceptance to proceed.");
					return false;
				}*/
				if((Form.ch1[0].checked == false) && (Form.ch1[1].checked == false))
				{
					alert("Please confirm your acceptance of the Declaration / Disclaimer!");
					Form.ch1[0].focus();
					return false;
				}
				if(Form.ch1[1].checked == false)
				{
				if(Form.ch2.checked == false)
				{
					answer2 = confirm ("Since you have not chosen the automatic renewal option, you would have to renew it manually every year!")
					if (answer2)
					{
						document.form1.ch2.value="Yes";
						Form.form_id.value="Citihealthfrm";			
						Form.Name1.value="HEALTHINSURAN";
						//Form.action="citiinmirror_health.jsp";
						//Form.submit();
					}
					else
					{
						return false;
					}
				}

		}
		else
				{
					return false;
				}
                if(Form.ch3.checked == false)
					{
						alert("Please click on the check box to confirm your acceptance of the product's features, T&C and exclusions!");
						Form.ch3.focus();
						return false;
					}
				//Form.action="https://www.portalsit.citibank.co.in/portal/citiin/forms/citiinmirror_health.jsp";
				//Form.submit();

		}else if(persons == "3")
		{
				if(Form.sltInsure1.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure1.focus();
					return false;
				}
				
				if(space.test(Form.txtNameHealth1.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth1.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth1.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth1.focus();
					Form.txtNameHealth1.select();
					return false;
				}
				if(Form.sltGender1.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender1.focus();
					return false;
				}
				if(space.test(Form.healthDD1.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD1.focus();
					return false;
				}
				if(space.test(Form.healthMM1.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					return false;
				}
				if(space.test(Form.healthYYYY1.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					return false;
				}
				if(Form.healthDD1.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if(Form.healthMM1.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(isNaN(Form.healthDD1.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if((document.form1.healthDD1.value == "0") || (document.form1.healthDD1.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();
					return false;
				}
				if(isNaN(Form.healthMM1.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if((document.form1.healthMM1.value == "0") || (document.form1.healthMM1.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();
					return false;
				}
				if(isNaN(Form.healthYYYY1.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}

				var datedd = Form.healthDD1.value;
				var datemm = Form.healthMM1.value;
				var dateyy = Form.healthYYYY1.value;
				
				var finaldob = datedd+"/"+datemm+"/"+dateyy;
			//	alert(finaldob); 
				var curdt1 = new Date();
				var yrt1   = curdt1.getFullYear();
				var mnth1   = curdt1.getMonth()+1;

				if(datedd > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();return false;
				}
				if((dateyy == yrt1) && (datemm > mnth1))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();return false;
				}
				else if(datemm > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();return false;
				}
				if(dateyy > yrt1)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
			
					MaxAge = 60;

					strDate = Form.healthDD1.value;
					strMonth = Form.healthMM1.value;
					strYear = parseInt(Form.healthYYYY1.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;

					run(datedd,datemm,dateyy);
					tota1 = custage;

					if(tota1 > 60)
					{
						if ((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY1.focus();
						//	Form.healthYYYY1.select();
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
							return false;
					}

				run(datedd,datemm,dateyy);
				totage = custage;
				totdays = mindays;
				
				if((Form.sltInsure1.selectedIndex == 3) || (Form.sltInsure1.selectedIndex == 4) || (Form.sltInsure1.selectedIndex == 9) || (Form.sltInsure1.selectedIndex == 10) || (Form.sltInsure1.selectedIndex == 15) || (Form.sltInsure1.selectedIndex == 16) || (Form.sltInsure1.selectedIndex == 19) || (Form.sltInsure1.selectedIndex == 20))
				{
					if(totdays < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;	
					}
				}
				else if((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 5) || (Form.sltInsure1.selectedIndex == 6) || (Form.sltInsure1.selectedIndex == 7) || (Form.sltInsure1.selectedIndex == 8) || (Form.sltInsure1.selectedIndex == 11) || (Form.sltInsure1.selectedIndex == 12) || (Form.sltInsure1.selectedIndex == 13) || (Form.sltInsure1.selectedIndex == 14) || (Form.sltInsure1.selectedIndex == 17) || (Form.sltInsure1.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;				
					}
				}
				else
				{
					enable_91days();
				}
				}
				
				if((Form.ct1[0].checked == false) && (Form.ct1[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct1[0].focus();
					return false;
				}
				if(Form.ct1[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt1.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt1.focus();
					return false;
				}

				if(Form.sltInsure2.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure2.focus();
					return false;
				}
			
				if(space.test(Form.txtNameHealth2.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth2.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth2.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth2.focus();
					Form.txtNameHealth2.select();
					return false;
				}
				if(Form.sltGender2.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender2.focus();
					return false;
				}
				if(space.test(Form.healthDD2.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					return false;
				}
				if(space.test(Form.healthMM2.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					return false;
				}
				if(space.test(Form.healthYYYY2.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					return false;
				}
				if(Form.healthDD2.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if(Form.healthMM2.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if(Form.healthYYYY2.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}
				if(Form.healthYYYY2.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}
				if(isNaN(Form.healthDD2.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if((document.form1.healthDD2.value == "0") || (document.form1.healthDD2.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD2.focus();
					document.form1.healthDD2.select();
					return false;
				}
				if(isNaN(Form.healthMM2.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if((document.form1.healthMM2.value == "0") || (document.form1.healthMM2.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();
					return false;
				}
				if(isNaN(Form.healthYYYY2.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}

				var datedd2 = Form.healthDD2.value;
				var datemm2 = Form.healthMM2.value;
				var dateyy2 = Form.healthYYYY2.value;
				
				var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);

				var curdt2 = new Date();
				var yrt2   = curdt2.getFullYear();
				var mnth2   = curdt2.getMonth()+1;

				if(datedd2 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();return false;
				}
				if((dateyy2 == yrt2) && (datemm2 > mnth2))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();return false;
				}
				else if(datemm2 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();return false;
				}
				if(dateyy2 > yrt2)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD2.value;
					strMonth = Form.healthMM2.value;
					strYear = parseInt(Form.healthYYYY2.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd2,datemm2,dateyy2);
					tota2 = custage;

					if(tota2 > 60)
					{
						if ((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY2.focus();
						//	Form.healthYYYY2.select();
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						return false;
					}

				run(datedd2,datemm2,dateyy2);
				totage = custage;
				totdays2 = mindays;

				if((Form.sltInsure2.selectedIndex == 3) || (Form.sltInsure2.selectedIndex == 4) || (Form.sltInsure2.selectedIndex == 9) || (Form.sltInsure2.selectedIndex == 10) || (Form.sltInsure2.selectedIndex == 15) || (Form.sltInsure2.selectedIndex == 16) || (Form.sltInsure2.selectedIndex == 19) || (Form.sltInsure2.selectedIndex == 20))
				{
					if(totdays2 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;	
					}
				}
				else if((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 5) || (Form.sltInsure2.selectedIndex == 6) || (Form.sltInsure2.selectedIndex == 7) || (Form.sltInsure2.selectedIndex == 8) || (Form.sltInsure2.selectedIndex == 11) || (Form.sltInsure2.selectedIndex == 12) || (Form.sltInsure2.selectedIndex == 13) || (Form.sltInsure2.selectedIndex == 14) || (Form.sltInsure2.selectedIndex == 17) || (Form.sltInsure2.selectedIndex == 18))
				{
					if(totdays2 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;				
					}
				}
				else
				{
					enable2();
				}

				}
				
				if((Form.ct2[0].checked == false) && (Form.ct2[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct2[0].focus();
					return false;
				}
				if(Form.ct2[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt2.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt2.focus();
					return false;
				}

				if(Form.sltInsure3.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure3.focus();
					return false;
				}
				
				if(space.test(Form.txtNameHealth3.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth3.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth3.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth3.focus();
					Form.txtNameHealth3.select();
					return false;
				}
				if(Form.sltGender3.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender3.focus();
					return false;
				}
				if(space.test(Form.healthDD3.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD3.focus();
					return false;
				}
				if(space.test(Form.healthMM3.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM3.focus();
					return false;
				}
				if(space.test(Form.healthYYYY3.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					return false;
				}
				if(Form.healthDD3.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD3.focus();
					Form.healthDD3.select();
					return false;
				}
				if(Form.healthMM3.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM3.focus();
					Form.healthMM3.select();
					return false;
				}
				if(Form.healthYYYY3.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}
				if(Form.healthYYYY3.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}
				if(isNaN(Form.healthDD3.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD3.focus();
					Form.healthDD3.select();
					return false;
				}
				if((document.form1.healthDD3.value == "0") || (document.form1.healthDD3.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD3.focus();
					document.form1.healthDD3.select();
					return false;
				}
				if(isNaN(Form.healthMM3.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM3.focus();
					Form.healthMM3.select();
					return false;
				}
				if((document.form1.healthMM3.value == "0") || (document.form1.healthMM3.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();
					return false;
				}
				if(isNaN(Form.healthYYYY3.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}

				var datedd3 = Form.healthDD3.value;
				var datemm3 = Form.healthMM3.value;
				var dateyy3 = Form.healthYYYY3.value;
				
				var finaldob3 = datedd3+"/"+datemm3+"/"+dateyy3;
			//	alert(finaldob3);

				var curdt3 = new Date();
				var yrt3   = curdt3.getFullYear();

				if(datedd3 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD3.focus();
					Form.healthDD3.select();return false;
				}
				if((dateyy3 == yrt3) && (datemm3 > mnth3))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM3.focus();
					Form.healthMM3.select();return false;
				}
				else if(datemm3 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();return false;
				}
				if(dateyy3 > yrt3)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();

					MaxAge = 60;

					strDate = Form.healthDD3.value;
					strMonth = Form.healthMM3.value;
					strYear = parseInt(Form.healthYYYY3.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd3,datemm3,dateyy3);
					tota3 = custage;

					if(tota3 > 60)
					{
						if ((Form.sltInsure3.selectedIndex == 1) || (Form.sltInsure3.selectedIndex == 2) || (Form.sltInsure3.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY3.focus();
						//	Form.healthYYYY3.select();
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						return false;
					}

				run(datedd3,datemm3,dateyy3);
				totage = custage;
				totdays3 = mindays;
						
				if((Form.sltInsure3.selectedIndex == 3) || (Form.sltInsure3.selectedIndex == 4) || (Form.sltInsure3.selectedIndex == 9) || (Form.sltInsure3.selectedIndex == 10) || (Form.sltInsure3.selectedIndex == 15) || (Form.sltInsure3.selectedIndex == 16) || (Form.sltInsure3.selectedIndex == 19) || (Form.sltInsure3.selectedIndex == 20))
				{
					if(totdays3 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;	
					}
				}
				else if((Form.sltInsure3.selectedIndex == 1) || (Form.sltInsure3.selectedIndex == 2) || (Form.sltInsure3.selectedIndex == 5) || (Form.sltInsure3.selectedIndex == 6) || (Form.sltInsure3.selectedIndex == 7) || (Form.sltInsure3.selectedIndex == 8) || (Form.sltInsure3.selectedIndex == 11) || (Form.sltInsure3.selectedIndex == 12) || (Form.sltInsure3.selectedIndex == 13) || (Form.sltInsure3.selectedIndex == 14) || (Form.sltInsure3.selectedIndex == 17) || (Form.sltInsure3.selectedIndex == 18))
				{
					if(totdays3 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;				
					}
				}
				else
				{
					enable3();
				}

				}
				
				if((Form.ct3[0].checked == false) && (Form.ct3[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct3[0].focus();
					return false;
				}
				if(Form.ct3[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt3.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt3.focus();
					return false;
				}
				
				/*if(Form.txtflag.value == "0")
				{
					alert("Please click on the link 'Declaration / Disclaimer. Read it completely and give us your acceptance to proceed.");
					return false;
				} */
				if((Form.ch1[0].checked == false) && (Form.ch1[1].checked == false))
				{
					alert("Please confirm your acceptance of the Declaration / Disclaimer!");
					Form.ch1[0].focus();
					return false;
				}
			if(Form.ch1[1].checked == false)
				{
				if(Form.ch2.checked == false)
				{
					answer2 = confirm ("Since you have not chosen the automatic renewal option, you would have to renew it manually every year!")
					if (answer2)
					{
						document.form1.ch2.value="Yes";
						Form.form_id.value="Citihealthfrm";			
						Form.Name1.value="HEALTHINSURAN";
						//Form.action="/portal/citiin/forms/citiinmirror_health.jsp";
						//Form.submit();
					}
					else
					{
						return false;
					}
				}
			

		}
		else
				{
					return false;
				}
				if(Form.ch3.checked == false)
					{
						alert("Please click on the check box to confirm your acceptance of the product's features, T&C and exclusions!");
						Form.ch3.focus();
						return false;
					}
				//Form.action="https://www.portalsit.citibank.co.in/portal/citiin/forms/citiinmirror_health.jsp";
			//Form.submit();

		}else if(persons == "4")
		{
				if(Form.sltInsure1.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure1.focus();
					return false;
				}
				
				if(space.test(Form.txtNameHealth1.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth1.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth1.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth1.focus();
					Form.txtNameHealth1.select();
					return false;
				}
				if(Form.sltGender1.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender1.focus();
					return false;
				}
				if(space.test(Form.healthDD1.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD1.focus();
					return false;
				}
				if(space.test(Form.healthMM1.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					return false;
				}
				if(space.test(Form.healthYYYY1.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					return false;
				}
				if(Form.healthDD1.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if(Form.healthMM1.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(isNaN(Form.healthDD1.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if((document.form1.healthDD1.value == "0") || (document.form1.healthDD1.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();
					return false;
				}
				if(isNaN(Form.healthMM1.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if((document.form1.healthMM1.value == "0") || (document.form1.healthMM1.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();
					return false;
				}
				if(isNaN(Form.healthYYYY1.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}

				var datedd = Form.healthDD1.value;
				var datemm = Form.healthMM1.value;
				var dateyy = Form.healthYYYY1.value;
				
				var finaldob = datedd+"/"+datemm+"/"+dateyy;
			//	alert(finaldob);
				var curdt1 = new Date();
				var yrt1   = curdt1.getFullYear();
				var mnth1   = curdt1.getMonth()+1;

				if(datedd > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();return false;
				}
				if((dateyy == yrt1) && (datemm > mnth1))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();return false;
				}
				else if(datemm > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();return false;
				}
				if(dateyy > yrt1)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
			
					MaxAge = 60;

					strDate = Form.healthDD1.value;
					strMonth = Form.healthMM1.value;
					strYear = parseInt(Form.healthYYYY1.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd,datemm,dateyy);
					tota1 = custage;

					if(tota1 > 60)
					{
						if ((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY1.focus();
						//	Form.healthYYYY1.select();
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						return false;
					}

				run(datedd,datemm,dateyy);
				totage = custage;
				totdays = mindays;


					if((Form.sltInsure1.selectedIndex == 3) || (Form.sltInsure1.selectedIndex == 4) || (Form.sltInsure1.selectedIndex == 9) || (Form.sltInsure1.selectedIndex == 10) || (Form.sltInsure1.selectedIndex == 15) || (Form.sltInsure1.selectedIndex == 16) || (Form.sltInsure1.selectedIndex == 19) || (Form.sltInsure1.selectedIndex == 20))
				{
					if(totdays < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;	
					}
				}
				else if((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 5) || (Form.sltInsure1.selectedIndex == 6) || (Form.sltInsure1.selectedIndex == 7) || (Form.sltInsure1.selectedIndex == 8) || (Form.sltInsure1.selectedIndex == 11) || (Form.sltInsure1.selectedIndex == 12) || (Form.sltInsure1.selectedIndex == 13) || (Form.sltInsure1.selectedIndex == 14) || (Form.sltInsure1.selectedIndex == 17) || (Form.sltInsure1.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;				
					}
				}
				else
				{
					enable_91days();
				}

				}
				
				if((Form.ct1[0].checked == false) && (Form.ct1[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct1[0].focus();
					return false;
				}
				if(Form.ct1[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt1.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt1.focus();
					return false;
				}

				if(Form.sltInsure2.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure2.focus();
					return false;
				}
			
				if(space.test(Form.txtNameHealth2.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth2.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth2.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth2.focus();
					Form.txtNameHealth2.select();
					return false;
				}
				if(Form.sltGender2.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender2.focus();
					return false;
				}
				if(space.test(Form.healthDD2.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					return false;
				}
				if(space.test(Form.healthMM2.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					return false;
				}
				if(space.test(Form.healthYYYY2.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					return false;
				}
				if(Form.healthDD2.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if(Form.healthMM2.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if(Form.healthYYYY2.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}
				if(Form.healthYYYY2.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}
				if(isNaN(Form.healthDD2.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if((document.form1.healthDD2.value == "0") || (document.form1.healthDD2.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD2.focus();
					document.form1.healthDD2.select();
					return false;
				}
				if(isNaN(Form.healthMM2.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if((document.form1.healthMM2.value == "0") || (document.form1.healthMM2.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();
					return false;
				}
				if(isNaN(Form.healthYYYY2.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}

				var datedd2 = Form.healthDD2.value;
				var datemm2 = Form.healthMM2.value;
				var dateyy2 = Form.healthYYYY2.value;
				
				var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);

				var curdt2 = new Date();
				var yrt2   = curdt2.getFullYear();
				var mnth2   = curdt2.getMonth()+1;

				if(datedd2 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();return false;
				}
				if((dateyy2 == yrt2) && (datemm2 > mnth2))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();return false;
				}
				else if(datemm2 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();return false;
				}
				if(dateyy2 > yrt2)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD2.value;
					strMonth = Form.healthMM2.value;
					strYear = parseInt(Form.healthYYYY2.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd2,datemm2,dateyy2);
					tota2 = custage;

					if(tota2 > 60)
					{
						if ((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY2.focus();
						//	Form.healthYYYY2.select();
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
							return false;
					}

				run(datedd2,datemm2,dateyy2);
				totage = custage;
				totdays2 = mindays;

				
				if((Form.sltInsure2.selectedIndex == 3) || (Form.sltInsure2.selectedIndex == 4) || (Form.sltInsure2.selectedIndex == 9) || (Form.sltInsure2.selectedIndex == 10) || (Form.sltInsure2.selectedIndex == 15) || (Form.sltInsure2.selectedIndex == 16) || (Form.sltInsure2.selectedIndex == 19) || (Form.sltInsure2.selectedIndex == 20))
				{
					if(totdays2 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;	
					}
				}
				else if((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 5) || (Form.sltInsure2.selectedIndex == 6) || (Form.sltInsure2.selectedIndex == 7) || (Form.sltInsure2.selectedIndex == 8) || (Form.sltInsure2.selectedIndex == 11) || (Form.sltInsure2.selectedIndex == 12) || (Form.sltInsure2.selectedIndex == 13) || (Form.sltInsure2.selectedIndex == 14) || (Form.sltInsure2.selectedIndex == 17) || (Form.sltInsure2.selectedIndex == 18))
				{
					if(totdays2 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;				
					}
				}
				else 
				{
					enable2();
				}

				
				}
				

				if((Form.ct2[0].checked == false) && (Form.ct2[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct2[0].focus();
					return false;
				}
				if(Form.ct2[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt2.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt2.focus();
					return false;
				}

				if(Form.sltInsure3.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure3.focus();
					return false;
				}
			
				if(space.test(Form.txtNameHealth3.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth3.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth3.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth3.focus();
					Form.txtNameHealth3.select();
					return false;
				}
				if(Form.sltGender3.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender3.focus();
					return false;
				}
				if(space.test(Form.healthDD3.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD3.focus();
					return false;
				}
				if(space.test(Form.healthMM3.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM3.focus();
					return false;
				}
				if(space.test(Form.healthYYYY3.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					return false;
				}
				if(Form.healthDD3.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD3.focus();
					Form.healthDD3.select();
					return false;
				}
				if(Form.healthMM3.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM3.focus();
					Form.healthMM3.select();
					return false;
				}
				if(Form.healthYYYY3.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}
				if(Form.healthYYYY3.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}
				if(isNaN(Form.healthDD3.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD3.focus();
					Form.healthDD3.select();
					return false;
				}
				if((document.form1.healthDD3.value == "0") || (document.form1.healthDD3.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD3.focus();
					document.form1.healthDD3.select();
					return false;
				}
				if(isNaN(Form.healthMM3.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM3.focus();
					Form.healthMM3.select();
					return false;
				}
				if((document.form1.healthMM3.value == "0") || (document.form1.healthMM3.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();
					return false;
				}
				if(isNaN(Form.healthYYYY3.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}

				var datedd3 = Form.healthDD3.value;
				var datemm3 = Form.healthMM3.value;
				var dateyy3 = Form.healthYYYY3.value;
				
				var finaldob3 = datedd3+"/"+datemm3+"/"+dateyy3;
			//	alert(finaldob3);

				var curdt3 = new Date();
				var yrt3   = curdt3.getFullYear();
				var mnth3   = curdt3.getMonth()+1;

				if(datedd3 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD3.focus();
					Form.healthDD3.select();return false;
				}
				if((dateyy3 == yrt3) && (datemm3 > mnth3))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM3.focus();
					Form.healthMM3.select();return false;
				}
				else if(datemm3 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();return false;
				}
				if(dateyy3 > yrt3)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD3.value;
					strMonth = Form.healthMM3.value;
					strYear = parseInt(Form.healthYYYY3.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd3,datemm3,dateyy3);
					tota3 = custage;

					if(tota3 > 60)
					{
						if ((Form.sltInsure3.selectedIndex == 1) || (Form.sltInsure3.selectedIndex == 2) || (Form.sltInsure3.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY3.focus();
						//	Form.healthYYYY3.select();
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
							return false;
					}

				run(datedd3,datemm3,dateyy3);
				totage = custage;
				totdays3 = mindays;
						
						
				if((Form.sltInsure3.selectedIndex == 3) || (Form.sltInsure3.selectedIndex == 4) || (Form.sltInsure3.selectedIndex == 9) || (Form.sltInsure3.selectedIndex == 10) || (Form.sltInsure3.selectedIndex == 15) || (Form.sltInsure3.selectedIndex == 16) || (Form.sltInsure3.selectedIndex == 19) || (Form.sltInsure3.selectedIndex == 20))
				{
					if(totdays3 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;	
					}
				}
				else if((Form.sltInsure3.selectedIndex == 1) || (Form.sltInsure3.selectedIndex == 2) || (Form.sltInsure3.selectedIndex == 5) || (Form.sltInsure3.selectedIndex == 6) || (Form.sltInsure3.selectedIndex == 7) || (Form.sltInsure3.selectedIndex == 8) || (Form.sltInsure3.selectedIndex == 11) || (Form.sltInsure3.selectedIndex == 12) || (Form.sltInsure3.selectedIndex == 13) || (Form.sltInsure3.selectedIndex == 14) || (Form.sltInsure3.selectedIndex == 17) || (Form.sltInsure3.selectedIndex == 18))
				{
					if(totdays3 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;				
					}
				}
				else
				{
					enable3();
				}
				}
				

				if((Form.ct3[0].checked == false) && (Form.ct3[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct3[0].focus();
					return false;
				}
				if(Form.ct3[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt3.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt3.focus();
					return false;
				}

				if(Form.sltInsure4.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure4.focus();
					return false;
				}
				
				if(space.test(Form.txtNameHealth4.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth4.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth4.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth4.focus();
					Form.txtNameHealth4.select();
					return false;
				}
				if(Form.sltGender4.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender4.focus();
					return false;
				}
				if(space.test(Form.healthDD4.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD4.focus();
					return false;
				}
				if(space.test(Form.healthMM4.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM4.focus();
					return false;
				}
				if(space.test(Form.healthYYYY4.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY4.focus();
					return false;
				}

				if(Form.healthDD4.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD4.focus();
					Form.healthDD4.select();
					return false;
				}
				if(Form.healthMM4.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM4.focus();
					Form.healthMM4.select();
					return false;
				}
				if(Form.healthYYYY4.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();
					return false;
				}
				if(Form.healthYYYY4.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();
					return false;
				}
				if(isNaN(Form.healthDD4.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD4.focus();
					Form.healthDD4.select();
					return false;
				}
				if((document.form1.healthDD4.value == "0") || (document.form1.healthDD4.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD4.focus();
					document.form1.healthDD4.select();
					return false;
				}
				if(isNaN(Form.healthMM4.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM4.focus();
					Form.healthMM4.select();
					return false;
				}
				if((document.form1.healthMM4.value == "0") || (document.form1.healthMM4.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();
					return false;
				}
				if(isNaN(Form.healthYYYY4.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();
					return false;
				}

				var datedd4 = Form.healthDD4.value;
				var datemm4 = Form.healthMM4.value;
				var dateyy4 = Form.healthYYYY4.value;
				
				var finaldob4 = datedd4+"/"+datemm4+"/"+dateyy4;
			//	alert(finaldob4);
				var curdt4 = new Date();
				var yrt4   = curdt4.getFullYear();
				var mnth4   = curdt4.getMonth()+1;

				if(datedd4 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD4.focus();
					Form.healthDD4.select();return false;
				}
				if((dateyy4 == yrt4) && (datemm4 > mnth4))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM4.focus();
					Form.healthMM4.select();return false;
				}
				else if(datemm4 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();return false;
				}
				if(dateyy4 > yrt4)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();
					disable4();
					return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD4.value;
					strMonth = Form.healthMM4.value;
					strYear = parseInt(Form.healthYYYY4.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd4,datemm4,dateyy4);
					tota4 = custage;

					if(tota4 > 60)
					{
						if ((Form.sltInsure4.selectedIndex == 1) || (Form.sltInsure4.selectedIndex == 2) || (Form.sltInsure4.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY4.focus();
						//	Form.healthYYYY4.select();
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
							return false;
					}

				run(datedd4,datemm4,dateyy4);
				totage = custage;
				totdays4 = mindays;
						
				if((Form.sltInsure4.selectedIndex == 3) || (Form.sltInsure4.selectedIndex == 4) || (Form.sltInsure4.selectedIndex == 9) || (Form.sltInsure4.selectedIndex == 10) || (Form.sltInsure4.selectedIndex == 15) || (Form.sltInsure4.selectedIndex == 16) || (Form.sltInsure4.selectedIndex == 19) || (Form.sltInsure4.selectedIndex == 20))
				{
					if(totdays4 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
						disable4();
						return false;	
					}
				}
				else if((Form.sltInsure4.selectedIndex == 1) || (Form.sltInsure4.selectedIndex == 2) || (Form.sltInsure4.selectedIndex == 5) || (Form.sltInsure4.selectedIndex == 6) || (Form.sltInsure4.selectedIndex == 7) || (Form.sltInsure4.selectedIndex == 8) || (Form.sltInsure4.selectedIndex == 11) || (Form.sltInsure4.selectedIndex == 12) || (Form.sltInsure4.selectedIndex == 13) || (Form.sltInsure4.selectedIndex == 14) || (Form.sltInsure4.selectedIndex == 17) || (Form.sltInsure4.selectedIndex == 18))
				{
					if(totdays4 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
						disable4();
						return false;				
					}
				}
				else
				{
					enable4();
				}
				}
				
				if((Form.ct4[0].checked == false) && (Form.ct4[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct4[0].focus();
					return false;
				}
				if(Form.ct4[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt4.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt4.focus();
					return false;
				}
				/*if(Form.txtflag.value == "0")
				{
					alert("Please click on the link 'Declaration / Disclaimer. Read it completely and give us your acceptance to proceed.");
					return false;
				} */
				if((Form.ch1[0].checked == false) && (Form.ch1[1].checked == false))
				{
					alert("Please confirm your acceptance of the Declaration / Disclaimer!");
					Form.ch1[0].focus();
					return false;
				}
				if(Form.ch1[1].checked == false)
				{
				if(Form.ch2.checked == false)
				{
					answer2 = confirm ("Since you have not chosen the automatic renewal option, you would have to renew it manually every year!")
					if (answer2)
					{
						document.form1.ch2.value="Yes";
						Form.form_id.value="Citihealthfrm";			
						Form.Name1.value="HEALTHINSURAN";
						//Form.action="/portal/citiin/forms/citiinmirror_health.jsp";
						//Form.submit();
					}
					else
					{
						return false;
					}
				}

		}
		else
				{
					return false;
				}
				if(Form.ch3.checked == false)
					{
						alert("Please click on the check box to confirm your acceptance of the product's features, T&C and exclusions!");
						Form.ch3.focus();
						return false;
					}
				//Form.action="https://www.portalsit.citibank.co.in/portal/citiin/forms/citiinmirror_health.jsp";
				//Form.submit();

		}else if(persons == "5")
		{
				if(Form.sltInsure1.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure1.focus();
					return false;
				}
				if(space.test(Form.txtNameHealth1.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth1.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth1.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth1.focus();
					Form.txtNameHealth1.select();
					return false;
				}
				if(Form.sltGender1.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender1.focus();
					return false;
				}
				if(space.test(Form.healthDD1.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD1.focus();
					return false;
				}
				if(space.test(Form.healthMM1.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					return false;
				}
				if(space.test(Form.healthYYYY1.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					return false;
				}
				if(Form.healthDD1.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if(Form.healthMM1.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(Form.healthYYYY1.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}
				if(isNaN(Form.healthDD1.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();
					return false;
				}
				if((document.form1.healthDD1.value == "0") || (document.form1.healthDD1.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD1.focus();
					document.form1.healthDD1.select();
					return false;
				}
				if(isNaN(Form.healthMM1.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();
					return false;
				}
				if((document.form1.healthMM1.value == "0") || (document.form1.healthMM1.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();
					return false;
				}
				if(isNaN(Form.healthYYYY1.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();
					return false;
				}

				var datedd = Form.healthDD1.value;
				var datemm = Form.healthMM1.value;
				var dateyy = Form.healthYYYY1.value;
				
				var finaldob = datedd+"/"+datemm+"/"+dateyy;
			//	alert(finaldob);
				
				var curdt1 = new Date();
				var yrt1   = curdt1.getFullYear();
				var mnth1   = curdt1.getMonth()+1;

				if(datedd > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD1.focus();
					Form.healthDD1.select();return false;
				}
				if((dateyy == yrt1) && (datemm > mnth1))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM1.focus();
					Form.healthMM1.select();return false;
				}
				else if(datemm > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM1.focus();
					document.form1.healthMM1.select();return false;
				}
				if(dateyy > yrt1)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY1.focus();
					Form.healthYYYY1.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD1.value;
					strMonth = Form.healthMM1.value;
					strYear = parseInt(Form.healthYYYY1.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd,datemm,dateyy);
					totage1 = custage;
					
					if(totage1 > 60)
					{
						if ((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY1.focus();
						//	Form.healthYYYY1.select();
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
							return false;
					}

				run(datedd,datemm,dateyy);
				totage = custage;
				totdays = mindays;

				if((Form.sltInsure1.selectedIndex == 3) || (Form.sltInsure1.selectedIndex == 4) || (Form.sltInsure1.selectedIndex == 9) || (Form.sltInsure1.selectedIndex == 10) || (Form.sltInsure1.selectedIndex == 15) || (Form.sltInsure1.selectedIndex == 16) || (Form.sltInsure1.selectedIndex == 19) || (Form.sltInsure1.selectedIndex == 20))
				{
					if(totdays < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;	
					}
				}
				else if((Form.sltInsure1.selectedIndex == 1) || (Form.sltInsure1.selectedIndex == 2) || (Form.sltInsure1.selectedIndex == 5) || (Form.sltInsure1.selectedIndex == 6) || (Form.sltInsure1.selectedIndex == 7) || (Form.sltInsure1.selectedIndex == 8) || (Form.sltInsure1.selectedIndex == 11) || (Form.sltInsure1.selectedIndex == 12) || (Form.sltInsure1.selectedIndex == 13) || (Form.sltInsure1.selectedIndex == 14) || (Form.sltInsure1.selectedIndex == 17) || (Form.sltInsure1.selectedIndex == 18))
				{
					if(totdays < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY1.value = "YYYY";
						document.form1.healthMM1.value = "MM";
						document.form1.healthDD1.value = "DD";
						document.form1.healthDD1.focus();
						document.form1.healthDD1.select();
						disable_91days();
						return false;				
					}
				}
				else 
				{
					enable_91days();
				}
				}
				
				if((Form.ct1[0].checked == false) && (Form.ct1[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct1[0].focus();
					return false;
				}
				if(Form.ct1[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt1.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt1.focus();
					return false;
				}

				if(Form.sltInsure2.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure2.focus();
					return false;
				}
				
				if(space.test(Form.txtNameHealth2.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth2.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth2.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth2.focus();
					Form.txtNameHealth2.select();
					return false;
				}
				if(Form.sltGender2.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender2.focus();
					return false;
				}
				if(space.test(Form.healthDD2.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					return false;
				}
				if(space.test(Form.healthMM2.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					return false;
				}
				if(space.test(Form.healthYYYY2.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					return false;
				}
				if(Form.healthDD2.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if(Form.healthMM2.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if(Form.healthYYYY2.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}
				if(Form.healthYYYY2.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}
				if(isNaN(Form.healthDD2.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();
					return false;
				}
				if((document.form1.healthDD2.value == "0") || (document.form1.healthDD2.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD2.focus();
					document.form1.healthDD2.select();
					return false;
				}
				if(isNaN(Form.healthMM2.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();
					return false;
				}
				if((document.form1.healthMM2.value == "0") || (document.form1.healthMM2.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();
					return false;
				}
				if(isNaN(Form.healthYYYY2.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();
					return false;
				}

				var datedd2 = Form.healthDD2.value;
				var datemm2 = Form.healthMM2.value;
				var dateyy2 = Form.healthYYYY2.value;
				
				var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);
				var curdt2 = new Date();
				var yrt2   = curdt2.getFullYear();
				var mnth2   = curdt2.getMonth()+1;


				if(datedd2 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD2.focus();
					Form.healthDD2.select();return false;
				}
				if((dateyy2 == yrt2) && (datemm2 > mnth2))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM2.focus();
					Form.healthMM2.select();return false;
				}
				else if(datemm2 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM2.focus();
					document.form1.healthMM2.select();return false;
				}
				if(dateyy2 > yrt2)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY2.focus();
					Form.healthYYYY2.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD2.value;
					strMonth = Form.healthMM2.value;
					strYear = parseInt(Form.healthYYYY2.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd2,datemm2,dateyy2);
					totage2 = custage;

					if(totage2 > 60)
					{
						if ((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY2.focus();
						//	Form.healthYYYY2.select();
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
							return false;
					}

				run(datedd2,datemm2,dateyy2);
				totage = custage;
				totdays2 = mindays;


				if((Form.sltInsure2.selectedIndex == 3) || (Form.sltInsure2.selectedIndex == 4) || (Form.sltInsure2.selectedIndex == 9) || (Form.sltInsure2.selectedIndex == 10) || (Form.sltInsure2.selectedIndex == 15) || (Form.sltInsure2.selectedIndex == 16) || (Form.sltInsure2.selectedIndex == 19) || (Form.sltInsure2.selectedIndex == 20))
				{
					if(totdays2 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;	
					}
				}
				else if((Form.sltInsure2.selectedIndex == 1) || (Form.sltInsure2.selectedIndex == 2) || (Form.sltInsure2.selectedIndex == 5) || (Form.sltInsure2.selectedIndex == 6) || (Form.sltInsure2.selectedIndex == 7) || (Form.sltInsure2.selectedIndex == 8) || (Form.sltInsure2.selectedIndex == 11) || (Form.sltInsure2.selectedIndex == 12) || (Form.sltInsure2.selectedIndex == 13) || (Form.sltInsure2.selectedIndex == 14) || (Form.sltInsure2.selectedIndex == 17) || (Form.sltInsure2.selectedIndex == 18))
				{
					if(totdays2 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY2.value = "YYYY";
						document.form1.healthMM2.value = "MM";
						document.form1.healthDD2.value = "DD";
						document.form1.healthDD2.focus();
						document.form1.healthDD2.select();
						disable2();
						return false;				
					}
				}
				else 
				{
					enable2();
				}
				}
				
				if((Form.ct2[0].checked == false) && (Form.ct2[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct2[0].focus();
					return false;
				}
				if(Form.ct2[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt2.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt2.focus();
					return false;
				}

				if(Form.sltInsure3.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure3.focus();
					return false;
				}
			
				if(space.test(Form.txtNameHealth3.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth3.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth3.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth3.focus();
					Form.txtNameHealth3.select();
					return false;
				}
				if(Form.sltGender3.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender3.focus();
					return false;
				}
				if(space.test(Form.healthDD3.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD3.focus();
					return false;
				}
				if(space.test(Form.healthMM3.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM3.focus();
					return false;
				}
				if(space.test(Form.healthYYYY3.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					return false;
				}
				if(Form.healthDD3.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD3.focus();
					Form.healthDD3.select();
					return false;
				}
				if(Form.healthMM3.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM3.focus();
					Form.healthMM3.select();
					return false;
				}
				if(Form.healthYYYY3.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}
				if(Form.healthYYYY3.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}
				if(isNaN(Form.healthDD3.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD3.focus();
					Form.healthDD3.select();
					return false;
				}
				if((document.form1.healthDD3.value == "0") || (document.form1.healthDD3.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD3.focus();
					document.form1.healthDD3.select();
					return false;
				}
				if(isNaN(Form.healthMM3.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM3.focus();
					Form.healthMM3.select();
					return false;
				}
				if((document.form1.healthMM3.value == "0") || (document.form1.healthMM3.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();
					return false;
				}
				if(isNaN(Form.healthYYYY3.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}

				var datedd3 = Form.healthDD3.value;
				var datemm3 = Form.healthMM3.value;
				var dateyy3 = Form.healthYYYY3.value;
				
				var finaldob3 = datedd3+"/"+datemm3+"/"+dateyy3;
			//	alert(finaldob3);

				var curdt3 = new Date();
				var yrt3   = curdt3.getFullYear();
				var mnth3   = curdt3.getMonth()+1;

				if(datedd3 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD3.focus();
					Form.healthDD3.select();return false;
				}
				if((dateyy3 == yrt3) && (datemm3 > mnth3))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM3.focus();
					Form.healthMM3.select();return false;
				}
				else if(datemm3 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM3.focus();
					document.form1.healthMM3.select();return false;
				}
				if(dateyy3 > yrt3)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();return false;
				}
				else
			{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD3.value;
					strMonth = Form.healthMM3.value;
					strYear = parseInt(Form.healthYYYY3.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd3,datemm3,dateyy3);
					totage3 = custage;

					if(totage3 > 60)
					{
						if ((Form.sltInsure3.selectedIndex == 1) || (Form.sltInsure3.selectedIndex == 2) || (Form.sltInsure3.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY3.focus();
						//	Form.healthYYYY3.select();
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
							return false;
					}

				run(datedd3,datemm3,dateyy3);
				totage = custage;
				totdays3 = mindays;

				if((Form.sltInsure3.selectedIndex == 3) || (Form.sltInsure3.selectedIndex == 4) || (Form.sltInsure3.selectedIndex == 9) || (Form.sltInsure3.selectedIndex == 10) || (Form.sltInsure3.selectedIndex == 15) || (Form.sltInsure3.selectedIndex == 16) || (Form.sltInsure3.selectedIndex == 19) || (Form.sltInsure3.selectedIndex == 20))
				{
					if(totdays3 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;	
					}
				}
				else if((Form.sltInsure3.selectedIndex == 1) || (Form.sltInsure3.selectedIndex == 2) || (Form.sltInsure3.selectedIndex == 5) || (Form.sltInsure3.selectedIndex == 6) || (Form.sltInsure3.selectedIndex == 7) || (Form.sltInsure3.selectedIndex == 8) || (Form.sltInsure3.selectedIndex == 11) || (Form.sltInsure3.selectedIndex == 12) || (Form.sltInsure3.selectedIndex == 13) || (Form.sltInsure3.selectedIndex == 14) || (Form.sltInsure3.selectedIndex == 17) || (Form.sltInsure3.selectedIndex == 18))
				{
					if(totdays3 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY3.value = "YYYY";
						document.form1.healthMM3.value = "MM";
						document.form1.healthDD3.value = "DD";
						document.form1.healthDD3.focus();
						document.form1.healthDD3.select();
						disable3();
						return false;				
					}
				}
				else
				{
					enable3();
				}
				}
				
				if((Form.ct3[0].checked == false) && (Form.ct3[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct3[0].focus();
					return false;
				}
				if(Form.ct3[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt3.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt3.focus();
					return false;
				}

				if(Form.sltInsure4.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure4.focus();
					return false;
				}
			
				if(space.test(Form.txtNameHealth4.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth4.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth4.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth4.focus();
					Form.txtNameHealth4.select();
					return false;
				}
				if(Form.sltGender4.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender4.focus();
					return false;
				}
				if(Form.healthYYYY3.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY3.focus();
					Form.healthYYYY3.select();
					return false;
				}

				if(space.test(Form.healthDD4.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD4.focus();
					return false;
				}
				if(space.test(Form.healthMM4.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM4.focus();
					return false;
				}
				if(space.test(Form.healthYYYY4.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY4.focus();
					return false;
				}
				if(Form.healthDD4.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD4.focus();
					Form.healthDD4.select();
					return false;
				}
				if(Form.healthMM4.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM4.focus();
					Form.healthMM4.select();
					return false;
				}
				if(Form.healthYYYY4.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();
					return false;
				}
				if(Form.healthYYYY4.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();
					return false;
				}
				if(isNaN(Form.healthDD4.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD4.focus();
					Form.healthDD4.select();
					return false;
				}
				if((document.form1.healthDD4.value == "0") || (document.form1.healthDD4.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD4.focus();
					document.form1.healthDD4.select();
					return false;
				}
				if(isNaN(Form.healthMM4.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM4.focus();
					Form.healthMM4.select();
					return false;
				}
				if((document.form1.healthMM4.value == "0") || (document.form1.healthMM4.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();
					return false;
				}
				if(isNaN(Form.healthYYYY4.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();
					return false;
				}

				var datedd4 = Form.healthDD4.value;
				var datemm4 = Form.healthMM4.value;
				var dateyy4 = Form.healthYYYY4.value;
				
				var finaldob4 = datedd4+"/"+datemm4+"/"+dateyy4;
			//	alert(finaldob4);

				var curdt4 = new Date();
				var yrt4   = curdt4.getFullYear();
				var mnth4   = curdt4.getMonth()+1;

				if(datedd4 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD4.focus();
					Form.healthDD4.select();return false;
				}
				if((dateyy4 == yrt4) && (datemm4 > mnth4))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM4.focus();
					Form.healthMM4.select();return false;
				}
				else if(datemm4 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM4.focus();
					document.form1.healthMM4.select();return false;
				}
				if(dateyy4 > yrt4)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY4.focus();
					Form.healthYYYY4.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();
				
					MaxAge = 60;

					strDate = Form.healthDD4.value;
					strMonth = Form.healthMM4.value;
					strYear = parseInt(Form.healthYYYY4.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;
					
					run(datedd4,datemm4,dateyy4);
					totage4 = custage;

					if(totage4 > 60)
					{
						if ((Form.sltInsure4.selectedIndex == 1) || (Form.sltInsure4.selectedIndex == 2) || (Form.sltInsure4.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY4.focus();
						//	Form.healthYYYY4.select();
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
							return false;
					}

				run(datedd4,datemm4,dateyy4);
				totage = custage;
				totdays4 = mindays;

					
				if((Form.sltInsure4.selectedIndex == 3) || (Form.sltInsure4.selectedIndex == 4) || (Form.sltInsure4.selectedIndex == 9) || (Form.sltInsure4.selectedIndex == 10) || (Form.sltInsure4.selectedIndex == 15) || (Form.sltInsure4.selectedIndex == 16) || (Form.sltInsure4.selectedIndex == 19) || (Form.sltInsure4.selectedIndex == 20))
				{
					if(totdays4 < 91)
					{	
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
						disable4();
						return false;	
					}
				}
				else if((Form.sltInsure4.selectedIndex == 1) || (Form.sltInsure4.selectedIndex == 2) || (Form.sltInsure4.selectedIndex == 5) || (Form.sltInsure4.selectedIndex == 6) || (Form.sltInsure4.selectedIndex == 7) || (Form.sltInsure4.selectedIndex == 8) || (Form.sltInsure4.selectedIndex == 11) || (Form.sltInsure4.selectedIndex == 12) || (Form.sltInsure4.selectedIndex == 13) || (Form.sltInsure4.selectedIndex == 14) || (Form.sltInsure4.selectedIndex == 17) || (Form.sltInsure4.selectedIndex == 18))
				{
					if(totdays4 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY4.value = "YYYY";
						document.form1.healthMM4.value = "MM";
						document.form1.healthDD4.value = "DD";
						document.form1.healthDD4.focus();
						document.form1.healthDD4.select();
						disable4();
						return false;				
					}
				}
				else
				{
					enable4();
				}

				}
				
				if((Form.ct4[0].checked == false) && (Form.ct4[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct4[0].focus();
					return false;
				}
				if(Form.ct4[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt4.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt4.focus();
					return false;
				}

				if(Form.sltInsure5.selectedIndex == 0)
				{
					alert("Please select the person you would like to Insure!");
					Form.sltInsure5.focus();
					return false;
				}
				
				if(space.test(Form.txtNameHealth5.value))
				{
					alert("Please enter the name of the person to be insured");
					Form.txtNameHealth5.focus();
					return false;
				}
				if(!alpha.test(Form.txtNameHealth5.value))
				{
					alert("Please check the  name of the person to be insured (Alphabets Only)");
					Form.txtNameHealth5.focus();
					Form.txtNameHealth5.select();
					return false;
				}
				if(Form.sltGender5.selectedIndex == 0)
				{
					alert("Please select the Gender of the person to be inusred.");			
					Form.sltGender5.focus();
					return false;
				}
				if(space.test(Form.healthDD5.value))
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD5.focus();
					return false;
				}
				if(space.test(Form.healthMM5.value))
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM5.focus();
					return false;
				}
				if(space.test(Form.healthYYYY5.value))
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY5.focus();
					return false;
				}
				if(Form.healthDD5.value == "DD")
				{
					alert("Please enter date of birth of the person to be insured");
					Form.healthDD5.focus();
					Form.healthDD5.select();
					return false;
				}
				if(Form.healthMM5.value == "MM")
				{
					alert("Please enter the Month of birth of the person to be insured");
					Form.healthMM5.focus();
					Form.healthMM5.select();
					return false;
				}
				if(Form.healthYYYY5.value == "YYYY")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY5.focus();
					Form.healthYYYY5.select();
					return false;
				}
				if(Form.healthYYYY5.value == "")
				{
					alert("Please enter the Year of birth of the person to be insured");
					Form.healthYYYY5.focus();
					Form.healthYYYY5.select();
					return false;
				}
				if(isNaN(Form.healthDD5.value))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD5.focus();
					Form.healthDD5.select();
					return false;
				}
				if((document.form1.healthDD5.value == "0") || (document.form1.healthDD5.value == "00"))
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					document.form1.healthDD5.focus();
					document.form1.healthDD5.select();
					return false;
				}
				if(isNaN(Form.healthMM5.value))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM5.focus();
					Form.healthMM5.select();
					return false;
				}
				if((document.form1.healthMM5.value == "0") || (document.form1.healthMM5.value == "00"))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM5.focus();
					document.form1.healthMM5.select();
					return false;
				}
				if(isNaN(Form.healthYYYY5.value))
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY5.focus();
					Form.healthYYYY5.select();
					return false;
				}

				var datedd5 = Form.healthDD5.value;
				var datemm5 = Form.healthMM5.value;
				var dateyy5 = Form.healthYYYY5.value;
				
				var finaldob5 = datedd5+"/"+datemm5+"/"+dateyy5;
			//	alert(finaldob5);
				var curdt5 = new Date();
				var yrt5   = curdt5.getFullYear();
				var mnth5   = curdt5.getMonth()+1;

				if(datedd5 > 31)
				{
					alert("Please check. The date of birth field entry seems to be invalid.");
					Form.healthDD5.focus();
					Form.healthDD5.select();return false;
				}
				if((dateyy5 == yrt5) && (datemm5 > mnth5))
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					Form.healthMM5.focus();
					Form.healthMM5.select();return false;
				}
				else if(datemm5 > 12)
				{
					alert("Please check. The month of birth field entry seems to be invalid.");
					document.form1.healthMM5.focus();
					document.form1.healthMM5.select();return false;
				}
				if(dateyy5 > yrt5)
				{
					alert("Please check. The year of birth field entry seems to be invalid.");
					Form.healthYYYY5.focus();
					Form.healthYYYY5.select();return false;
				}
				else
				{
					curDate = new Date();
					curDay  = curDate.getDate();
					curMonth = curDate.getMonth()+1;
					curYear = curDate.getFullYear();	
				
					MaxAge = 60;

					strDate = Form.healthDD5.value;
					strMonth = Form.healthMM5.value;
					strYear = parseInt(Form.healthYYYY5.value);

					cudate = curMonth+"/"+curDay+"/"+curYear;
					dobdate = strDate+"/"+strMonth+"/"+strYear;

					var yearcal = curYear-strYear;

					run(datedd5,datemm5,dateyy5);
					totage5 = custage;

					if(totage5 > 60)
					{
						if ((Form.sltInsure5.selectedIndex == 1) || (Form.sltInsure5.selectedIndex == 2) || (Form.sltInsure5.selectedIndex == 4))
						{
						
							alert("Sorry, we can only process online applications for individuals aged less than 60 years. You can however continue to purchase the product for the rest of your family");
						}
						else
						{
							alert("Sorry, we can only process online applications for age less than 60 years.Please contact your Relationship Manager or SMS 'HFIN' to 2484");
					
						}
						//	Form.healthYYYY5.focus();
						//	Form.healthYYYY5.select();
						document.form1.healthYYYY5.value = "YYYY";
						document.form1.healthMM5.value = "MM";
						document.form1.healthDD5.value = "DD";
						document.form1.healthDD5.focus();
						document.form1.healthDD5.select();
							return false;
					}

				run(datedd5,datemm5,dateyy5);
				totage = custage;
				totdays5 = mindays;
					
					
				if((Form.sltInsure5.selectedIndex == 3) || (Form.sltInsure5.selectedIndex == 4) || (Form.sltInsure5.selectedIndex == 9) || (Form.sltInsure5.selectedIndex == 10) || (Form.sltInsure5.selectedIndex == 15) || (Form.sltInsure5.selectedIndex == 16) || (Form.sltInsure5.selectedIndex == 19) || (Form.sltInsure5.selectedIndex == 20))
				{
					if(totdays5 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY5.value = "YYYY";
						document.form1.healthMM5.value = "MM";
						document.form1.healthDD5.value = "DD";
						document.form1.healthDD5.focus();
						document.form1.healthDD5.select();
						disable5();
						return false;			
						
					}
				}
				else if((Form.sltInsure5.selectedIndex == 1) || (Form.sltInsure5.selectedIndex == 2) || (Form.sltInsure5.selectedIndex == 5) || (Form.sltInsure5.selectedIndex == 6) || (Form.sltInsure5.selectedIndex == 7) || (Form.sltInsure5.selectedIndex == 8) || (Form.sltInsure5.selectedIndex == 11) || (Form.sltInsure5.selectedIndex == 12) || (Form.sltInsure5.selectedIndex == 13) || (Form.sltInsure5.selectedIndex == 14) || (Form.sltInsure5.selectedIndex == 17) || (Form.sltInsure5.selectedIndex == 18))
				{
					if(totdays5 < 91)
					{
						alert("Minimum age of the Insured person has to be 91 days");
						document.form1.healthYYYY5.value = "YYYY";
						document.form1.healthMM5.value = "MM";
						document.form1.healthDD5.value = "DD";
						document.form1.healthDD5.focus();
						document.form1.healthDD5.select();
						disable5();
						return false;			
						
					}
				
				}
				else
				{
					enable5();
				}

				}
				
				if((Form.ct5[0].checked == false) && (Form.ct5[1].checked == false))
				{
					alert("Please specify 'Previous Illness / conditions'!");			Form.ct5[0].focus();
					return false;
				}
				if(Form.ct5[0].checked == true)
				{
					return false;
				}

				if(Form.sltCoverageAmt5.selectedIndex == 0)
				{
					alert("Please select a Coverage Amount");
					Form.sltCoverageAmt5.focus();
					return false;
				}
				/*if(Form.txtflag.value == "0")
				{
					alert("Please click on the link 'Declaration / Disclaimer. Read it completely and give us your acceptance to proceed.");
					return false;
				} */
				if((Form.ch1[0].checked == false) && (Form.ch1[1].checked == false))
				{
					alert("Please confirm your acceptance of the Declaration / Disclaimer!");
					Form.ch1[0].focus();
					return false;
				}
				if(Form.ch1[1].checked == false)
				{
				if(Form.ch2.checked == false)
				{
					answer2 = confirm ("Since you have not chosen the automatic renewal option, you would have to renew it manually every year!")
					if (answer2)
					{
						document.form1.ch2.value="Yes";
						Form.form_id.value="Citihealthfrm";			
						Form.Name1.value="HEALTHINSURAN";
						//Form.action="/portal/citiin/forms/citiinmirror_health.jsp";
						//Form.submit();
					}
					else
					{
						return false;
					}
				}
		}
		else
				{
					return false;
				}
				
		}
		Form.textarea3.value="";
		Form.form_id.value="Citihealthfrm";			
		Form.Name1.value="HEALTHINSURAN";
		if(Form.ch3.checked == false)
					{
						alert("Please click on the check box to confirm your acceptance of the product's features, T&C and exclusions!");
						Form.ch3.focus();
						return false;
					}
		//Form.action="https://www.portalsit.citibank.co.in/portal/citiin/forms/citiinmirror_health.jsp";
        Form.submit();
	}


	function show_image()
	{
		document.images["arrow1"].src="/portal/citiin/forms/Health/images/citi_submit.gif";
		document.form1.ch2.disabled = false;
		document.form1.ch3.disabled = false;
	}

	function hide_image()
	{
		document.images["arrow1"].src="/portal/citiin/forms/Health/images/citi_submit_grey.gif";
		document.form1.ch2.disabled = true;
		document.form1.ch3.disabled = true;
		
	}
	function showdiscount()
	{
			document.getElementById("discountdiv").style.visibility = "visible"; 
	}
	
	function hidediscount()
	{
			document.getElementById("discountdiv").style.visibility = "hidden"; 
	}
   	function show_name(val)
	{

		if(document.form1.sltTitle.selectedIndex == 0)
		{
			alert("Please choose a Title");
			document.form1.sltTitle.focus();
			if(val == 1)
			{
				document.form1.sltInsure1.selectedIndex = 0;
			}
			else if(val == 2)
			{
				document.form1.sltInsure2.selectedIndex = 0;
			}
			else if(val == 3)
			{
				document.form1.sltInsure3.selectedIndex = 0;
			}
			else if(val == 4)
			{
				document.form1.sltInsure4.selectedIndex = 0;
			}
			else if(val == 5)
			{
				document.form1.sltInsure5.selectedIndex = 0;
			}
			return false;
		}
		if(space.test(document.form1.First_Name.value))
		{
			alert("Please enter your First Name");
			document.form1.First_Name.focus();
			if(val == 1)
			{
				document.form1.sltInsure1.selectedIndex = 0;
			}
			else if(val == 2)
			{
				document.form1.sltInsure2.selectedIndex = 0;
			}
			else if(val == 3)
			{
				document.form1.sltInsure3.selectedIndex = 0;
			}
			else if(val == 4)
			{
				document.form1.sltInsure4.selectedIndex = 0;
			}
			else if(val == 5)
			{
				document.form1.sltInsure5.selectedIndex = 0;
			}
			return false;
		}
		if(document.form1.First_Name.value == "First Name")
		{
			alert("Please enter your First Name");
			
			if(val == 1)
			{
				document.form1.sltInsure1.selectedIndex = 0;
			}
			else if(val == 2)
			{
				document.form1.sltInsure2.selectedIndex = 0;
			}
			else if(val == 3)
			{
				document.form1.sltInsure3.selectedIndex = 0;
			}
			else if(val == 4)
			{
				document.form1.sltInsure4.selectedIndex = 0;
			}
			else if(val == 5)
			{
				document.form1.sltInsure5.selectedIndex = 0;
			}
			document.form1.First_Name.focus();
			document.form1.First_Name.select();
			return false;
		}
		if(!alpha.test(document.form1.First_Name.value))
		{
			alert("Please check your First name (Alphabets only)");
			if(val == 1)
			{
				document.form1.sltInsure1.selectedIndex = 0;
			}
			else if(val == 2)
			{
				document.form1.sltInsure2.selectedIndex = 0;
			}
			else if(val == 3)
			{
				document.form1.sltInsure3.selectedIndex = 0;
			}
			else if(val == 4)
			{
				document.form1.sltInsure4.selectedIndex = 0;
			}
			else if(val == 5)
			{
				document.form1.sltInsure5.selectedIndex = 0;
			}
			document.form1.First_Name.focus();
			document.form1.First_Name.select();
			return false;
		}	
		if(space.test(document.form1.Last_Name.value))
		{
			alert("Please enter your Last Name");
			if(val == 1)
			{
				document.form1.sltInsure1.selectedIndex = 0;
			}
			else if(val == 2)
			{
				document.form1.sltInsure2.selectedIndex = 0;
			}
			else if(val == 3)
			{
				document.form1.sltInsure3.selectedIndex = 0;
			}
			else if(val == 4)
			{
				document.form1.sltInsure4.selectedIndex = 0;
			}
			else if(val == 5)
			{
				document.form1.sltInsure5.selectedIndex = 0;
			}
			document.form1.Last_Name.focus();
			return false;
		}
		if(document.form1.Last_Name.value == "Last Name")
		{
			alert("Please enter your Last Name");
			if(val == 1)
			{
				document.form1.sltInsure1.selectedIndex = 0;
			}
			else if(val == 2)
			{
				document.form1.sltInsure2.selectedIndex = 0;
			}
			else if(val == 3)
			{
				document.form1.sltInsure3.selectedIndex = 0;
			}
			else if(val == 4)
			{
				document.form1.sltInsure4.selectedIndex = 0;
			}
			else if(val == 5)
			{
				document.form1.sltInsure5.selectedIndex = 0;
			}
			document.form1.Last_Name.focus();
			document.form1.Last_Name.select();
			return false;
		}
		if(!alpha.test(document.form1.Last_Name.value))
		{
			alert("Please check your Last Name(Alphabets only)");
			if(val == 1)
			{
				document.form1.sltInsure1.selectedIndex = 0;
			}
			else if(val == 2)
			{
				document.form1.sltInsure2.selectedIndex = 0;
			}
			else if(val == 3)
			{
				document.form1.sltInsure3.selectedIndex = 0;
			}
			else if(val == 4)
			{
				document.form1.sltInsure4.selectedIndex = 0;
			}
			else if(val == 5)
			{
				document.form1.sltInsure5.selectedIndex = 0;
			}
			document.form1.Last_Name.focus();
			document.form1.Last_Name.select();
			return false;
		}	

		var fname = document.form1.First_Name.value;
		var lname = document.form1.Last_Name.value;
		var cmname = fname+" "+lname;
		if (val == 1)
		{
			document.form1.txtNameHealth1.value = cmname;
		}
		else if(val == 2)
		{
			document.form1.txtNameHealth2.value = cmname;
		}
		else if(val == 3)
		{
			document.form1.txtNameHealth3.value = cmname;
		}
		else if(val == 4)
		{
			document.form1.txtNameHealth4.value = cmname;
		}
		else if(val == 5)
		{
			document.form1.txtNameHealth5.value = cmname;
		}

	}
	

	function show_relative1()
	{
		var relchk = document.form1.sltInsure1.selectedIndex;

		var title = document.form1.sltTitle.selectedIndex;
		var chopt = document.form1.sltInsure1.selectedIndex;

		if(title == 1)
		{
			if(document.form1.sltInsure1.selectedIndex == 2)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure1.selectedIndex = 0;
				document.form1.sltGender1.selectedIndex = 0;
				document.form1.sltInsure1.focus();
				return false;
			}
		}
		if((title == 2) || (title == 3))
		{
			if(document.form1.sltInsure1.selectedIndex == 3)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure1.selectedIndex = 0;
				document.form1.sltGender1.selectedIndex = 0;
				document.form1.sltInsure1.focus();
				return false;
			}
		}
		
		if (chopt == 1)
		{
			show_name('1');
		}
		else
		{
			document.form1.txtNameHealth1.value = "";
		}

		if((chopt == 1) && (title == 1))
		{
			document.form1.sltGender1.selectedIndex = 1;
		}
		else if((chopt == 1) && (title == 2))
		{
			document.form1.sltGender1.selectedIndex = 2;
		}
		else if((chopt == 1) && (title == 3))
		{
			document.form1.sltGender1.selectedIndex = 2;
		}
		else if((chopt == 3) || (chopt == 5) || (chopt == 7) || (chopt == 9) || (chopt == 10) || (chopt == 13) || (chopt == 15) || (chopt == 17)|| (chopt == 19) || (chopt == 21))
		{
			document.form1.sltGender1.selectedIndex = 2;
		}
		else if((chopt == 2) || (chopt == 4) || (chopt == 6) || (chopt == 8) || (chopt == 11) || (chopt == 12) || (chopt == 14) || (chopt == 16) || (chopt == 18) || (chopt == 20))
		{
			document.form1.sltGender1.selectedIndex = 1;
		}
		else
		{
			document.form1.sltGender1.selectedIndex = 0;
		}

	}

	function show_relative2()
	{
		var relchk = document.form1.sltInsure1.selectedIndex;
		var relchk2 = document.form1.sltInsure2.selectedIndex;
		var title = document.form1.sltTitle.selectedIndex;

		if(title == 1)
		{
			if(document.form1.sltInsure2.selectedIndex == 2)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure2.selectedIndex = 0;
				document.form1.sltGender2.selectedIndex = 0;
				document.form1.sltInsure2.focus();
				return false;
			}
		}
		if((title == 2) || (title == 3))
		{
			if(document.form1.sltInsure2.selectedIndex == 3)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure2.selectedIndex = 0;
				document.form1.sltGender2.selectedIndex = 0;
				document.form1.sltInsure2.focus();
				return false;
			}
		}


		if((document.form1.sltInsure1.selectedIndex == "1") && (document.form1.sltInsure2.selectedIndex == "1"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "2") && (document.form1.sltInsure2.selectedIndex == "2"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}
		if((document.form1.sltInsure1.selectedIndex == "3") && (document.form1.sltInsure2.selectedIndex == "3"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}

		/*if((document.form1.sltInsure1.selectedIndex == "5") && (document.form1.sltInsure2.selectedIndex == "5"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}*/

		if((document.form1.sltInsure1.selectedIndex == "6") && (document.form1.sltInsure2.selectedIndex == "6"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "7") && (document.form1.sltInsure2.selectedIndex == "7"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "8") && (document.form1.sltInsure2.selectedIndex == "8"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "9") && (document.form1.sltInsure2.selectedIndex == "9"))
		{
			if(relchk == relchk2)
			{
				alert("Please check selection!");
				document.form1.sltInsure2.selectedIndex = 0;
				return false;
			}
		}

		var chopt2 = document.form1.sltInsure2.selectedIndex;
		var tit2 = document.form1.sltTitle.selectedIndex;

		if (chopt2 == 1)
		{
			show_name('2');
		}
		else
		{
			document.form1.txtNameHealth2.value = "";
		}
		
		if((chopt2 == 1) && (tit2 == 1))
		{
			document.form1.sltGender2.selectedIndex = 1;
		}
		else if((chopt2 == 1) && (tit2 == 2))
		{
			document.form1.sltGender2.selectedIndex = 2;
		}
		else if((chopt2 == 1) && (tit2 == 3))
		{
			document.form1.sltGender2.selectedIndex = 2;
		}
		else if((chopt2 == 3) || (chopt2 == 5) || (chopt2 == 7) || (chopt2 == 9) || (chopt2 == 10) || (chopt2 == 13) || (chopt2 == 15) || (chopt2 == 17) || (chopt2 == 19) || (chopt2 == 21))
		{
			document.form1.sltGender2.selectedIndex = 2;
		}
		else if((chopt2 == 2) || (chopt2 == 4) || (chopt2 == 6) || (chopt2 == 8) || (chopt2 == 11) || (chopt2 == 12) || (chopt2 == 14) || (chopt2 == 16) || (chopt2 == 18) || (chopt2 == 20))
		{
			document.form1.sltGender2.selectedIndex = 1;
		}
		else
		{
			document.form1.sltGender2.selectedIndex = 0;
		}

	}

	function show_relative3()
	{
		var relchk = document.form1.sltInsure1.selectedIndex;
		var relchk2 = document.form1.sltInsure2.selectedIndex;
		var relchk3 = document.form1.sltInsure3.selectedIndex;
		var title = document.form1.sltTitle.selectedIndex;

		if(title == 1)
		{
			if(document.form1.sltInsure3.selectedIndex == 2)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure3.selectedIndex = 0;
				document.form1.sltGender3.selectedIndex = 0;
				document.form1.sltInsure3.focus();
				return false;
			}
		}
		if((title == 2) || (title == 3))
		{
			if(document.form1.sltInsure3.selectedIndex == 3)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure3.selectedIndex = 0;
				document.form1.sltGender3.selectedIndex = 0;
				document.form1.sltInsure3.focus();
				return false;
			}
		}


		if((document.form1.sltInsure1.selectedIndex == "1") && (document.form1.sltInsure3.selectedIndex == "1"))
		{
			if(relchk == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "2") && (document.form1.sltInsure3.selectedIndex == "2"))
		{
			if(relchk == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure2.selectedIndex == "1") && (document.form1.sltInsure3.selectedIndex == "1"))
		{
			if(relchk2 == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure2.selectedIndex == "2") && (document.form1.sltInsure3.selectedIndex == "2"))
		{
			if(relchk2 == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}
		

		if((document.form1.sltInsure1.selectedIndex == "3") && (document.form1.sltInsure3.selectedIndex == "3"))
		{
			if(relchk == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure2.selectedIndex == "3") && (document.form1.sltInsure3.selectedIndex == "3"))
		{
			if(relchk2 == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "6") && (document.form1.sltInsure3.selectedIndex == "6"))
		{
			if(relchk == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure2.selectedIndex == "6") && (document.form1.sltInsure3.selectedIndex == "6"))
		{
			if(relchk2 == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "7") && (document.form1.sltInsure3.selectedIndex == "7"))
		{
			if(relchk == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure2.selectedIndex == "7") && (document.form1.sltInsure3.selectedIndex == "7"))
		{
			if(relchk2 == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "8") && (document.form1.sltInsure3.selectedIndex == "8"))
		{
			if(relchk == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure2.selectedIndex == "8") && (document.form1.sltInsure3.selectedIndex == "8"))
		{
			if(relchk2 == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "9") && (document.form1.sltInsure3.selectedIndex == "9"))
		{
			if(relchk == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure2.selectedIndex == "9") && (document.form1.sltInsure3.selectedIndex == "9"))
		{
			if(relchk2 == relchk3)
			{
				alert("Please check selection!");
				document.form1.sltInsure3.selectedIndex = 0;
				return false;
			}
		}
		
		
		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure3.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure3.selectedIndex = 0;
			return false;
		}

		var chopt3 = document.form1.sltInsure3.selectedIndex;
		var tit3 = document.form1.sltTitle.selectedIndex;

		if (chopt3 == 1)
		{
			show_name('3');
		}
		else
		{
			document.form1.txtNameHealth3.value = "";
		}
		
		if((chopt3 == 1) && (tit3 == 1))
		{
			document.form1.sltGender3.selectedIndex = 1;
		}
		else if((chopt3 == 1) && (tit3 == 2))
		{
			document.form1.sltGender3.selectedIndex = 2;
		}
		else if((chopt3 == 1) && (tit3 == 3))
		{
			document.form1.sltGender3.selectedIndex = 2;
		}
		else if((chopt3 == 3) || (chopt3 == 5) || (chopt3 == 7) || (chopt3 == 9) || (chopt3 == 10) || (chopt3 == 13) || (chopt3 == 15) || (chopt3 == 17) || (chopt3 == 19) || (chopt3 == 21))
		{
			document.form1.sltGender3.selectedIndex = 2;
		}
		else if((chopt3 == 2) || (chopt3 == 4) || (chopt3 == 6) || (chopt3 == 8) || (chopt3 == 11) || (chopt3 == 12) || (chopt3 == 14) || (chopt3 == 16) || (chopt3 == 18) || (chopt3 == 20))
		{
			document.form1.sltGender3.selectedIndex = 1;
		}
		else
		{
			document.form1.sltGender3.selectedIndex = 0;
		}

	}

	function show_relative4()
	{
		var relchk = document.form1.sltInsure1.selectedIndex;
		var relchk2 = document.form1.sltInsure2.selectedIndex;
		var relchk3 = document.form1.sltInsure3.selectedIndex;
		var relchk4 = document.form1.sltInsure4.selectedIndex;
		var title = document.form1.sltTitle.selectedIndex;
		
		if(title == 1)
		{
			if(document.form1.sltInsure4.selectedIndex == 2)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure4.selectedIndex = 0;
				document.form1.sltGender4.selectedIndex = 0;
				document.form1.sltInsure4.focus();
				return false;
			}
		}
		if((title == 2) || (title == 3))
		{
			if(document.form1.sltInsure4.selectedIndex == 3)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure4.selectedIndex = 0;
				document.form1.sltGender4.selectedIndex = 0;
				document.form1.sltInsure4.focus();
				return false;
			}
		}

		if(document.form1.sltInsure4.selectedIndex == "1")
		{
			if((document.form1.sltInsure1.selectedIndex == "1") || (document.form1.sltInsure2.selectedIndex == "1") || (document.form1.sltInsure3.selectedIndex == "1"))
			{
				alert("Please check selection!");
				document.form1.sltInsure4.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure4.selectedIndex == "2")
		{
			if((document.form1.sltInsure1.selectedIndex == "2") || (document.form1.sltInsure2.selectedIndex == "2") || (document.form1.sltInsure3.selectedIndex == "2"))
			{
				alert("Please check selection!");
				document.form1.sltInsure4.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure4.selectedIndex == "3")
		{
			if((document.form1.sltInsure1.selectedIndex == "3") || (document.form1.sltInsure2.selectedIndex == "3") || (document.form1.sltInsure3.selectedIndex == "3"))
			{
				alert("Please check selection!");
				document.form1.sltInsure4.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure4.selectedIndex == "6")
		{
			if((document.form1.sltInsure1.selectedIndex == "6") || (document.form1.sltInsure2.selectedIndex == "6") || (document.form1.sltInsure3.selectedIndex == "6"))
			{
				alert("Please check selection!");
				document.form1.sltInsure4.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure4.selectedIndex == "7")
		{
			if((document.form1.sltInsure1.selectedIndex == "7") || (document.form1.sltInsure2.selectedIndex == "7") || (document.form1.sltInsure3.selectedIndex == "7"))
			{
				alert("Please check selection!");
				document.form1.sltInsure4.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure4.selectedIndex == "8")
		{
			if((document.form1.sltInsure1.selectedIndex == "8") || (document.form1.sltInsure2.selectedIndex == "8") || (document.form1.sltInsure3.selectedIndex == "8"))
			{
				alert("Please check selection!");
				document.form1.sltInsure4.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure4.selectedIndex == "9")
		{
			if((document.form1.sltInsure1.selectedIndex == "9") || (document.form1.sltInsure2.selectedIndex == "9") || (document.form1.sltInsure3.selectedIndex == "9"))
			{
				alert("Please check selection!");
				document.form1.sltInsure4.selectedIndex = 0;
				return false;
			}
		}

		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure4.selectedIndex = 0;
			return false;
		}
		

		var chopt4 = document.form1.sltInsure4.selectedIndex;
		var tit4 = document.form1.sltTitle.selectedIndex;

		if (chopt4 == 1)
		{
			show_name('4');
		}
		else
		{
			document.form1.txtNameHealth4.value = "";
		}

		if((chopt4 == 1) && (tit4 == 1))
		{
			document.form1.sltGender4.selectedIndex = 1;
		}
		else if((chopt4 == 1) && (tit4 == 2))
		{
			document.form1.sltGender4.selectedIndex = 2;
		}
		else if((chopt4 == 1) && (tit4 == 3))
		{
			document.form1.sltGender4.selectedIndex = 2;
		}
		else if((chopt4 == 3) || (chopt4 == 5) || (chopt4 == 7) || (chopt4 == 9) || (chopt4 == 10) || (chopt4 == 13) || (chopt4 == 15) || (chopt4 == 17) || (chopt4 == 19) || (chopt4 == 21))
		{
			document.form1.sltGender4.selectedIndex = 2;
		}
		else if((chopt4 == 4) || (chopt4 == 6) || (chopt4 == 8) || (chopt4 == 11) || (chopt4 == 12) || (chopt4 == 14) || (chopt4 == 16) || (chopt4 == 18) || (chopt4 == 20) || (chopt4 == 2))
		{
			document.form1.sltGender4.selectedIndex = 1;
		}
		else
		{
			document.form1.sltGender4.selectedIndex = 0;
		}
	}

	function show_relative5()
	{
		var relchk = document.form1.sltInsure1.selectedIndex;
		var relchk2 = document.form1.sltInsure2.selectedIndex;
		var relchk3 = document.form1.sltInsure3.selectedIndex;
		var relchk4 = document.form1.sltInsure4.selectedIndex;
		var relchk5 = document.form1.sltInsure5.selectedIndex;
		var title = document.form1.sltTitle.selectedIndex;
	//	alert(relchk);

		if(title == 1)
		{
			if(document.form1.sltInsure5.selectedIndex == 2)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure5.selectedIndex = 0;
				document.form1.sltGender5.selectedIndex = 0;
				document.form1.sltInsure5.focus();
				return false;
			}
		}
		if((title == 2) || (title == 3))
		{
			if(document.form1.sltInsure5.selectedIndex == 3)
			{
				alert("Please check selection or your Title.");
				document.form1.sltInsure5.selectedIndex = 0;
				document.form1.sltGender5.selectedIndex = 0;
				document.form1.sltInsure5.focus();
				return false;
			}
		}

		if(document.form1.sltInsure5.selectedIndex == "1")
		{
			if((document.form1.sltInsure1.selectedIndex == "1") || (document.form1.sltInsure2.selectedIndex == "1") || (document.form1.sltInsure3.selectedIndex == "1") || (document.form1.sltInsure4.selectedIndex == "1"))
			{
				alert("Please check selection!");
				document.form1.sltInsure5.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure5.selectedIndex == "2")
		{
			if((document.form1.sltInsure1.selectedIndex == "2") || (document.form1.sltInsure2.selectedIndex == "2") || (document.form1.sltInsure3.selectedIndex == "2") || (document.form1.sltInsure4.selectedIndex == "2"))
			{
				alert("Please check selection!");
				document.form1.sltInsure5.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure5.selectedIndex == "3")
		{
			if((document.form1.sltInsure1.selectedIndex == "3") || (document.form1.sltInsure2.selectedIndex == "3") || (document.form1.sltInsure3.selectedIndex == "3") || (document.form1.sltInsure4.selectedIndex == "3"))
			{
				alert("Please check selection!");
				document.form1.sltInsure5.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure5.selectedIndex == "6")
		{
			if((document.form1.sltInsure1.selectedIndex == "6") || (document.form1.sltInsure2.selectedIndex == "6") || (document.form1.sltInsure3.selectedIndex == "6") || (document.form1.sltInsure4.selectedIndex == "6"))
			{
				alert("Please check selection!");
				document.form1.sltInsure5.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure5.selectedIndex == "7")
		{
			if((document.form1.sltInsure1.selectedIndex == "7") || (document.form1.sltInsure2.selectedIndex == "7") || (document.form1.sltInsure3.selectedIndex == "7") || (document.form1.sltInsure4.selectedIndex == "7"))
			{
				alert("Please check selection!");
				document.form1.sltInsure5.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure5.selectedIndex == "8")
		{
			if((document.form1.sltInsure1.selectedIndex == "8") || (document.form1.sltInsure2.selectedIndex == "8") || (document.form1.sltInsure3.selectedIndex == "8") || (document.form1.sltInsure4.selectedIndex == "8"))
			{
				alert("Please check selection!");
				document.form1.sltInsure5.selectedIndex = 0;
				return false;
			}
		}

		if(document.form1.sltInsure5.selectedIndex == "9")
		{
			if((document.form1.sltInsure1.selectedIndex == "9") || (document.form1.sltInsure2.selectedIndex == "9") || (document.form1.sltInsure3.selectedIndex == "9") || (document.form1.sltInsure4.selectedIndex == "9"))
			{
				alert("Please check selection!");
				document.form1.sltInsure5.selectedIndex = 0;
				return false;
			}
		}
		
		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure3.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure2.selectedIndex == "17") && (document.form1.sltInsure4.selectedIndex == "17") && (document.form1.sltInsure5.selectedIndex == "17"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure3.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure1.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		if((document.form1.sltInsure2.selectedIndex == "18") && (document.form1.sltInsure4.selectedIndex == "18") && (document.form1.sltInsure5.selectedIndex == "18"))
		{
			alert("Please check selection!");
			document.form1.sltInsure5.selectedIndex = 0;
			return false;
		}

		var chopt5 = document.form1.sltInsure5.selectedIndex;
		var title = document.form1.sltTitle.selectedIndex;

		if (chopt5 == 1)
		{
			show_name('5');
		}
		else
		{
			document.form1.txtNameHealth5.value = "";
		}
		
		if((chopt5 == 1) && (title == 1))
		{
			document.form1.sltGender5.selectedIndex = 1;
		}
		else if((chopt5 == 1) && (title == 2))
		{
			document.form1.sltGender5.selectedIndex = 2;
		}
		else if((chopt5 == 1) && (title == 3))
		{
			document.form1.sltGender5.selectedIndex = 2;
		}
		else if((chopt5 == 3) || (chopt5 == 5) || (chopt5 == 7) || (chopt5 == 9) || (chopt5 == 10) || (chopt5 == 13) || (chopt5 == 15) || (chopt5 == 17) || (chopt5 == 19) || (chopt5 == 21))
		{
			document.form1.sltGender5.selectedIndex = 2;
		}
		else if((chopt5 == 4) || (chopt5 == 6) || (chopt5 == 8) || (chopt5 == 11) || (chopt5 == 12) || (chopt5 == 14) || (chopt5 == 16) || (chopt5 == 18) || (chopt5 == 20) || (chopt5 == 2))
		{
			document.form1.sltGender5.selectedIndex = 1;
		}
		else
		{
			document.form1.sltGender5.selectedIndex = 0;
		}
	}


	function check_correct1()
	{
		var chopt = document.form1.sltInsure1.selectedIndex;
		var chktit = document.form1.sltTitle.selectedIndex;

		if (chopt == 1)
		{
			show_name('1');
		}

		if((chopt == 1) && (chktit == 1))
		{
			document.form1.sltGender1.selectedIndex = 1;
		}
		else if((chopt == 1) && (chktit == 2))
		{
			document.form1.sltGender1.selectedIndex = 2;
		}
		else if((chopt == 1) && (chktit == 3))
		{
			document.form1.sltGender1.selectedIndex = 2;
		}
		else if((chopt == 3) || (chopt == 5) || (chopt == 7) || (chopt == 9) || (chopt == 10) || (chopt == 13) || (chopt == 15) || (chopt == 17) || (chopt == 19) || (chopt == 21))
		{
			document.form1.sltGender1.selectedIndex = 2;
		}
		else if((chopt == 2) ||(chopt == 4) || (chopt == 6) || (chopt == 8) || (chopt == 11) || (chopt == 12) || (chopt == 14) || (chopt == 16) || (chopt == 18) || (chopt == 20) || (chopt == 22))
		{
			document.form1.sltGender1.selectedIndex = 1;
		}
	}

	function check_correct2()
	{
		var chopt = document.form1.sltInsure2.selectedIndex;
		var chktit = document.form1.sltTitle.selectedIndex;

		if (chopt == 1)
		{
			show_name('2');
		}

		if((chopt == 1) && (chktit == 1))
		{
			document.form1.sltGender2.selectedIndex = 1;
		}
		else if((chopt == 1) && (chktit == 2))
		{
			document.form1.sltGender2.selectedIndex = 2;
		}
		else if((chopt == 1) && (chktit == 3))
		{
			document.form1.sltGender2.selectedIndex = 2;
		}
		else if((chopt == 3) || (chopt == 5) || (chopt == 7) || (chopt == 9) || (chopt == 10) || (chopt == 13) || (chopt == 15) || (chopt == 17) || (chopt == 19) || (chopt == 21))
		{
			document.form1.sltGender2.selectedIndex = 2;
		}
		else if((chopt == 2) || (chopt == 4) || (chopt == 6) || (chopt == 8) || (chopt == 11) || (chopt == 12) || (chopt == 14) || (chopt == 16) || (chopt == 18) || (chopt == 20) || (chopt == 22))
		{
			document.form1.sltGender2.selectedIndex = 1;
		}
	}

	function check_correct3()
	{
		var chopt = document.form1.sltInsure3.selectedIndex;
		var chktit = document.form1.sltTitle.selectedIndex;


		if (chopt == 1)
		{
			show_name('3');
		}

		if((chopt == 1) && (chktit == 1))
		{
			document.form1.sltGender3.selectedIndex = 1;
		}
		else if((chopt == 1) && (chktit == 2))
		{
			document.form1.sltGender3.selectedIndex = 2;
		}
		else if((chopt == 1) && (chktit == 3))
		{
			document.form1.sltGender3.selectedIndex = 2;
		}
		else if((chopt == 3) || (chopt == 5) || (chopt == 7) || (chopt == 9) || (chopt == 10) || (chopt == 13) || (chopt == 15) || (chopt == 17) || (chopt == 19) || (chopt == 21))
		{
			document.form1.sltGender3.selectedIndex = 2;
		}
		else if((chopt == 2) || (chopt == 4) || (chopt == 6) || (chopt == 8) || (chopt == 11) || (chopt == 12) || (chopt == 14) || (chopt == 16) || (chopt == 18) || (chopt == 20) || (chopt == 22))
		{
			document.form1.sltGender3.selectedIndex = 1;
		}
	}

	function check_correct4()
	{
		var chopt = document.form1.sltInsure4.selectedIndex;
		var chktit = document.form1.sltTitle.selectedIndex;

		if (chopt == 1)
		{
			show_name('4');
		}

		if((chopt == 1) && (chktit == 1))
		{
			document.form1.sltGender4.selectedIndex = 1;
		}
		else if((chopt == 1) && (chktit == 2))
		{
			document.form1.sltGender4.selectedIndex = 2;
		}
		else if((chopt == 1) && (chktit == 3))
		{
			document.form1.sltGender4.selectedIndex = 2;
		}
		else if((chopt == 3) || (chopt == 5) || (chopt == 7) || (chopt == 9) || (chopt == 10) || (chopt == 13) || (chopt == 15) || (chopt == 17) || (chopt == 19) || (chopt == 21))
		{
			document.form1.sltGender4.selectedIndex = 2;
		}
		else if((chopt == 2) || (chopt == 4) || (chopt == 6) || (chopt == 8) || (chopt == 11) || (chopt == 12) || (chopt == 14) || (chopt == 16) || (chopt == 18) || (chopt == 20) || (chopt == 22))
		{
			document.form1.sltGender4.selectedIndex = 1;
		}
	}

	function check_correct5()
	{
		var chopt = document.form1.sltInsure5.selectedIndex;
		var chktit = document.form1.sltTitle.selectedIndex;

		if (chopt == 1)
		{
			show_name('5');
		}

		if((chopt == 1) && (chktit == 1))
		{
			document.form1.sltGender5.selectedIndex = 1;
		}
		else if((chopt == 1) && (chktit == 2))
		{
			document.form1.sltGender5.selectedIndex = 2;
		}
		else if((chopt == 1) && (chktit == 3))
		{
			document.form1.sltGender5.selectedIndex = 2;
		}
		else if((chopt == 3) || (chopt == 5) || (chopt == 7) || (chopt == 9) || (chopt == 10) || (chopt == 13) || (chopt == 15) || (chopt == 17) || (chopt == 19) || (chopt == 21))
		{
			document.form1.sltGender5.selectedIndex = 2;
		}
		else if((chopt == 2) || (chopt == 4) || (chopt == 6) || (chopt == 8) || (chopt == 11) || (chopt == 12) || (chopt == 14) || (chopt == 16) || (chopt == 18) || (chopt == 20) || (chopt == 22))
		{
			document.form1.sltGender5.selectedIndex = 1;
		}
	}

	function change_title1()
	{
		
		var persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;

		if(persons == 1)
		{
			var chopt = document.form1.sltInsure1.selectedIndex;
			var chktit = document.form1.sltTitle.selectedIndex;
			//alert(chopt);
			//alert(chktit);
			if(chopt == 1)
			{
				if(chktit == 1)
				{
					document.form1.sltGender1.selectedIndex = 1;
				}
				else if((chktit == 2) || (chktit == 3))
				{	
					document.form1.sltGender1.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender1.selectedIndex = 0;
				}
			}
		}	
		else if(persons == 2)
		{

			var chopt = document.form1.sltInsure1.selectedIndex;
			var chktit = document.form1.sltTitle.selectedIndex;

			var chopt2 = document.form1.sltInsure2.selectedIndex;
			var chktit2 = document.form1.sltTitle.selectedIndex;
			//alert(chopt);
			//alert(chktit);
			if(chopt == 1)
			{
				if(chktit == 1)
				{
					document.form1.sltGender1.selectedIndex = 1;
				}
				else if((chktit == 2) || (chktit == 3))
				{	
					document.form1.sltGender1.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender1.selectedIndex = 0;
				}
			}

			if(chopt2 == 1)
			{
				if(chktit2 == 1)
				{
					document.form1.sltGender2.selectedIndex = 1;
				}
				else if((chktit2 == 2) || (chktit2 == 3))
				{	
					document.form1.sltGender2.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender2.selectedIndex = 0;
				}
			}
		}	
		else if(persons == 3)
		{
			var chopt = document.form1.sltInsure1.selectedIndex;
			var chktit = document.form1.sltTitle.selectedIndex;

			var chopt2 = document.form1.sltInsure2.selectedIndex;
			var chktit2 = document.form1.sltTitle.selectedIndex;

			var chopt3 = document.form1.sltInsure3.selectedIndex;
			var chktit3 = document.form1.sltTitle.selectedIndex;
			//alert(chopt);
			//alert(chktit);

			if(chopt == 1)
			{
				if(chktit == 1)
				{
					document.form1.sltGender1.selectedIndex = 1;
				}
				else if((chktit == 2) || (chktit == 3))
				{	
					document.form1.sltGender1.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender1.selectedIndex = 0;
				}
			}

			if(chopt2 == 1)
			{
				if(chktit2 == 1)
				{
					document.form1.sltGender2.selectedIndex = 1;
				}
				else if((chktit2 == 2) || (chktit2 == 3))
				{	
					document.form1.sltGender2.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender2.selectedIndex = 0;
				}
			}

			if(chopt3 == 1)
			{
				if(chktit3 == 1)
				{
					document.form1.sltGender3.selectedIndex = 1;
				}
				else if((chktit3 == 2) || (chktit3 == 3))
				{	
					document.form1.sltGender3.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender3.selectedIndex = 0;
				}
			}
		}	
		else if(persons == 4)
		{
			var chopt = document.form1.sltInsure1.selectedIndex;
			var chktit = document.form1.sltTitle.selectedIndex;

			var chopt2 = document.form1.sltInsure2.selectedIndex;
			var chktit2 = document.form1.sltTitle.selectedIndex;

			var chopt3 = document.form1.sltInsure3.selectedIndex;
			var chktit3 = document.form1.sltTitle.selectedIndex;

			var chopt4 = document.form1.sltInsure4.selectedIndex;
			var chktit4 = document.form1.sltTitle.selectedIndex;
			//alert(chopt);
			//alert(chktit);
			if(chopt == 1)
			{
				if(chktit == 1)
				{
					document.form1.sltGender1.selectedIndex = 1;
				}
				else if((chktit == 2) || (chktit == 3))
				{	
					document.form1.sltGender1.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender1.selectedIndex = 0;
				}
			}

			if(chopt2 == 1)
			{
				if(chktit2 == 1)
				{
					document.form1.sltGender2.selectedIndex = 1;
				}
				else if((chktit2 == 2) || (chktit2 == 3))
				{	
					document.form1.sltGender2.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender2.selectedIndex = 0;
				}
			}

			if(chopt3 == 1)
			{
				if(chktit3 == 1)
				{
					document.form1.sltGender3.selectedIndex = 1;
				}
				else if((chktit3 == 2) || (chktit3 == 3))
				{	
					document.form1.sltGender3.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender3.selectedIndex = 0;
				}
			}
			if(chopt4 == 1)
			{
				if(chktit4 == 1)
				{
					document.form1.sltGender4.selectedIndex = 1;
				}
				else if((chktit4 == 2) || (chktit4 == 3))
				{	
					document.form1.sltGender4.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender4.selectedIndex = 0;
				}
			}
		}	
		else if(persons == 5)
		{
			var chopt = document.form1.sltInsure1.selectedIndex;
			var chktit = document.form1.sltTitle.selectedIndex;

			var chopt2 = document.form1.sltInsure2.selectedIndex;
			var chktit2 = document.form1.sltTitle.selectedIndex;

			var chopt3 = document.form1.sltInsure3.selectedIndex;
			var chktit3 = document.form1.sltTitle.selectedIndex;

			var chopt4 = document.form1.sltInsure4.selectedIndex;
			var chktit4 = document.form1.sltTitle.selectedIndex;

			var chopt5 = document.form1.sltInsure5.selectedIndex;
			var chktit5 = document.form1.sltTitle.selectedIndex;
			//alert(chopt);
			//alert(chktit);

			if(chopt2 == 1)
			{
				if(chktit2 == 1)
				{
					document.form1.sltGender2.selectedIndex = 1;
				}
				else if((chktit2 == 2) || (chktit2 == 3))
				{	
					document.form1.sltGender2.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender2.selectedIndex = 0;
				}
			}

			if(chopt3 == 1)
			{
				if(chktit3 == 1)
				{
					document.form1.sltGender3.selectedIndex = 1;
				}
				else if((chktit3 == 2) || (chktit3 == 3))
				{	
					document.form1.sltGender3.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender3.selectedIndex = 0;
				}
			}
			if(chopt4 == 1)
			{
				if(chktit4 == 1)
				{
					document.form1.sltGender4.selectedIndex = 1;
				}
				else if((chktit4 == 2) || (chktit4 == 3))
				{	
					document.form1.sltGender4.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender4.selectedIndex = 0;
				}
			}

			if(chopt5 == 1)
			{
				if(chktit5 == 1)
				{
					document.form1.sltGender5.selectedIndex = 1;
				}
				else if((chktit5 == 2) || (chktit5 == 3))
				{	
					document.form1.sltGender5.selectedIndex = 2;
				}
				else
				{
					document.form1.sltGender5.selectedIndex = 0;
				}
			}
		}	

	}



//VALIDATE DATE

/**
 * DHTML date validation script for dd/mm/yyyy. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */
// Declaring valid date character, minimum year and maximum year
var dtCh= "/";
var minYear=1900;
var maxYear=2100;

function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year){
	// February has 29 days in any year evenly divisible by four,
    // EXCEPT for centurial years which are not also divisible by 400.
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 31
		if (i==4 || i==6 || i==9 || i==11) {this[i] = 30}
		if (i==2) {this[i] = 29}
   } 
   return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12)
	var pos1=dtStr.indexOf(dtCh)
	var pos2=dtStr.indexOf(dtCh,pos1+1)
	var strDay=dtStr.substring(0,pos1)
	var strMonth=dtStr.substring(pos1+1,pos2)
	var strYear=dtStr.substring(pos2+1)
	strYr=strYear
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		alert("The date format should be : dd/mm/yyyy")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		alert("Please check. The month of birth field entry seems to be invalid.")
		document.form1.healthMM1.focus();
		document.form1.healthMM1.select();
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		alert("Please check. The date of birth field entry seems to be invalid.")
		document.form1.healthDD1.focus();
		document.form1.healthDD1.select();
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		alert("Please check. The year of birth field entry seems to be invalid.")
		document.form1.healthYYYY1.focus();
		document.form1.healthYYYY1.select();
		return false
	}
	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		alert("Please enter a valid date")
		document.form1.healthDD1.focus();
		document.form1.healthDD1.select();
		return false
	}
return true
}


function run(dobdd,dobmm,dobyy) {

dd = dobdd;
mm = dobmm;
yy = dobyy;


days = new Date();
gdate = days.getDate();
gmonth = days.getMonth();
gyear = days.getFullYear();
if (gyear < 2000) gyear += 1900;
age = gyear - yy;
if ((mm == (gmonth + 1)) && (dd <= parseInt(gdate))) 
	{
	age = age; 
	} 
else 
	{
	if (mm <= (gmonth)) 
		{
		age = age;
		} 
	else 
		{
		age = age - 1; 
   		}
	}
if (age == 0) age = age;
custage = age;
//alert("You are " + age+ " years old . . .");

if (mm <= (gmonth + 1)) age = age - 1;
if ((mm == (gmonth + 1)) && (dd > parseInt(gdate))) age = age + 1;
var m;
var n; 
//////////////DOCUMENTED CORRECTIONS AND COMMENTS - by Maurici Cardo Jordi //////////// 
var p;                                                                                                    ////////ADDED VAR p //////////
if (mm == 12) n = 31 - dd;                                                               ///////////n is days to end year///
if (mm == 11) n = 61 - dd;                                                               //////////mm is birthday month///////////////////
if (mm == 10) n = 92 - dd;
if (mm == 9) n = 122 - dd;
if (mm == 8) n = 153 - dd;
if (mm == 7) n = 184 - dd;
if (mm == 6) n = 214 - dd;
if (mm == 5) n = 245 - dd;
if (mm == 4) n = 275 - dd;
if (mm == 3) n = 306 - dd;
if (mm == 2) { n = 334 - dd; if (leapyear(yy)) n++; }
if (mm == 1) { n = 365 - dd; if (leapyear(yy)) n++; }                                   //////m is birthday days from new year/////////////////

if (gmonth == 0) m = 0;																				//////////Added this: m=0/////////////////////////////////////		  
if (gmonth == 1) m = 31;                                                             
if (gmonth == 2) {m = 59; if (leapyear(gyear)) m++;}              
if (gmonth == 3)  { m = 90;  if (leapyear(gyear)) m++; }          
if (gmonth == 4)  { m = 120; if (leapyear(gyear)) m++; }         
if (gmonth == 5)  { m = 151; if (leapyear(gyear)) m++; }         
if (gmonth == 6)  { m = 181; if (leapyear(gyear)) m++; }         
if (gmonth == 7)  { m = 212; if (leapyear(gyear)) m++; }         
if (gmonth == 8)  { m = 243; if (leapyear(gyear)) m++; }         
if (gmonth == 9)  { m = 273; if (leapyear(gyear)) m++; }         
if (gmonth == 10) { m = 304; if (leapyear(gyear)) m++; }        
if (gmonth == 11) { m = 334; if (leapyear(gyear)) m++; }        
if (gmonth == 12) { m = 365; if (leapyear(gyear)) m++; }                      /////////////////////////This line is not useful//////////////////////

months = age * 12;
months += 13 - parseInt(mm);                                                                 
months += gmonth; 
totdays = (parseInt(age) * 365);
totdays += age / 4;
totdays = parseInt(totdays) + gdate + m + n;                                           //////////////////////correction for leap years!//////////////

if (gmonth == 0) {p=gdate;}                                                                        ////////////////////Added this//////////////////////////////
if (gmonth == 1) {p = 31 + gdate; if (leapyear(gyear)) m = m+1;}              ////////////////////February///////////////////////////////

if (gmonth == 2) {p = 59 + gdate; if (leapyear(gyear)) m = m+1; p++;}      //////////////////added p++////////////////////////////////
if (gmonth == 3)  { p = 90 + gdate;  if (leapyear(gyear)) p++; }       
if (gmonth == 4)  { p = 120 + gdate; if (leapyear(gyear)) p++; }      
if (gmonth == 5)  { p = 151 + gdate; if (leapyear(gyear)) p++; }      
if (gmonth == 6)  { p = 181 + gdate; if (leapyear(gyear)) p++; }      
if (gmonth == 7)  { p = 212 + gdate; if (leapyear(gyear)) p++; }      
if (gmonth == 8)  { p = 243 + gdate; if (leapyear(gyear)) p++; }      
if (gmonth == 9)  { p = 273 + gdate; if (leapyear(gyear)) p++; }      
if (gmonth == 10) { p = 304 + gdate; if (leapyear(gyear)) p++; }     
if (gmonth == 11) { p = 334 + gdate; if (leapyear(gyear)) p++; }     
if (gmonth == 12) { p = 365 + gdate; if (leapyear(gyear)) p++; }             //////////////////this line is not useful gmonth is never 12//////
weeks = (age * 365) + n + p; 
/////////////age*365 + days to end year(birth year) + p (days from new year to today)////////

weeks = weeks / 7;
etcdays = parseFloat(weeks) - parseInt(weeks);
etcdays = Math.round(etcdays * 7);
weeks = parseInt(weeks);
etcdays += parseInt(age / 4);           
if (etcdays > 7) weeks += parseInt(etcdays / 7);      
mindays = 91;
if(custage == 0)
mindays = totdays;
//alert(totdays + " days old\n");
var time = new Date();
ghour = time.getHours();
gmin = time.getMinutes();
gsec = time.getSeconds(); 
hour = ((age * 365) + n + p) * 24;
hour += (parseInt(age / 4) * 24);                                                        /////////////////////////correction for leap years: //////////////////

var min = (hour * 60) + gmin;

sec = (min * 60) + gsec;

mm = mm - 1;                                                                                                /////////////////////mm was the birthday month//////////////////
var r;
if (mm == 0) r = 0;                                                                                         ////////////////////// r is days from new year to birthday//////////
if (mm == 1) r = 31;
if (mm == 2) { r = 59; if (leapyear(gyear)) m++; }
if (mm == 3)  { r = 90;  if (leapyear(gyear)) r++; }
if (mm == 4)  { r = 120; if (leapyear(gyear)) r++; }
if (mm == 5)  { r = 151; if (leapyear(gyear)) r++; }
if (mm == 6)  { r = 181; if (leapyear(gyear)) r++; }
if (mm == 7)  { r = 212; if (leapyear(gyear)) r++; }
if (mm == 8)  { r = 243; if (leapyear(gyear)) r++; }
if (mm == 9)  { r = 273; if (leapyear(gyear)) r++; }
if (mm == 10) { r = 304; if (leapyear(gyear)) r++; }
if (mm == 11) { r = 334; if (leapyear(gyear)) r++; }
mm = mm + 1;
r = parseInt(r) + parseInt(dd);                                                                     ////////////////////////dd was birthday day of month/////////// 

if ((mm >= (gmonth + 1)) && (dd > gdate)) 
	{
	bday = r - m - gdate; 
	}
else 
	{
	if ((leapyear(gyear)) && ((mm > 2) && (dd < 29))) 
		{
		a = 366;
		}
	 else 
	 	{
		a = 365;
		}
	bday = a + (r - m - gdate);                                            
	/////////a is size days of year///////////////////// 
	}
nhour = 24 - parseInt(ghour);
nmin = 60 - parseInt(gmin);
nsec = 60 - parseInt(gsec);
while (bday > 366) bday -= 365;

//alert(bday);

//mindays = bday;

//document.agecalc.timealive.value += "\n\nAnd, your next birthday is in:\n"
//+ bday + " days " + nhour + " hrs " + nmin + " mins " + nsec + " secs";
//setTimeout("run()", 1000);

//return age;
   
}
function leapyear(a) {
if (((a%4 == 0) && (a%100 != 0)) || (a%400 == 0))
return true;
else
return false;
}

	function premium_amount(Form)
	{

	var option1 = Form.sltPersons.options[Form.sltPersons.selectedIndex].value;
//	alert(option1);


	if(option1 == "1")
	{
		if(Form.sltCoverageAmt1.selectedIndex == 0)
		{
			alert("Please select a Coverage Amount");
			Form.txtPRAmt.value = "";
			Form.sltCoverageAmt1.focus();
			return false;	
		}
	
		if((space.test(Form.healthDD1.value)) && (space.test(Form.healthMM1.value)) && (space.test(Form.healthYYYY1.value)))
		{
			alert("Please enter date of birth of the person to be insured");
			Form.sltCoverageAmt1.selectedIndex = 0;
			Form.healthDD1.focus();
			return false;
		}
		if(Form.healthDD1.value == "DD")
		{
			alert("Please enter date of birth of the person to be insured");
			Form.sltCoverageAmt1.selectedIndex = 0;
			Form.healthDD1.focus();
			Form.healthDD1.select();
			return false;
		}
		if(Form.healthMM1.value == "MM")
		{
			alert("Please enter the Month of birth of the person to be insured");
			Form.sltCoverageAmt1.selectedIndex = 0;
			Form.healthMM1.focus();
			Form.healthMM1.select();
			return false;
		}
		if(Form.healthYYYY1.value == "YYYY")
		{
			alert("Please enter the Year of birth of the person to be insured");
			Form.sltCoverageAmt1.selectedIndex = 0;
			Form.healthYYYY1.focus();
			Form.healthYYYY1.select();
			return false;
		}

				var datedd = Form.healthDD1.value;
				var datemm = Form.healthMM1.value;
				var dateyy = Form.healthYYYY1.value;
				
				var finaldob = datedd+"/"+datemm+"/"+dateyy;
//				alert(finaldob);

				var dob = finaldob;
				var sptdob = new Array();
				sptdob = dob.split('/');
				var dt = new Date();
				var y  = dt.getFullYear();
			//	var y  = 2006;
				var m = dt.getMonth();
				
		
				
				run(datedd,datemm,dateyy);
				totage = custage;
				totdays = mindays;
				//alert(custage+" "+totage);
				//alert(totdays+" "+mindays);
				//alert(parseInt(totdays%365)+" " +totage);

				var pan = Form.sltCoverageAmt1.options[Form.sltCoverageAmt1.selectedIndex].value;

				if((totdays>=91) && (totage<19) && (pan=="1 Lakh"))
				{
					Form.txtPRAmt.value = "1141";
				}else if((totage>=19) && (totage<=45) && (pan=="1 Lakh"))
				{
					Form.txtPRAmt.value = "1745";
				}else if((totage>=46) && (totage<=60) && (pan=="1 Lakh"))
				{
					Form.txtPRAmt.value = "2568";
				}else if((totage>=61) && (totage<=75) && (pan=="1 Lakh"))
				{
					Form.txtPRAmt.value = "3487";
				}else if((totdays>=91) && (totage<19) && (pan=="2 Lakhs"))
				{
					Form.txtPRAmt.value = "1781";
				}else if((totage>=19) && (totage<=45) && (pan=="2 Lakhs"))
				{
					Form.txtPRAmt.value = "3015";
				}else if((totage>=46) && (totage<=60) && (pan=="2 Lakhs"))
				{
					Form.txtPRAmt.value = "4560";
				}else if((totage>=61) && (totage<=75) && (pan=="2 Lakhs"))
				{
					Form.txtPRAmt.value = "6540";
				}else if((totdays>=91) && (totage<19) && (pan=="3 Lakhs"))
				{
					Form.txtPRAmt.value = "2428";
				}else if((totage>=19) && (totage<=45) && (pan=="3 Lakhs"))
				{
					Form.txtPRAmt.value = "4101";
				}else if((totage>=46) && (totage<=60) && (pan=="3 Lakhs"))
				{
					Form.txtPRAmt.value = "6401";
				}else if((totage>=61) && (totage<=75) && (pan=="3 Lakhs"))
				{
					Form.txtPRAmt.value = "9343";
				}else if((totdays>=91) && (totage<19) && (pan=="4 Lakhs"))
				{
					Form.txtPRAmt.value = "3194";
				}else if((totage>=19) && (totage<=45) && (pan=="4 Lakhs"))
				{
					Form.txtPRAmt.value = "5428";
				}else if((totage>=46) && (totage<=60) && (pan=="4 Lakhs"))
				{
					Form.txtPRAmt.value = "8492";
				}else if((totage>=61) && (totage<=75) && (pan=="4 Lakhs"))
				{
					Form.txtPRAmt.value = "12435";
				}else if((totdays>=91) && (totage<19) && (pan=="5 Lakhs"))
				{
					Form.txtPRAmt.value = "3962";
				}else if((totage>=19) && (totage<=45) && (pan=="5 Lakhs"))
				{
					Form.txtPRAmt.value = "6754";
				}else if((totage>=46) && (totage<=60) && (pan=="5 Lakhs"))
				{
					Form.txtPRAmt.value = "10583";
				}else if((totage>=61) && (totage<=75) && (pan=="5 Lakhs"))
				{
					Form.txtPRAmt.value = "15523";
				}
				hidediscount();
	
}else if(option1 == "2")
{
		if(Form.sltCoverageAmt1.selectedIndex == 0)
		{
			Form.txtPRAmt.value = "";
		}
		if(Form.sltCoverageAmt2.selectedIndex == 0)
		{
			Form.txtPRAmt.value = "";
		}

		var datedd = Form.healthDD1.value;
		var datemm = Form.healthMM1.value;
		var dateyy = Form.healthYYYY1.value;
		
		var finaldob = datedd+"/"+datemm+"/"+dateyy;
//		alert(finaldob);

		var dob = finaldob;
		var sptdob = new Array();
		sptdob = dob.split('/');
		var dt = new Date();
		var y  = dt.getFullYear();
		var m = dt.getMonth();
		
			run(datedd,datemm,dateyy);
			totage = custage;
			totdays = mindays;
			//alert(custage+" "+totage);
			//alert(totdays+" "+mindays);

			var pan = Form.sltCoverageAmt1.options[Form.sltCoverageAmt1.selectedIndex].value;
			var pre = 0;

				if((totdays>=91) && (totage<=18) && (pan=="1 Lakh"))
				{
					pre = "1141";
				}else if((totage>=19) && (totage<=45) && (pan=="1 Lakh"))
				{
					pre = "1745";
				}else if((totage>=46) && (totage<=60) && (pan=="1 Lakh"))
				{
					pre = "2568";
				}else if((totage>=61) && (totage<=75) && (pan=="1 Lakh"))
				{
					pre = "3487";
				}else if((totdays>=91) && (totage<=18) && (pan=="2 Lakhs"))
				{
					pre = "1781";
				}else if((totage>=19) && (totage<=45) && (pan=="2 Lakhs"))
				{
					pre = "3015";
				}else if((totage>=46) && (totage<=60) && (pan=="2 Lakhs"))
				{
					pre = "4560";
				}else if((totage>=61) && (totage<=75) && (pan=="2 Lakhs"))
				{
					pre = "6540";
				}else if((totdays>=91) && (totage<=18) && (pan=="3 Lakhs"))
				{
					pre = "2428";
				}else if((totage>=19) && (totage<=45) && (pan=="3 Lakhs"))
				{
					pre = "4101";
				}else if((totage>=46) && (totage<=60) && (pan=="3 Lakhs"))
				{
					pre = "6401";
				}else if((totage>=61) && (totage<=75) && (pan=="3 Lakhs"))
				{
					pre = "9343";
				}else if((totdays>=91) && (totage<=18) && (pan=="4 Lakhs"))
				{
					pre = "3194";
				}else if((totage>=19) && (totage<=45) && (pan=="4 Lakhs"))
				{
					pre = "5428";
				}else if((totage>=46) && (totage<=60) && (pan=="4 Lakhs"))
				{
					pre = "8492";
				}else if((totage>=61) && (totage<=75) && (pan=="4 Lakhs"))
				{
					pre = "12435";
				}else if((totdays>=91) && (totage<=18) && (pan=="5 Lakhs"))
				{
					pre = "3962";
				}else if((totage>=19) && (totage<=45) && (pan=="5 Lakhs"))
				{
					pre = "6754";
				}else if((totage>=46) && (totage<=60) && (pan=="5 Lakhs"))
				{
					pre = "10583";
				}else if((totage>=61) && (totage<=75) && (pan=="5 Lakhs"))
				{
					pre = "15523";
				}
			
			//	alert("PRE 1 - "+pre);

			var datedd2 = Form.healthDD2.value;
			var datemm2 = Form.healthMM2.value;
			var dateyy2 = Form.healthYYYY2.value;
				
			var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);

			var dob2 = finaldob2;
			var sptdob2 = new Array();
			sptdob2 = dob2.split('/');
			var dt2 = new Date();
			var y2  = dt2.getFullYear();
			var m2 = dt2.getMonth();

			run(datedd2,datemm2,dateyy2);
			totage2 = custage;
			totdays2 = mindays;
		
	//TOTAL PREMIUM AMOUNT 2

				var pre2 = 0;
				var pan2 = Form.sltCoverageAmt2.options[Form.sltCoverageAmt2.selectedIndex].value;

				if((totdays2>=91) && (totage2<=18) && (pan2=="1 Lakh"))
				{
					pre2 = "1141";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="1 Lakh"))
				{
					pre2 = "1745";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="1 Lakh"))
				{
					pre2 = "2568";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="1 Lakh"))
				{
					pre2 = "3487";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="2 Lakhs"))
				{
					pre2 = "1781";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="2 Lakhs"))
				{
					pre2 = "3015";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="2 Lakhs"))
				{
					pre2 = "4560";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="2 Lakhs"))
				{
					pre2 = "6540";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="3 Lakhs"))
				{
					pre2 = "2428";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="3 Lakhs"))
				{
					pre2 = "4101";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="3 Lakhs"))
				{
					pre2 = "6401";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="3 Lakhs"))
				{
					pre2 = "9343";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="4 Lakhs"))
				{
					pre2 = "3194";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="4 Lakhs"))
				{
					pre2 = "5428";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="4 Lakhs"))
				{
					pre2 = "8492";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="4 Lakhs"))
				{
					pre2 = "12435";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="5 Lakhs"))
				{
					pre2 = "3962";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="5 Lakhs"))
				{
					pre2 = "6754";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="5 Lakhs"))
				{
					pre2 = "10583";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="5 Lakhs"))
				{
					pre2 = "15523";
				}

				if(Form.sltCoverageAmt2.selectedIndex != 0)
				{
					var totpre = parseInt(pre)+parseInt(pre2);
	//				alert("PRE1 = " +pre);
	//				alert("PRE2 = " +pre2);
	//				alert("Total = "+totpre);
				//	Form.txtPRAmt.value = totpre.toFixed(2);
					Form.txtPRAmt.value = Math.round(totpre);
				}
				hidediscount();

		}else if(option1 == "3")
		{
			
			if(Form.sltCoverageAmt1.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt2.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			
			if(Form.sltCoverageAmt3.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}

			var datedd = Form.healthDD1.value;
			var datemm = Form.healthMM1.value;
			var dateyy = Form.healthYYYY1.value;
			
			var finaldob = datedd+"/"+datemm+"/"+dateyy;
	//		alert(finaldob);

			var dob = finaldob;
			var sptdob = new Array();
			sptdob = dob.split('/');
			var dt = new Date();
			var y  = dt.getFullYear();
			var m = dt.getMonth();

			run(datedd,datemm,dateyy);
			totage = custage;
			totdays = mindays;

			var pan = Form.sltCoverageAmt1.options[Form.sltCoverageAmt1.selectedIndex].value;
			var pre = 0;

				if((totdays>=91) && (totage<=18) && (pan=="1 Lakh"))
				{
					pre = "1141";
				}else if((totage>=19) && (totage<=45) && (pan=="1 Lakh"))
				{
					pre = "1745";
				}else if((totage>=46) && (totage<=60) && (pan=="1 Lakh"))
				{
					pre = "2568";
				}else if((totage>=61) && (totage<=75) && (pan=="1 Lakh"))
				{
					pre = "3487";
				}else if((totdays>=91) && (totage<=18) && (pan=="2 Lakhs"))
				{
					pre = "1781";
				}else if((totage>=19) && (totage<=45) && (pan=="2 Lakhs"))
				{
					pre = "3015";
				}else if((totage>=46) && (totage<=60) && (pan=="2 Lakhs"))
				{
					pre = "4560";
				}else if((totage>=61) && (totage<=75) && (pan=="2 Lakhs"))
				{
					pre = "6540";
				}else if((totdays>=91) && (totage<=18) && (pan=="3 Lakhs"))
				{
					pre = "2428";
				}else if((totage>=19) && (totage<=45) && (pan=="3 Lakhs"))
				{
					pre = "4101";
				}else if((totage>=46) && (totage<=60) && (pan=="3 Lakhs"))
				{
					pre = "6401";
				}else if((totage>=61) && (totage<=75) && (pan=="3 Lakhs"))
				{
					pre = "9343";
				}else if((totdays>=91) && (totage<=18) && (pan=="4 Lakhs"))
				{
					pre = "3194";
				}else if((totage>=19) && (totage<=45) && (pan=="4 Lakhs"))
				{
					pre = "5428";
				}else if((totage>=46) && (totage<=60) && (pan=="4 Lakhs"))
				{
					pre = "8492";
				}else if((totage>=61) && (totage<=75) && (pan=="4 Lakhs"))
				{
					pre = "12435";
				}else if((totdays>=91) && (totage<=18) && (pan=="5 Lakhs"))
				{
					pre = "3962";
				}else if((totage>=19) && (totage<=45) && (pan=="5 Lakhs"))
				{
					pre = "6754";
				}else if((totage>=46) && (totage<=60) && (pan=="5 Lakhs"))
				{
					pre = "10583";
				}else if((totage>=61) && (totage<=75) && (pan=="5 Lakhs"))
				{
					pre = "15523";
				}
			
			//	alert("PRE 1 - "+pre);

			var datedd2 = Form.healthDD2.value;
			var datemm2 = Form.healthMM2.value;
			var dateyy2 = Form.healthYYYY2.value;
				
			var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);

			var dob2 = finaldob2;
			var sptdob2 = new Array();
			sptdob2 = dob2.split('/');
			var dt2 = new Date();
			var y2  = dt2.getFullYear();
			var m2 = dt2.getMonth();
		
			run(datedd2,datemm2,dateyy2);
			totage2 = custage;
			totdays2 = mindays;

	//TOTAL PREMIUM AMOUNT 2

				var pre2 = 0;
				var pan2 = Form.sltCoverageAmt2.options[Form.sltCoverageAmt2.selectedIndex].value;

				if((totdays2>=91) && (totage2<=18) && (pan2=="1 Lakh"))
				{
					pre2 = "1141";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="1 Lakh"))
				{
					pre2 = "1745";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="1 Lakh"))
				{
					pre2 = "2568";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="1 Lakh"))
				{
					pre2 = "3487";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="2 Lakhs"))
				{
					pre2 = "1781";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="2 Lakhs"))
				{
					pre2 = "3015";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="2 Lakhs"))
				{
					pre2 = "4560";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="2 Lakhs"))
				{
					pre2 = "6540";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="3 Lakhs"))
				{
					pre2 = "2428";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="3 Lakhs"))
				{
					pre2 = "4101";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="3 Lakhs"))
				{
					pre2 = "6401";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="3 Lakhs"))
				{
					pre2 = "9343";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="4 Lakhs"))
				{
					pre2 = "3194";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="4 Lakhs"))
				{
					pre2 = "5428";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="4 Lakhs"))
				{
					pre2 = "8492";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="4 Lakhs"))
				{
					pre2 = "12435";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="5 Lakhs"))
				{
					pre2 = "3962";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="5 Lakhs"))
				{
					pre2 = "6754";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="5 Lakhs"))
				{
					pre2 = "10583";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="5 Lakhs"))
				{
					pre2 = "15523";
				}
				

				var datedd3 = Form.healthDD3.value;
				var datemm3 = Form.healthMM3.value;
				var dateyy3 = Form.healthYYYY3.value;
				
				var finaldob3 = datedd3+"/"+datemm3+"/"+dateyy3;
//				alert(finaldob3);


			
			
				var dob3 = finaldob3;
				var sptdob3 = new Array();
				sptdob3 = dob3.split('/');
				var dt3 = new Date();
				var y3  = dt3.getFullYear();
				var m3 = dt3.getMonth();
			
				run(datedd3,datemm3,dateyy3);
			totage3 = custage;
			totdays3 = mindays;


	//TOTAL PREMIUM AMOUNT 3

				var pre3 = 0;
				var pan3 = Form.sltCoverageAmt3.options[Form.sltCoverageAmt3.selectedIndex].value;

				if((totdays3>=91) && (totage3<=18) && (pan3=="1 Lakh"))
				{
					pre3 = "1141";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="1 Lakh"))
				{
					pre3 = "1745";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="1 Lakh"))
				{
					pre3 = "2568";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="1 Lakh"))
				{
					pre3 = "3487";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="2 Lakhs"))
				{
					pre3 = "1781";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="2 Lakhs"))
				{
					pre3 = "3015";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="2 Lakhs"))
				{
					pre3 = "4560";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="2 Lakhs"))
				{
					pre3 = "6540";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="3 Lakhs"))
				{
					pre3 = "2428";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="3 Lakhs"))
				{
					pre3 = "4101";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="3 Lakhs"))
				{
					pre3 = "6401";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="3 Lakhs"))
				{
					pre3 = "9343";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="4 Lakhs"))
				{
					pre3 = "3194";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="4 Lakhs"))
				{
					pre3 = "5428";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="4 Lakhs"))
				{
					pre3 = "8492";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="4 Lakhs"))
				{
					pre3 = "12435";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="5 Lakhs"))
				{
					pre3 = "3962";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="5 Lakhs"))
				{
					pre3 = "6754";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="5 Lakhs"))
				{
					pre3 = "10583";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="5 Lakhs"))
				{
					pre3 = "15523";
				}

//				alert("Pre 3"+pre3);
				
				if (Form.sltCoverageAmt3.selectedIndex != 0)
				{
				
					var totpre = parseInt(pre)+parseInt(pre2)+parseInt(pre3);
					var discount = totpre*0.9;
				//	alert("PRE1 = " +pre);
				//	alert("PRE2 = " +pre2);
				//	alert("Total = "+totpre);
				//	Form.txtPRAmt.value = discount.toFixed(2);	
					Form.txtPRAmt.value = Math.round(discount);
					showdiscount();
				}
		
		}else if(option1 == "4")
		{
			if(Form.sltCoverageAmt1.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt2.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt3.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt4.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}

			var datedd = Form.healthDD1.value;
			var datemm = Form.healthMM1.value;
			var dateyy = Form.healthYYYY1.value;
			
			var finaldob = datedd+"/"+datemm+"/"+dateyy;
	//		alert(finaldob);

			var dob = finaldob;
			var sptdob = new Array();
			sptdob = dob.split('/');
			var dt = new Date();
			var y  = dt.getFullYear();
			var m = dt.getMonth();
			
			run(datedd,datemm,dateyy);
			totage = custage;
			totdays = mindays;

			var pan = Form.sltCoverageAmt1.options[Form.sltCoverageAmt1.selectedIndex].value;
			var pre = 0;

				if((totdays>=91) && (totage<=18) && (pan=="1 Lakh"))
				{
					pre = "1141";
				}else if((totage>=19) && (totage<=45) && (pan=="1 Lakh"))
				{
					pre = "1745";
				}else if((totage>=46) && (totage<=60) && (pan=="1 Lakh"))
				{
					pre = "2568";
				}else if((totage>=61) && (totage<=75) && (pan=="1 Lakh"))
				{
					pre = "3487";
				}else if((totdays>=91) && (totage<=18) && (pan=="2 Lakhs"))
				{
					pre = "1781";
				}else if((totage>=19) && (totage<=45) && (pan=="2 Lakhs"))
				{
					pre = "3015";
				}else if((totage>=46) && (totage<=60) && (pan=="2 Lakhs"))
				{
					pre = "4560";
				}else if((totage>=61) && (totage<=75) && (pan=="2 Lakhs"))
				{
					pre = "6540";
				}else if((totdays>=91) && (totage<=18) && (pan=="3 Lakhs"))
				{
					pre = "2428";
				}else if((totage>=19) && (totage<=45) && (pan=="3 Lakhs"))
				{
					pre = "4101";
				}else if((totage>=46) && (totage<=60) && (pan=="3 Lakhs"))
				{
					pre = "6401";
				}else if((totage>=61) && (totage<=75) && (pan=="3 Lakhs"))
				{
					pre = "9343";
				}else if((totdays>=91) && (totage<=18) && (pan=="4 Lakhs"))
				{
					pre = "3194";
				}else if((totage>=19) && (totage<=45) && (pan=="4 Lakhs"))
				{
					pre = "5428";
				}else if((totage>=46) && (totage<=60) && (pan=="4 Lakhs"))
				{
					pre = "8492";
				}else if((totage>=61) && (totage<=75) && (pan=="4 Lakhs"))
				{
					pre = "12435";
				}else if((totdays>=91) && (totage<=18) && (pan=="5 Lakhs"))
				{
					pre = "3962";
				}else if((totage>=19) && (totage<=45) && (pan=="5 Lakhs"))
				{
					pre = "6754";
				}else if((totage>=46) && (totage<=60) && (pan=="5 Lakhs"))
				{
					pre = "10583";
				}else if((totage>=61) && (totage<=75) && (pan=="5 Lakhs"))
				{
					pre = "15523";
				}
			
		//		alert("PRE 1 - "+pre);

			var datedd2 = Form.healthDD2.value;
			var datemm2 = Form.healthMM2.value;
			var dateyy2 = Form.healthYYYY2.value;
				
			var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);

			var dob2 = finaldob2;
			var sptdob2 = new Array();
			sptdob2 = dob2.split('/');
			var dt2 = new Date();
			var y2  = dt2.getFullYear();
			var m2 = dt2.getMonth();
			
			run(datedd2,datemm2,dateyy2);
			totage2 = custage;
			totdays2 = mindays;
		
	//TOTAL PREMIUM AMOUNT 2

				var pre2 = 0;
				var pan2 = Form.sltCoverageAmt2.options[Form.sltCoverageAmt2.selectedIndex].value;

				if((totdays2>=91) && (totage2<=18) && (pan2=="1 Lakh"))
				{
					pre2 = "1141";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="1 Lakh"))
				{
					pre2 = "1745";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="1 Lakh"))
				{
					pre2 = "2568";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="1 Lakh"))
				{
					pre2 = "3487";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="2 Lakhs"))
				{
					pre2 = "1781";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="2 Lakhs"))
				{
					pre2 = "3015";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="2 Lakhs"))
				{
					pre2 = "4560";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="2 Lakhs"))
				{
					pre2 = "6540";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="3 Lakhs"))
				{
					pre2 = "2428";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="3 Lakhs"))
				{
					pre2 = "4101";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="3 Lakhs"))
				{
					pre2 = "6401";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="3 Lakhs"))
				{
					pre2 = "9343";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="4 Lakhs"))
				{
					pre2 = "3194";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="4 Lakhs"))
				{
					pre2 = "5428";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="4 Lakhs"))
				{
					pre2 = "8492";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="4 Lakhs"))
				{
					pre2 = "12435";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="5 Lakhs"))
				{
					pre2 = "3962";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="5 Lakhs"))
				{
					pre2 = "6754";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="5 Lakhs"))
				{
					pre2 = "10583";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="5 Lakhs"))
				{
					pre2 = "15523";
				}
				
			//	alert("Pre 2"+pre2);

				var datedd3 = Form.healthDD3.value;
				var datemm3 = Form.healthMM3.value;
				var dateyy3 = Form.healthYYYY3.value;
				
				var finaldob3 = datedd3+"/"+datemm3+"/"+dateyy3;
//				alert(finaldob3);

				var dob3 = finaldob3;
				var sptdob3 = new Array();
				sptdob3 = dob3.split('/');
				var dt3 = new Date();
				var y3  = dt3.getFullYear();
				var m3 = dt3.getMonth();
			
			run(datedd3,datemm3,dateyy3);
			totage3 = custage;
			totdays3 = mindays;

	//TOTAL PREMIUM AMOUNT 3

				var pre3 = 0;
				var pan3 = Form.sltCoverageAmt3.options[Form.sltCoverageAmt3.selectedIndex].value;

				if((totdays3>=91) && (totage3<=18) && (pan3=="1 Lakh"))
				{
					pre3 = "1141";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="1 Lakh"))
				{
					pre3 = "1745";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="1 Lakh"))
				{
					pre3 = "2568";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="1 Lakh"))
				{
					pre3 = "3487";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="2 Lakhs"))
				{
					pre3 = "1781";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="2 Lakhs"))
				{
					pre3 = "3015";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="2 Lakhs"))
				{
					pre3 = "4560";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="2 Lakhs"))
				{
					pre3 = "6540";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="3 Lakhs"))
				{
					pre3 = "2428";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="3 Lakhs"))
				{
					pre3 = "4101";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="3 Lakhs"))
				{
					pre3 = "6401";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="3 Lakhs"))
				{
					pre3 = "9343";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="4 Lakhs"))
				{
					pre3 = "3194";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="4 Lakhs"))
				{
					pre3 = "5428";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="4 Lakhs"))
				{
					pre3 = "8492";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="4 Lakhs"))
				{
					pre3 = "12435";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="5 Lakhs"))
				{
					pre3 = "3962";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="5 Lakhs"))
				{
					pre3 = "6754";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="5 Lakhs"))
				{
					pre3 = "10583";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="5 Lakhs"))
				{
					pre3 = "15523";
				}

			//	alert("Pre 3"+pre3);
				

				var datedd4 = Form.healthDD4.value;
				var datemm4 = Form.healthMM4.value;
				var dateyy4 = Form.healthYYYY4.value;
				
				var finaldob4 = datedd4+"/"+datemm4+"/"+dateyy4;
			//	alert(finaldob4);
			
				var dob4 = finaldob4;
				var sptdob4 = new Array();
				sptdob4 = dob3.split('/');
				var dt4 = new Date();
				var y4  = dt4.getFullYear();
				var m4 = dt4.getMonth();
			
				run(datedd4,datemm4,dateyy4);
				totage4 = custage;
				totdays4 = mindays;

					//TOTAL PREMIUM AMOUNT 4

				var pre4 = 0;
				var pan4 = Form.sltCoverageAmt4.options[Form.sltCoverageAmt4.selectedIndex].value;

				if((totdays4>=91) && (totage4<=18) && (pan4=="1 Lakh"))
				{
					pre4 = "1141";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="1 Lakh"))
				{
					pre4 = "1745";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="1 Lakh"))
				{
					pre4 = "2568";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="1 Lakh"))
				{
					pre4 = "3487";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="2 Lakhs"))
				{
					pre4 = "1781";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="2 Lakhs"))
				{
					pre4 = "3015";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="2 Lakhs"))
				{
					pre4 = "4560";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="2 Lakhs"))
				{
					pre4 = "6540";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="3 Lakhs"))
				{
					pre4 = "2428";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="3 Lakhs"))
				{
					pre4 = "4101";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="3 Lakhs"))
				{
					pre4 = "6401";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="3 Lakhs"))
				{
					pre4 = "9343";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="4 Lakhs"))
				{
					pre4 = "3194";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="4 Lakhs"))
				{
					pre4 = "5428";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="4 Lakhs"))
				{
					pre4 = "8492";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="4 Lakhs"))
				{
					pre4 = "12435";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="5 Lakhs"))
				{
					pre4 = "3962";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="5 Lakhs"))
				{
					pre4 = "6754";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="5 Lakhs"))
				{
					pre4 = "10583";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="5 Lakhs"))
				{
					pre4 = "15523";
				}

			//	alert("Pre 4"+pre4);
			
				if(Form.sltCoverageAmt4.selectedIndex != 0)
				{

					var totpre = parseInt(pre)+parseInt(pre2)+parseInt(pre3)+parseInt(pre4);
					var discount = totpre*0.9;
				//	alert("PRE1 = " +pre);
				//	alert("PRE2 = " +pre2);
				//	alert("PRE3 = " +pre3);
				//	alert("PRE4 = " +pre4);
				//	alert("Total = "+totpre);
				//	Form.txtPRAmt.value = discount.toFixed(2);	
					Form.txtPRAmt.value = Math.round(discount);
					showdiscount();

				}
		}else if(option1 == "5")
		{
			
			if(Form.sltCoverageAmt1.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt2.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt3.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt4.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}
			if(Form.sltCoverageAmt5.selectedIndex == 0)
			{
				Form.txtPRAmt.value = "";
			}

			var datedd = Form.healthDD1.value;
			var datemm = Form.healthMM1.value;
			var dateyy = Form.healthYYYY1.value;
			
			var finaldob = datedd+"/"+datemm+"/"+dateyy;
	//		alert(finaldob);

			var dob = finaldob;
			var sptdob = new Array();
			sptdob = dob.split('/');
			var dt = new Date();
			var y  = dt.getFullYear();
			var m = dt.getMonth();

			run(datedd,datemm,dateyy);
			totage = custage;
			totdays = mindays;

			var pan = Form.sltCoverageAmt1.options[Form.sltCoverageAmt1.selectedIndex].value;
			var pre = 0;

				if((totdays>=91) && (totage<=18) && (pan=="1 Lakh"))
				{
					pre = "1141";
				}else if((totage>=19) && (totage<=45) && (pan=="1 Lakh"))
				{
					pre = "1745";
				}else if((totage>=46) && (totage<=60) && (pan=="1 Lakh"))
				{
					pre = "2568";
				}else if((totage>=61) && (totage<=75) && (pan=="1 Lakh"))
				{
					pre = "3487";
				}else if((totdays>=91) && (totage<=18) && (pan=="2 Lakhs"))
				{
					pre = "1781";
				}else if((totage>=19) && (totage<=45) && (pan=="2 Lakhs"))
				{
					pre = "3015";
				}else if((totage>=46) && (totage<=60) && (pan=="2 Lakhs"))
				{
					pre = "4560";
				}else if((totage>=61) && (totage<=75) && (pan=="2 Lakhs"))
				{
					pre = "6540";
				}else if((totdays>=91) && (totage<=18) && (pan=="3 Lakhs"))
				{
					pre = "2428";
				}else if((totage>=19) && (totage<=45) && (pan=="3 Lakhs"))
				{
					pre = "4101";
				}else if((totage>=46) && (totage<=60) && (pan=="3 Lakhs"))
				{
					pre = "6401";
				}else if((totage>=61) && (totage<=75) && (pan=="3 Lakhs"))
				{
					pre = "9343";
				}else if((totdays>=91) && (totage<=18) && (pan=="4 Lakhs"))
				{
					pre = "3194";
				}else if((totage>=19) && (totage<=45) && (pan=="4 Lakhs"))
				{
					pre = "5428";
				}else if((totage>=46) && (totage<=60) && (pan=="4 Lakhs"))
				{
					pre = "8492";
				}else if((totage>=61) && (totage<=75) && (pan=="4 Lakhs"))
				{
					pre = "12435";
				}else if((totdays>=91) && (totage<=18) && (pan=="5 Lakhs"))
				{
					pre = "3962";
				}else if((totage>=19) && (totage<=45) && (pan=="5 Lakhs"))
				{
					pre = "6754";
				}else if((totage>=46) && (totage<=60) && (pan=="5 Lakhs"))
				{
					pre = "10583";
				}else if((totage>=61) && (totage<=75) && (pan=="5 Lakhs"))
				{
					pre = "15523";
				}
			
			//	alert("PRE 1 - "+pre);

			var datedd2 = Form.healthDD2.value;
			var datemm2 = Form.healthMM2.value;
			var dateyy2 = Form.healthYYYY2.value;
				
			var finaldob2 = datedd2+"/"+datemm2+"/"+dateyy2;
			//	alert(finaldob2);

			var dob2 = finaldob2;
			var sptdob2 = new Array();
			sptdob2 = dob2.split('/');
			var dt2 = new Date();
			var y2  = dt2.getFullYear();
			var m2 = dt2.getMonth();
			
			run(datedd2,datemm2,dateyy2);
			totage2 = custage;
			totdays2 = mindays;
		
	//TOTAL PREMIUM AMOUNT 2

				var pre2 = 0;
				var pan2 = Form.sltCoverageAmt2.options[Form.sltCoverageAmt2.selectedIndex].value;

				if((totdays2>=91) && (totage2<=18) && (pan2=="1 Lakh"))
				{
					pre2 = "1141";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="1 Lakh"))
				{
					pre2 = "1745";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="1 Lakh"))
				{
					pre2 = "2568";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="1 Lakh"))
				{
					pre2 = "3487";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="2 Lakhs"))
				{
					pre2 = "1781";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="2 Lakhs"))
				{
					pre2 = "3015";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="2 Lakhs"))
				{
					pre2 = "4560";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="2 Lakhs"))
				{
					pre2 = "6540";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="3 Lakhs"))
				{
					pre2 = "2428";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="3 Lakhs"))
				{
					pre2 = "4101";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="3 Lakhs"))
				{
					pre2 = "6401";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="3 Lakhs"))
				{
					pre2 = "9343";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="4 Lakhs"))
				{
					pre2 = "3194";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="4 Lakhs"))
				{
					pre2 = "5428";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="4 Lakhs"))
				{
					pre2 = "8492";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="4 Lakhs"))
				{
					pre2 = "12435";
				}else if((totdays2>=91) && (totage2<=18) && (pan2=="5 Lakhs"))
				{
					pre2 = "3962";
				}else if((totage2>=19) && (totage2<=45) && (pan2=="5 Lakhs"))
				{
					pre2 = "6754";
				}else if((totage2>=46) && (totage2<=60) && (pan2=="5 Lakhs"))
				{
					pre2 = "10583";
				}else if((totage2>=61) && (totage2<=75) && (pan2=="5 Lakhs"))
				{
					pre2 = "15523";
				}
				

				var datedd3 = Form.healthDD3.value;
				var datemm3 = Form.healthMM3.value;
				var dateyy3 = Form.healthYYYY3.value;
				
				var finaldob3 = datedd3+"/"+datemm3+"/"+dateyy3;
//				alert(finaldob3);

				var dob3 = finaldob3;
				var sptdob3 = new Array();
				sptdob3 = dob3.split('/');
				var dt3 = new Date();
				var y3  = dt3.getFullYear();
				var m3 = dt3.getMonth();

				run(datedd3,datemm3,dateyy3);
				totage3 = custage;
				totdays3 = mindays;


	//TOTAL PREMIUM AMOUNT 3

				var pre3 = 0;
				var pan3 = Form.sltCoverageAmt3.options[Form.sltCoverageAmt3.selectedIndex].value;

				if((totdays3>=91) && (totage3<=18) && (pan3=="1 Lakh"))
				{
					pre3 = "1141";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="1 Lakh"))
				{
					pre3 = "1745";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="1 Lakh"))
				{
					pre3 = "2568";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="1 Lakh"))
				{
					pre3 = "3487";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="2 Lakhs"))
				{
					pre3 = "1781";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="2 Lakhs"))
				{
					pre3 = "3015";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="2 Lakhs"))
				{
					pre3 = "4560";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="2 Lakhs"))
				{
					pre3 = "6540";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="3 Lakhs"))
				{
					pre3 = "2428";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="3 Lakhs"))
				{
					pre3 = "4101";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="3 Lakhs"))
				{
					pre3 = "6401";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="3 Lakhs"))
				{
					pre3 = "9343";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="4 Lakhs"))
				{
					pre3 = "3194";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="4 Lakhs"))
				{
					pre3 = "5428";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="4 Lakhs"))
				{
					pre3 = "8492";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="4 Lakhs"))
				{
					pre3 = "12435";
				}else if((totdays3>=91) && (totage3<=18) && (pan3=="5 Lakhs"))
				{
					pre3 = "3962";
				}else if((totage3>=19) && (totage3<=45) && (pan3=="5 Lakhs"))
				{
					pre3 = "6754";
				}else if((totage3>=46) && (totage3<=60) && (pan3=="5 Lakhs"))
				{
					pre3 = "10583";
				}else if((totage3>=61) && (totage3<=75) && (pan3=="5 Lakhs"))
				{
					pre3 = "15523";
				}

//				alert("Pre 3"+pre3);
				

				var datedd4 = Form.healthDD4.value;
				var datemm4 = Form.healthMM4.value;
				var dateyy4 = Form.healthYYYY4.value;
				
				var finaldob4 = datedd4+"/"+datemm4+"/"+dateyy4;
			//	alert(finaldob4);

				var dob4 = finaldob4;
				var sptdob4 = new Array();
				sptdob4 = dob3.split('/');
				var dt4 = new Date();
				var y4  = dt4.getFullYear();
				var m4 = dt4.getMonth();

				run(datedd4,datemm4,dateyy4);
				totage4 = custage;
				totdays4 = mindays;

					//TOTAL PREMIUM AMOUNT 4

				var pre4 = 0;
				var pan4 = Form.sltCoverageAmt4.options[Form.sltCoverageAmt4.selectedIndex].value;

				if((totdays4>=91) && (totage4<=18) && (pan4=="1 Lakh"))
				{
					pre4 = "1141";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="1 Lakh"))
				{
					pre4 = "1745";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="1 Lakh"))
				{
					pre4 = "2568";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="1 Lakh"))
				{
					pre4 = "3487";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="2 Lakhs"))
				{
					pre4 = "1781";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="2 Lakhs"))
				{
					pre4 = "3015";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="2 Lakhs"))
				{
					pre4 = "4560";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="2 Lakhs"))
				{
					pre4 = "6540";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="3 Lakhs"))
				{
					pre4 = "2428";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="3 Lakhs"))
				{
					pre4 = "4101";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="3 Lakhs"))
				{
					pre4 = "6401";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="3 Lakhs"))
				{
					pre4 = "9343";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="4 Lakhs"))
				{
					pre4 = "3194";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="4 Lakhs"))
				{
					pre4 = "5428";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="4 Lakhs"))
				{
					pre4 = "8492";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="4 Lakhs"))
				{
					pre4 = "12435";
				}else if((totdays4>=91) && (totage4<=18) && (pan4=="5 Lakhs"))
				{
					pre4 = "3962";
				}else if((totage4>=19) && (totage4<=45) && (pan4=="5 Lakhs"))
				{
					pre4 = "6754";
				}else if((totage4>=46) && (totage4<=60) && (pan4=="5 Lakhs"))
				{
					pre4 = "10583";
				}else if((totage4>=61) && (totage4<=75) && (pan4=="5 Lakhs"))
				{
					pre4 = "15523";
				}

//				alert("Pre 4"+pre4);

			var datedd5 = Form.healthDD5.value;
				var datemm5 = Form.healthMM5.value;
				var dateyy5 = Form.healthYYYY5.value;
				
				var finaldob5 = datedd5+"/"+datemm5+"/"+dateyy5;

				var dob5 = finaldob5;
				var sptdob5 = new Array();
				sptdob5 = dob5.split('/');
				var dt5 = new Date();
				var y5  = dt5.getFullYear();
				var m5 = dt5.getMonth();

				run(datedd5,datemm5,dateyy5);
				totage5 = custage;
				totdays5 = mindays;

						//TOTAL PREMIUM AMOUNT 5

				var pre5 = 0;
				var pan5 = Form.sltCoverageAmt5.options[Form.sltCoverageAmt5.selectedIndex].value;

				if((totdays4>=91) && (totage5<=18) && (pan5=="1 Lakh"))
				{
					pre5 = "1141";
				}else if((totage5>=19) && (totage5<=45) && (pan5=="1 Lakh"))
				{
					pre5 = "1745";
				}else if((totage5>=46) && (totage5<=60) && (pan5=="1 Lakh"))
				{
					pre5 = "2568";
				}else if((totage5>=61) && (totage5<=75) && (pan5=="1 Lakh"))
				{
					pre5 = "3487";
				}else if((totdays4>=91) && (totage5<=18) && (pan5=="2 Lakhs"))
				{
					pre5 = "1781";
				}else if((totage5>=19) && (totage5<=45) && (pan5=="2 Lakhs"))
				{
					pre5 = "3015";
				}else if((totage5>=46) && (totage5<=60) && (pan5=="2 Lakhs"))
				{
					pre5 = "4560";
				}else if((totage5>=61) && (totage5<=75) && (pan5=="2 Lakhs"))
				{
					pre5 = "6540";
				}else if((totdays4>=91) && (totage5<=18) && (pan5=="3 Lakhs"))
				{
					pre5 = "2428";
				}else if((totage5>=19) && (totage5<=45) && (pan5=="3 Lakhs"))
				{
					pre5 = "4101";
				}else if((totage5>=46) && (totage5<=60) && (pan5=="3 Lakhs"))
				{
					pre5 = "6401";
				}else if((totage5>=61) && (totage5<=75) && (pan5=="3 Lakhs"))
				{
					pre5 = "9343";
				}else if((totdays4>=91) && (totage5<=18) && (pan5=="4 Lakhs"))
				{
					pre5 = "3194";
				}else if((totage5>=19) && (totage5<=45) && (pan5=="4 Lakhs"))
				{
					pre5 = "5428";
				}else if((totage5>=46) && (totage5<=60) && (pan5=="4 Lakhs"))
				{
					pre5 = "8492";
				}else if((totage5>=61) && (totage5<=75) && (pan5=="4 Lakhs"))
				{
					pre5 = "12435";
				}else if((totdays4>=91) && (totage5<=18) && (pan5=="5 Lakhs"))
				{
					pre5 = "3962";
				}else if((totage5>=19) && (totage5<=45) && (pan5=="5 Lakhs"))
				{
					pre5 = "6754";
				}else if((totage5>=46) && (totage5<=60) && (pan5=="5 Lakhs"))
				{
					pre5 = "10583";
				}else if((totage5>=61) && (totage5<=75) && (pan5=="5 Lakhs"))
				{
					pre5 = "15523";
				}

//				alert("Pre 5"+pre5);
				
				if(Form.sltCoverageAmt5.selectedIndex != 0)
				{

					var totpre = parseInt(pre)+parseInt(pre2)+parseInt(pre3)+parseInt(pre4)+parseInt(pre5);
					var discount = totpre*0.9;
				//	alert("PRE1 = " +pre);
				//	alert("PRE2 = " +pre2);
				//	alert("Total = "+totpre);
				//	Form.txtPRAmt.value = discount.toFixed(2);	
					Form.txtPRAmt.value = Math.round(discount);
					showdiscount();
				}
		}
	
	}
function clear_illness()
	{
		var persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;
		if(persons == 2)
		{
			if(document.form1.ct2[0].checked == true)
			{
				document.form1.ct2[0].checked = false;
			}
		}
		if(persons == 3)
		{
			if(document.form1.ct2[0].checked == true)
			{
				document.form1.ct2[0].checked = false;
			}
			if(document.form1.ct3[0].checked == true)
			{
				document.form1.ct3[0].checked = false;
			}
		}
		if(persons == 4)
		{
			if(document.form1.ct2[0].checked == true)
			{
				document.form1.ct2[0].checked = false;
			}
			if(document.form1.ct3[0].checked == true)
			{
				document.form1.ct3[0].checked = false;
			}
			if(document.form1.ct4[0].checked == true)
			{
				document.form1.ct4[0].checked = false;
			}
		}
		if(persons == 5)
		{
			if(document.form1.ct2[0].checked == true)
			{
				document.form1.ct2[0].checked = false;
			}
			if(document.form1.ct3[0].checked == true)
			{
				document.form1.ct3[0].checked = false;
			}
			if(document.form1.ct4[0].checked == true)
			{
				document.form1.ct4[0].checked = false;
			}
			if(document.form1.ct5[0].checked == true)
			{
				document.form1.ct5[0].checked = false;
			}
		}
	}
	
	function clear_illness2()
	{
		var persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;
		if(persons == 3)
		{
			if(document.form1.ct3[0].checked == true)
			{
				document.form1.ct3[0].checked = false;
			}
		}
		if(persons == 4)
		{
			if(document.form1.ct3[0].checked == true)
			{
				document.form1.ct3[0].checked = false;
			}
			if(document.form1.ct4[0].checked == true)
			{
				document.form1.ct4[0].checked = false;
			}
		}
		if(persons == 5)
		{
			if(document.form1.ct3[0].checked == true)
			{
				document.form1.ct3[0].checked = false;
			}
			if(document.form1.ct4[0].checked == true)
			{
				document.form1.ct4[0].checked = false;
			}
			if(document.form1.ct5[0].checked == true)
			{
				document.form1.ct5[0].checked = false;
			}
		}
	}
	function clear_illness3()
	{
		var persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;
		if(persons == 4)
		{
			if(document.form1.ct4[0].checked == true)
			{
				document.form1.ct4[0].checked = false;
			}
		}
		if(persons == 5)
		{
			if(document.form1.ct4[0].checked == true)
			{
				document.form1.ct4[0].checked = false;
			}
			if(document.form1.ct5[0].checked == true)
			{
				document.form1.ct5[0].checked = false;
			}
		}
	}

	function clear_illness4()
	{
		var persons = document.form1.sltPersons.options[document.form1.sltPersons.selectedIndex].value;
		if(persons == 5)
		{
			if(document.form1.ct5[0].checked == true)
			{
				document.form1.ct5[0].checked = false;
			}
		}
	}

function CMR_table1()
	{
		if((document.form1.ct1[0].checked == true))
		{
			alert("Sorry, we can only process online applications for individuals, who have not had any previous illnesses/conditions. You can however continue to purchase the product for the rest of your family.");
			hide_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 3)
			{
				three_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_disable();
			}
			return false;
		}
		
		if(document.form1.ct1[1].checked == true)
		{
			show_image();
				
			if(document.form1.sltPersons.selectedIndex == 1)
			{	
				one_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 3)
			{
				three_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_enable();
			}
			return false;
		}

	}

	function CMR_table2()
	{
		if((document.form1.ct2[0].checked == true))
		{
			alert("Sorry, we can only process online applications for individuals, who have not had any previous illnesses/conditions. You can however continue to purchase the product for the rest of your family.");
			hide_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 3)
			{	
				three_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_disable();
			}

			return false;
		}
		if(document.form1.ct2[1].checked == true)
		{
			show_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 3)
			{
				three_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_enable();
			}

			return false;
		}
	}

	function CMR_table3()
	{
		if((document.form1.ct3[0].checked == true))
		{
			alert("Sorry, we can only process online applications for individuals, who have not had any previous illnesses/conditions. You can however continue to purchase the product for the rest of your family.");
			hide_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_disable();
			}
			if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_disable();
			}
			if(document.form1.sltPersons.selectedIndex == 3)
			{	
				three_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_disable();
			}

			return false;
		}
		if(document.form1.ct3[1].checked == true)
		{
			show_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 3)
			{
				three_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_enable();
			}
			return false;
		}
	}
	
	function CMR_table4()
	{
		if((document.form1.ct4[0].checked == true))
		{
			alert("Sorry, we can only process online applications for individuals, who have not had any previous illnesses/conditions. You can however continue to purchase the product for the rest of your family.");
			hide_image();
	
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_disable();
			}
			if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_disable();
			}
			if(document.form1.sltPersons.selectedIndex == 3)
			{	
				three_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_disable();
			}

			return false;
		}
		if(document.form1.ct1[1].checked == true)
		{
			show_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 3)
			{
				three_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_enable();
			}
			return false;
		}
	}

	function CMR_table5()
	{
		if((document.form1.ct5[0].checked == true))
		{
			alert("Sorry, we can only process online applications for individuals, who have not had any previous illnesses/conditions. You can however continue to purchase the product for the rest of your family.");
			hide_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_disable();
			}
			if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_disable();
			}
			if(document.form1.sltPersons.selectedIndex == 3)
			{	
				three_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_disable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_disable();
			}
			return false;
		}
		if(document.form1.ct1[1].checked == true)
		{
			show_image();
			if(document.form1.sltPersons.selectedIndex == 1)
			{
				one_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 2)
			{
				two_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 3)
			{
				three_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 4)
			{
				four_enable();
			}
			else if(document.form1.sltPersons.selectedIndex == 5)
			{
				five_enable();
			}
			return false;
		}
	}
	
	function one_disable()
	{
		document.form1.sltCoverageAmt1.disabled = true;
		document.form1.txtPRAmt.disabled = true;
		document.form1.ch1.disabled = true;
		document.form1.ch2.disabled = true;
	}

	function two_disable()
	{
		if(document.form1.ct1[0].checked == true)
		{
			document.form1.sltInsure2.disabled = true;
			document.form1.txtNameHealth2.disabled = true;
			document.form1.sltGender2.disabled = true;
			document.form1.healthDD2.disabled = true;
			document.form1.healthMM2.disabled = true;
			document.form1.healthYYYY2.disabled = true;
			document.form1.sltCoverageAmt2.disabled = true;
			document.form1.ct2[0].disabled = true;
			document.form1.ct2[1].disabled = true;

			document.form1.sltCoverageAmt1.disabled = true;
			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct2[0].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = true;
			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
	}

	function three_disable()
	{
		if(document.form1.ct1[0].checked == true)
		{
			document.form1.sltCoverageAmt1.disabled = true;

			document.form1.sltInsure2.disabled = true;
			document.form1.txtNameHealth2.disabled = true;
			document.form1.sltGender2.disabled = true;
			document.form1.healthDD2.disabled = true;
			document.form1.healthMM2.disabled = true;
			document.form1.healthYYYY2.disabled = true;
			document.form1.sltCoverageAmt2.disabled = true;
			document.form1.ct2[0].disabled = true;
			document.form1.ct2[1].disabled = true;

			document.form1.sltInsure3.disabled = true;
			document.form1.txtNameHealth3.disabled = true;
			document.form1.sltGender3.disabled = true;
			document.form1.healthDD3.disabled = true;
			document.form1.healthMM3.disabled = true;
			document.form1.healthYYYY3.disabled = true;
			document.form1.sltCoverageAmt3.disabled = true;
			document.form1.ct3[0].disabled = true;
			document.form1.ct3[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
			//document.form1.agr[0].disabled = true;
			//document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct2[0].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = true;

			document.form1.sltInsure3.disabled = true;
			document.form1.txtNameHealth3.disabled = true;
			document.form1.sltGender3.disabled = true;
			document.form1.healthDD3.disabled = true;
			document.form1.healthMM3.disabled = true;
			document.form1.healthYYYY3.disabled = true;
			document.form1.sltCoverageAmt3.disabled = true;
			document.form1.ct3[0].disabled = true;
			document.form1.ct3[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct3[0].checked == true)
		{
			document.form1.sltCoverageAmt3.disabled = true;
			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
	}

	function four_disable()
	{
		if(document.form1.ct1[0].checked == true)
		{
			document.form1.sltCoverageAmt1.disabled = true;

			document.form1.sltInsure2.disabled = true;
			document.form1.txtNameHealth2.disabled = true;
			document.form1.sltGender2.disabled = true;
			document.form1.healthDD2.disabled = true;
			document.form1.healthMM2.disabled = true;
			document.form1.healthYYYY2.disabled = true;
			document.form1.sltCoverageAmt2.disabled = true;
			document.form1.ct2[0].disabled = true;
			document.form1.ct2[1].disabled = true;

			document.form1.sltInsure3.disabled = true;
			document.form1.txtNameHealth3.disabled = true;
			document.form1.sltGender3.disabled = true;
			document.form1.healthDD3.disabled = true;
			document.form1.healthMM3.disabled = true;
			document.form1.healthYYYY3.disabled = true;
			document.form1.sltCoverageAmt3.disabled = true;
			document.form1.ct3[0].disabled = true;
			document.form1.ct3[1].disabled = true;

			document.form1.sltInsure4.disabled = true;
			document.form1.txtNameHealth4.disabled = true;
			document.form1.sltGender4.disabled = true;
			document.form1.healthDD4.disabled = true;
			document.form1.healthMM4.disabled = true;
			document.form1.healthYYYY4.disabled = true;
			document.form1.sltCoverageAmt4.disabled = true;
			document.form1.ct4[0].disabled = true;
			document.form1.ct4[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct2[0].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = true;

			document.form1.sltInsure3.disabled = true;
			document.form1.txtNameHealth3.disabled = true;
			document.form1.sltGender3.disabled = true;
			document.form1.healthDD3.disabled = true;
			document.form1.healthMM3.disabled = true;
			document.form1.healthYYYY3.disabled = true;
			document.form1.sltCoverageAmt3.disabled = true;
			document.form1.ct3[0].disabled = true;
			document.form1.ct3[1].disabled = true;

			document.form1.sltInsure4.disabled = true;
			document.form1.txtNameHealth4.disabled = true;
			document.form1.sltGender4.disabled = true;
			document.form1.healthDD4.disabled = true;
			document.form1.healthMM4.disabled = true;
			document.form1.healthYYYY4.disabled = true;
			document.form1.sltCoverageAmt4.disabled = true;
			document.form1.ct4[0].disabled = true;
			document.form1.ct4[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct3[0].checked == true)
		{
			document.form1.sltCoverageAmt3.disabled = true;

			document.form1.sltInsure4.disabled = true;
			document.form1.txtNameHealth4.disabled = true;
			document.form1.sltGender4.disabled = true;
			document.form1.healthDD4.disabled = true;
			document.form1.healthMM4.disabled = true;
			document.form1.healthYYYY4.disabled = true;
			document.form1.sltCoverageAmt4.disabled = true;
			document.form1.ct4[0].disabled = true;
			document.form1.ct4[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct4[0].checked == true)
		{
			document.form1.sltCoverageAmt4.disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}

	}

	function five_disable()
	{
		if(document.form1.ct1[0].checked == true)
		{
			document.form1.sltCoverageAmt1.disabled = true;

			document.form1.sltInsure2.disabled = true;
			document.form1.txtNameHealth2.disabled = true;
			document.form1.sltGender2.disabled = true;
			document.form1.healthDD2.disabled = true;
			document.form1.healthMM2.disabled = true;
			document.form1.healthYYYY2.disabled = true;
			document.form1.sltCoverageAmt2.disabled = true;
			document.form1.ct2[0].disabled = true;
			document.form1.ct2[1].disabled = true;

			document.form1.sltInsure3.disabled = true;
			document.form1.txtNameHealth3.disabled = true;
			document.form1.sltGender3.disabled = true;
			document.form1.healthDD3.disabled = true;
			document.form1.healthMM3.disabled = true;
			document.form1.healthYYYY3.disabled = true;
			document.form1.sltCoverageAmt3.disabled = true;
			document.form1.ct3[0].disabled = true;
			document.form1.ct3[1].disabled = true;

			document.form1.sltInsure4.disabled = true;
			document.form1.txtNameHealth4.disabled = true;
			document.form1.sltGender4.disabled = true;
			document.form1.healthDD4.disabled = true;
			document.form1.healthMM4.disabled = true;
			document.form1.healthYYYY4.disabled = true;
			document.form1.sltCoverageAmt4.disabled = true;
			document.form1.ct4[0].disabled = true;
			document.form1.ct4[1].disabled = true;

			document.form1.sltInsure5.disabled = true;
			document.form1.txtNameHealth5.disabled = true;
			document.form1.sltGender5.disabled = true;
			document.form1.healthDD5.disabled = true;
			document.form1.healthMM5.disabled = true;
			document.form1.healthYYYY5.disabled = true;
			document.form1.sltCoverageAmt5.disabled = true;
			document.form1.ct5[0].disabled = true;
			document.form1.ct5[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct2[0].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = true;

			document.form1.sltInsure3.disabled = true;
			document.form1.txtNameHealth3.disabled = true;
			document.form1.sltGender3.disabled = true;
			document.form1.healthDD3.disabled = true;
			document.form1.healthMM3.disabled = true;
			document.form1.healthYYYY3.disabled = true;
			document.form1.sltCoverageAmt3.disabled = true;
			document.form1.ct3[0].disabled = true;
			document.form1.ct3[1].disabled = true;

			document.form1.sltInsure4.disabled = true;
			document.form1.txtNameHealth4.disabled = true;
			document.form1.sltGender4.disabled = true;
			document.form1.healthDD4.disabled = true;
			document.form1.healthMM4.disabled = true;
			document.form1.healthYYYY4.disabled = true;
			document.form1.sltCoverageAmt4.disabled = true;
			document.form1.ct4[0].disabled = true;
			document.form1.ct4[1].disabled = true;

			document.form1.sltInsure5.disabled = true;
			document.form1.txtNameHealth5.disabled = true;
			document.form1.sltGender5.disabled = true;
			document.form1.healthDD5.disabled = true;
			document.form1.healthMM5.disabled = true;
			document.form1.healthYYYY5.disabled = true;
			document.form1.sltCoverageAmt5.disabled = true;
			document.form1.ct5[0].disabled = true;
			document.form1.ct5[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct3[0].checked == true)
		{

			document.form1.sltCoverageAmt3.disabled = true;

			document.form1.sltInsure4.disabled = true;
			document.form1.txtNameHealth4.disabled = true;
			document.form1.sltGender4.disabled = true;
			document.form1.healthDD4.disabled = true;
			document.form1.healthMM4.disabled = true;
			document.form1.healthYYYY4.disabled = true;
			document.form1.sltCoverageAmt4.disabled = true;
			document.form1.ct4[0].disabled = true;
			document.form1.ct4[1].disabled = true;

			document.form1.sltInsure5.disabled = true;
			document.form1.txtNameHealth5.disabled = true;
			document.form1.sltGender5.disabled = true;
			document.form1.healthDD5.disabled = true;
			document.form1.healthMM5.disabled = true;
			document.form1.healthYYYY5.disabled = true;
			document.form1.sltCoverageAmt5.disabled = true;
			document.form1.ct5[0].disabled = true;
			document.form1.ct5[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}
		else if(document.form1.ct4[0].checked == true)
		{
			document.form1.sltCoverageAmt4.disabled = true;

			document.form1.sltInsure5.disabled = true;
			document.form1.txtNameHealth5.disabled = true;
			document.form1.sltGender5.disabled = true;
			document.form1.healthDD5.disabled = true;
			document.form1.healthMM5.disabled = true;
			document.form1.healthYYYY5.disabled = true;
			document.form1.sltCoverageAmt5.disabled = true;
			document.form1.ct5[0].disabled = true;
			document.form1.ct5[1].disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
		//	document.form1.agr[0].disabled = true;
		//	document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}

		else if(document.form1.ct5[0].checked == true)
		{
			document.form1.sltCoverageAmt5.disabled = true;

			document.form1.txtPRAmt.disabled = true;
			document.form1.ch1[0].disabled = true;
			document.form1.ch1[1].disabled = true;
			//document.form1.agr[0].disabled = true;
			//document.form1.agr[1].disabled = true;
			document.form1.ch2.disabled = true;
		}

	}

	function one_enable()
	{
		document.form1.sltCoverageAmt1.disabled = false;
		document.form1.txtPRAmt.disabled = false;
		document.form1.ch1[0].disabled = false;
		document.form1.ch1[1].disabled = false;
	//	document.form1.agr[0].disabled = false;
	//	document.form1.agr[1].disabled = false;
		document.form1.ch2.disabled = false;
	}

	function two_enable()
	{
		if(document.form1.ct1[1].checked == true)
		{
			document.form1.sltCoverageAmt1.disabled = false;

			document.form1.sltInsure2.disabled = false;
			document.form1.txtNameHealth2.disabled = false;
			document.form1.sltGender2.disabled = false;
			document.form1.healthDD2.disabled = false;
			document.form1.healthMM2.disabled = false;
			document.form1.healthYYYY2.disabled = false;
			document.form1.sltCoverageAmt2.disabled = false;
			document.form1.ct2[0].disabled = false;
			document.form1.ct2[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}
		else if(document.form1.ct2[1].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}
	}

	function three_enable()
	{
		if(document.form1.ct1[1].checked == true)
		{
			document.form1.sltCoverageAmt1.disabled = false;

			document.form1.sltInsure2.disabled = false;
			document.form1.txtNameHealth2.disabled = false;
			document.form1.sltGender2.disabled = false;
			document.form1.healthDD2.disabled = false;
			document.form1.healthMM2.disabled = false;
			document.form1.healthYYYY2.disabled = false;
			document.form1.sltCoverageAmt2.disabled = false;
			document.form1.ct2[0].disabled = false;
			document.form1.ct2[1].disabled = false;

			document.form1.sltInsure3.disabled = false;
			document.form1.txtNameHealth3.disabled = false;
			document.form1.sltGender3.disabled = false;
			document.form1.healthDD3.disabled = false;
			document.form1.healthMM3.disabled = false;
			document.form1.healthYYYY3.disabled = false;
			document.form1.sltCoverageAmt3.disabled = false;
			document.form1.ct3[0].disabled = false;
			document.form1.ct3[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
	
		}
		else if(document.form1.ct2[1].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = false;

			document.form1.sltInsure3.disabled = false;
			document.form1.txtNameHealth3.disabled = false;
			document.form1.sltGender3.disabled = false;
			document.form1.healthDD3.disabled = false;
			document.form1.healthMM3.disabled = false;
			document.form1.healthYYYY3.disabled = false;
			document.form1.sltCoverageAmt3.disabled = false;
			document.form1.ct3[0].disabled = false;
			document.form1.ct3[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
	
		}
		else if(document.form1.ct3[1].checked == true)
		{
			document.form1.sltCoverageAmt3.disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}
	}

	function four_enable()
	{
		if(document.form1.ct1[1].checked == true)
		{
			document.form1.sltCoverageAmt1.disabled = false;

			document.form1.sltInsure2.disabled = false;
			document.form1.txtNameHealth2.disabled = false;
			document.form1.sltGender2.disabled = false;
			document.form1.healthDD2.disabled = false;
			document.form1.healthMM2.disabled = false;
			document.form1.healthYYYY2.disabled = false;
			document.form1.sltCoverageAmt2.disabled = false;
			document.form1.ct2[0].disabled = false;
			document.form1.ct2[1].disabled = false;

			document.form1.sltInsure3.disabled = false;
			document.form1.txtNameHealth3.disabled = false;
			document.form1.sltGender3.disabled = false;
			document.form1.healthDD3.disabled = false;
			document.form1.healthMM3.disabled = false;
			document.form1.healthYYYY3.disabled = false;
			document.form1.sltCoverageAmt3.disabled = false;
			document.form1.ct3[0].disabled = false;
			document.form1.ct3[1].disabled = false;

			document.form1.sltInsure4.disabled = false;
			document.form1.txtNameHealth4.disabled = false;
			document.form1.sltGender4.disabled = false;
			document.form1.healthDD4.disabled = false;
			document.form1.healthMM4.disabled = false;
			document.form1.healthYYYY4.disabled = false;
			document.form1.sltCoverageAmt4.disabled = false;
			document.form1.ct4[0].disabled = false;
			document.form1.ct4[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}
		else if(document.form1.ct2[1].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = false;

			document.form1.sltInsure3.disabled = false;
			document.form1.txtNameHealth3.disabled = false;
			document.form1.sltGender3.disabled = false;
			document.form1.healthDD3.disabled = false;
			document.form1.healthMM3.disabled = false;
			document.form1.healthYYYY3.disabled = false;
			document.form1.sltCoverageAmt3.disabled = false;
			document.form1.ct3[0].disabled = false;
			document.form1.ct3[1].disabled = false;

			document.form1.sltInsure4.disabled = false;
			document.form1.txtNameHealth4.disabled = false;
			document.form1.sltGender4.disabled = false;
			document.form1.healthDD4.disabled = false;
			document.form1.healthMM4.disabled = false;
			document.form1.healthYYYY4.disabled = false;
			document.form1.sltCoverageAmt4.disabled = false;
			document.form1.ct4[0].disabled = false;
			document.form1.ct4[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
	
		}
		else if(document.form1.ct3[1].checked == true)
		{

			document.form1.sltCoverageAmt3.disabled = false;

			document.form1.sltInsure4.disabled = false;
			document.form1.txtNameHealth4.disabled = false;
			document.form1.sltGender4.disabled = false;
			document.form1.healthDD4.disabled = false;
			document.form1.healthMM4.disabled = false;
			document.form1.healthYYYY4.disabled = false;
			document.form1.sltCoverageAmt4.disabled = false;
			document.form1.ct4[0].disabled = false;
			document.form1.ct4[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}
		else if(document.form1.ct4[1].checked == true)
		{
			document.form1.sltCoverageAmt4.disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		}

	}

	function five_enable()
	{
		if(document.form1.ct1[1].checked == true)
		{
			document.form1.sltCoverageAmt1.disabled = false;

			document.form1.sltInsure2.disabled = false;
			document.form1.txtNameHealth2.disabled = false;
			document.form1.sltGender2.disabled = false;
			document.form1.healthDD2.disabled = false;
			document.form1.healthMM2.disabled = false;
			document.form1.healthYYYY2.disabled = false;
			document.form1.sltCoverageAmt2.disabled = false;
			document.form1.ct2[0].disabled = false;
			document.form1.ct2[1].disabled = false;

			document.form1.sltInsure3.disabled = false;
			document.form1.txtNameHealth3.disabled = false;
			document.form1.sltGender3.disabled = false;
			document.form1.healthDD3.disabled = false;
			document.form1.healthMM3.disabled = false;
			document.form1.healthYYYY3.disabled = false;
			document.form1.sltCoverageAmt3.disabled = false;
			document.form1.ct3[0].disabled = false;
			document.form1.ct3[1].disabled = false;

			document.form1.sltInsure4.disabled = false;
			document.form1.txtNameHealth4.disabled = false;
			document.form1.sltGender4.disabled = false;
			document.form1.healthDD4.disabled = false;
			document.form1.healthMM4.disabled = false;
			document.form1.healthYYYY4.disabled = false;
			document.form1.sltCoverageAmt4.disabled = false;
			document.form1.ct4[0].disabled = false;
			document.form1.ct4[1].disabled = false;

			document.form1.sltInsure5.disabled = false;
			document.form1.txtNameHealth5.disabled = false;
			document.form1.sltGender5.disabled = false;
			document.form1.healthDD5.disabled = false;
			document.form1.healthMM5.disabled = false;
			document.form1.healthYYYY5.disabled = false;
			document.form1.sltCoverageAmt5.disabled = false;
			document.form1.ct5[0].disabled = false;
			document.form1.ct5[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}
		else if(document.form1.ct2[1].checked == true)
		{
			document.form1.sltCoverageAmt2.disabled = false;

			document.form1.sltInsure3.disabled = false;
			document.form1.txtNameHealth3.disabled = false;
			document.form1.sltGender3.disabled = false;
			document.form1.healthDD3.disabled = false;
			document.form1.healthMM3.disabled = false;
			document.form1.healthYYYY3.disabled = false;
			document.form1.sltCoverageAmt3.disabled = false;
			document.form1.ct3[0].disabled = false;
			document.form1.ct3[1].disabled = false;

			document.form1.sltInsure4.disabled = false;
			document.form1.txtNameHealth4.disabled = false;
			document.form1.sltGender4.disabled = false;
			document.form1.healthDD4.disabled = false;
			document.form1.healthMM4.disabled = false;
			document.form1.healthYYYY4.disabled = false;
			document.form1.sltCoverageAmt4.disabled = false;
			document.form1.ct4[0].disabled = false;
			document.form1.ct4[1].disabled = false;

			document.form1.sltInsure5.disabled = false;
			document.form1.txtNameHealth5.disabled = false;
			document.form1.sltGender5.disabled = false;
			document.form1.healthDD5.disabled = false;
			document.form1.healthMM5.disabled = false;
			document.form1.healthYYYY5.disabled = false;
			document.form1.sltCoverageAmt5.disabled = false;
			document.form1.ct5[0].disabled = false;
			document.form1.ct5[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}
		else if(document.form1.ct3[1].checked == true)
		{
			document.form1.sltCoverageAmt3.disabled = false;

			document.form1.sltInsure4.disabled = false;
			document.form1.txtNameHealth4.disabled = false;
			document.form1.sltGender4.disabled = false;
			document.form1.healthDD4.disabled = false;
			document.form1.healthMM4.disabled = false;
			document.form1.healthYYYY4.disabled = false;
			document.form1.sltCoverageAmt4.disabled = false;
			document.form1.ct4[0].disabled = false;
			document.form1.ct4[1].disabled = false;

			document.form1.sltInsure5.disabled = false;
			document.form1.txtNameHealth5.disabled = false;
			document.form1.sltGender5.disabled = false;
			document.form1.healthDD5.disabled = false;
			document.form1.healthMM5.disabled = false;
			document.form1.healthYYYY5.disabled = false;
			document.form1.sltCoverageAmt5.disabled = false;
			document.form1.ct5[0].disabled = false;
			document.form1.ct5[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
	
		}
		else if(document.form1.ct4[1].checked == true)
		{
			document.form1.sltCoverageAmt4.disabled = false;

			document.form1.sltInsure5.disabled = false;
			document.form1.txtNameHealth5.disabled = false;
			document.form1.sltGender5.disabled = false;
			document.form1.healthDD5.disabled = false;
			document.form1.healthMM5.disabled = false;
			document.form1.healthYYYY5.disabled = false;
			document.form1.sltCoverageAmt5.disabled = false;
			document.form1.ct5[0].disabled = false;
			document.form1.ct5[1].disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}

		else if(document.form1.ct5[1].checked == true)
		{
			document.form1.sltCoverageAmt5.disabled = false;

			document.form1.txtPRAmt.disabled = false;
			document.form1.ch1[0].disabled = false;
			document.form1.ch1[1].disabled = false;
		//	document.form1.agr[0].disabled = false;
		//	document.form1.agr[1].disabled = false;
			document.form1.ch2.disabled = false;
		
		}

	}
	function check_flag()
	{
		if(document.form1.txtflag.value == "0")
		{
			alert("Please click on the link 'Declaration / Disclaimer. Read it completely and give us your acceptance to proceed.");
			document.form1.ch1[0].checked = false;
			document.form1.ch1[1].checked = false;
			document.form1.ch2.checked = '';
			return false;
		}
		/*if(document.form1.ch1.checked == false)
		{
					alert("Please click on the check box of 'Declaration / Disclaimer to confirm your acceptance.");
					Form.ch1.focus();
					return false;
		}*/
	}

	function check_renew(Form)
	{
		if(Form.ch2.checked == false)
		{
			var answer = confirm ("Since you have not chosen the automatic renewal option, you would have to renew it manually every year!")
			if (answer)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
	}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}