function findInvestmentType()
{
	val1=document.getElementById("investment_type");
	investmentType = val1.options[val1.selectedIndex].value;
	findInvestmentSubType();
}

function findInvestmentSubType()
{
	var totOptions = "";
	
	if (investmentType=="")
	{
		subTypeInvestment = new Array ("Select a Investment Sub Type")
		var totOptions = "";
		
		for(i=0;i<subTypeInvestment.length;i++)
		{
			totOptions	=	totOptions	+ "<option value='" + subTypeInvestment[i] + "'>" + subTypeInvestment[i] + "</option>"
		}
		document.getElementById("categoryInvestment").innerHTML="<select width='167' name='investment_sub_type' class='TextBoxSmall'>" + totOptions +"</select>"
	
	}
	
	//Mutual Fund
	if(investmentType=="Mutual fund")
	{
		subTypeInvestment	=	new Array("Select a Investment Sub Type","Debt","Equity-diversified","Equity-sector specific","Equity-tax planning","Fixed maturity plan","Hybrid- debt/equity","Systematic investment plan","Systematic transfer plan")
		var totOptions="";
		
		for(i=0;i<subTypeInvestment.length;i++)
		{
			totOptions	=	totOptions	+	"<option value='" + subTypeInvestment[i] + "'>" +  subTypeInvestment[i] + "</option>"
		}
		document.getElementById("categoryInvestment").innerHTML="<select width='167' name='investment_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}
	
	if(investmentType=="Post office savings")
	{
		subTypeInvestment	=	new Array("Select a Investment Sub Type","Kisan vikas patra","Monthly income scheme","National saving certificate","National savings scheme","Post office saving","PPF","Recurring deposit","Senior citizen's scheme","Time deposit")
		var totOptions="";
		
		for(i=0;i<subTypeInvestment.length;i++)
		{
			totOptions	=	totOptions	+	"<option value='" + subTypeInvestment[i] + "'>" +  subTypeInvestment[i] + "</option>"
		}
		document.getElementById("categoryInvestment").innerHTML="<select width='167' name='investment_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}
	
	if(investmentType=="Fixed deposit-banks")
	{
		subTypeInvestment	=	new Array("Select a Investment Sub Type","Deposit reinvestment cert","FDR","Recurring deposit","Tax saving FD")
		var totOptions="";
		
		for(i=0;i<subTypeInvestment.length;i++)
		{
			totOptions	=	totOptions	+	"<option value='" + subTypeInvestment[i] + "'>" +  subTypeInvestment[i] + "</option>"
		}
		document.getElementById("categoryInvestment").innerHTML="<select width='167' name='investment_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}
	
	if(investmentType=="Fixed deposit-companies")
	{
		document.getElementById("categoryInvestment").innerHTML="<input type='textbox' name='investment_sub_type' value='Fixed deposit-companies' class='TextBoxSmall'>"
	}
	
	if(investmentType=="Shares")
	{
		document.getElementById("categoryInvestment").innerHTML="<input type='textbox' name='investment_sub_type' value='Shares' class='TextBoxSmall'>"
	}
	
	if(investmentType=="Gold")
	{
		document.getElementById("categoryInvestment").innerHTML="<input type='textbox' name='investment_sub_type' value='Gold' class='TextBoxSmall'>"
	}
	
	if(investmentType=="Property")
	{
		document.getElementById("categoryInvestment").innerHTML="<input type='textbox' name='investment_sub_type' value='Property' class='TextBoxSmall'>"
	}
	
	if(investmentType=="PPF")
	{
		document.getElementById("categoryInvestment").innerHTML="<input type='textbox' name='investment_sub_type' value='PPF' class='TextBoxSmall'>"
	}
	
	if(investmentType=="Others")
	{
		document.getElementById("categoryInvestment").innerHTML="<input type='textbox' name='investment_sub_type' value='Others' class='TextBoxSmall'>"
	}
	
	if(investmentType=="Government bonds")
	{
		subTypeInvestment	=	new Array("Select a Investment Sub Type","54EC-Capital Gains Bonds","8%GOI Taxable Bonds","Dated securities","Treasury bills")
		var totOptions="";
		
		for(i=0;i<subTypeInvestment.length;i++)
		{
			totOptions	=	totOptions	+	"<option value='" + subTypeInvestment[i] + "'>" +  subTypeInvestment[i] + "</option>"
		}
		document.getElementById("categoryInvestment").innerHTML="<select width='167' name='investment_sub_type' class='TextBoxSmall'>" + totOptions + "</select>"
	}
}