function findInsuranceSubType() {
var totOptions = "";

if (insuranceType=="0") {
subTypeInsurance = new Array ("Select Insurance Sub Type")
var totOptions = "";
	for (i=0;i<subTypeInsurance.length;i++)
		{
		totOptions = totOptions + "<option value='" + subTypeInsurance[i] + "'>" + subTypeInsurance[i] + "</option>"
		}
		document.getElementById("categoryInsurance").innerHTML = "<select width='167' name='insurance_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}
	
if (insuranceType=="1") {

subTypeInsurance = new Array ("Select Insurance Sub Type","Annuity","Children plan","Endowment","Money back","Retirement","Term plans","Unit linked","Woman insurance")
var totOptions = "";
	for (i=0;i<subTypeInsurance.length;i++)
		{
		totOptions = totOptions + "<option value='" + subTypeInsurance[i] + "'>" + subTypeInsurance[i] + "</option>"
		}
		document.getElementById("categoryInsurance").innerHTML = "<select width='167' name='insurance_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}

if (insuranceType=="2") {

subTypeInsurance = new Array ("Select Insurance Sub Type","Critical Medicare","House holder","Mediclaim","Motor insurance","Personal accident","Student","Travel","Others")
var totOptions = "";
	for (i=0;i<subTypeInsurance.length;i++)
		{
		totOptions = totOptions + "<option value='" + subTypeInsurance[i] + "'>" + subTypeInsurance[i] + "</option>"
		}
		document.getElementById("categoryInsurance").innerHTML = "<select width='167' name='insurance_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}

if (insuranceType=="3") {

subTypeInsurance = new Array ("Select Insurance Sub Type","Burglary policy","Business","Fire insurance","Industrial insurance","Motor insurance","Travel","Others")
var totOptions = "";
	for (i=0;i<subTypeInsurance.length;i++)
		{
		totOptions = totOptions + "<option value='" + subTypeInsurance[i] + "'>" + subTypeInsurance[i] + "</option>"
		}
		document.getElementById("categoryInsurance").innerHTML = "<select width='167' name='insurance_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}

if (insuranceType=="4") {

subTypeInsurance = new Array ("Select Insurance Sub Type","Carrier's liability","Directors & officers liability","Employer's liability policy","Extended warranty","Insurance broker's liability","Liability insurance act","Lift (third party)","Professional indemnity","Products liability","Public liability only","Stock broker's liability","Workmen compensation")
var totOptions = "";
	for (i=0;i<subTypeInsurance.length;i++)
		{
		totOptions = totOptions + "<option value='" + subTypeInsurance[i] + "'>" + subTypeInsurance[i] + "</option>"
		}
		document.getElementById("categoryInsurance").innerHTML = "<select width='167' name='insurance_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}

	
}

function findInsuranceType() {
	insuranceType = document.getElementById("Insurance_type").selectedIndex;
	findInsuranceSubType();
}
