/* RHS Select a Product starts */

function addOption(selectbox,text,value )
	{
		var optn = document.createElement("OPTION");
		optn.text = text;
		optn.value = value;
		selectbox.options.add(optn);
	}
function fill_fund(th)
	{
		
		if(th=="equity")
		{		
		document.abc.Fund.options.length=9;
		document.abc.Fund.options[0]=new Option("Select Fund","Select Fund");
		document.abc.Fund.options[1]=new Option("Natural Resources & New Energy Fund","nrne_features.asp");
		document.abc.Fund.options[2]=new Option("Micro Cap Fund","micro_cap_features.asp");
		document.abc.Fund.options[3]=new Option("Equity Fund","equity_fund_features.asp");
		document.abc.Fund.options[4]=new Option("Top 100 Equity Fund","top_100_fund_features.asp");
		document.abc.Fund.options[5]=new Option("Opportunities Fund","opportunities_fund_features.asp");
		document.abc.Fund.options[6]=new Option("T.I.G.E.R. Fund","tiger_fund_features.asp");
		document.abc.Fund.options[7]=new Option("Technology.com Fund","technology_fund_features.asp");
		document.abc.Fund.options[8]=new Option("Small and Mid Cap Fund","small_mid_fund_features.asp");
		document.abc.Fund.options[9]=new Option("Tax Saver Fund","tax_saver_fund_features.asp");
		document.abc.Fund.options[10]=new Option("Focus 25 Fund","focus_25_fund_features.asp");

		}
		else if(th=="hybrid")
		{
		document.abc.Fund.options.length=0;
		addOption(document.abc.Fund, "Select Fund","Select Fund");
		addOption(document.abc.Fund, "Savings Manager  Fund Conservative","sp_conservative_features.asp");
		addOption(document.abc.Fund, "Savings Manager  Fund Moderate","sp_moderate_features.asp");
		addOption(document.abc.Fund, "Savings Manager  Fund Aggressive","sp_aggressive_features.asp");
		addOption(document.abc.Fund, "Balanced Fund","balance_fund_features.asp");		
		}
		else if(th=="fixed")
		{
		document.abc.Fund.options.length=0;
		addOption(document.abc.Fund, "Select Fund","Select Fund");
<!--		addOption(document.abc.Fund, "Cash Manager Fund","cash_fund_features.asp");-->
		addOption(document.abc.Fund, "Liquidity Fund","liquidity_fund_features.asp");
		addOption(document.abc.Fund, "Floating Rate Fund","floating_fund_features.asp");
		addOption(document.abc.Fund, "Money Manager Fund","liquid_plus_features.asp");
		addOption(document.abc.Fund, "Short Term Fund","short_term_features.asp");
		addOption(document.abc.Fund, "Bond Fund","bond_fund_features.asp");		
		addOption(document.abc.Fund, "Government Securities Fund","gov_sec_features.asp");
		addOption(document.abc.Fund, "Strategic Bond Fund","strategic_bond_features.asp");
		addOption(document.abc.Fund, "Treasury Bill Fund","teasury_bill_fund_features.asp");
		}
		
		else if(th=="funds")
		{
		document.abc.Fund.options.length=3;
		document.abc.Fund.options[0]=new Option("Select Fund","Select Fund");
		document.abc.Fund.options[1]=new Option("World Gold Fund","world_gold_features.asp");
		document.abc.Fund.options[2]=new Option("World Energy Fund","world_energy_features.asp");
		document.abc.Fund.options[3]=new Option("World Mining Fund","world_mining_features.asp");
		}
		else
		{
		document.abc.Fund.options.length=0;
		addOption(document.abc.Fund, "Select Fund","Select Fund");
		}
	}	
	function reder(ths)
	{
		location.href='/product/'+ths;
	}

function prd_rhs()
{
		document.write("<div class='callOutLitLg'>")
		document.write("<form name='abc' action='' method='post' class='form'>")
		document.write("<p class='rht_title'>Select a Product</p>")
		document.write("<select name='Scheme' class='select1' onchange='javascript:fill_fund(this.value);'>")
			document.write("<option selected>Select Scheme Type</option>")
			document.write("<option value='equity'>Equity Scheme</option>")
			document.write("<option value='hybrid'>Hybrid Scheme</option>")
			document.write("<option value='fixed'>Fixed Income Scheme</option>")
			document.write("<option value='funds'>Fund of Funds Schemes</option>")
		document.write("</select>")
		document.write("<p></p>")
		document.write("<select name='Fund' class='select1' onchange='javascript:reder(this.value)'>")
		document.write("<option>Select Scheme</option>")
		document.write("<option value='../product/equity_fund_features.asp'>Equity Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/opportunities_fund_features.asp'>Opportunities Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/top_100_fund_features.asp'> Top 100 Equity Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/tiger_fund_features.asp'>India T.I.G.E.R. Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/technology_fund_features.asp'>Technology.com Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/small_mid_fund_features.asp'>Small and Mid Cap Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/nrne_features.asp'>Natural resources and New Energy Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/world_gold_features.asp'>World Gold Fund &ndash; Regular Plan &ndash; Growth</option>")
		document.write("<option value='../product/tax_saver_fund_features.asp'>Tax Saver Fund &ndash; Growth</option>")
		document.write("<option value='../product/world_energy_features.asp'>World Energy Fund</option>")
		document.write("<option value='../product/balance_fund_features.asp'>Balanced Fund &ndash; Growth</option>")
		document.write("<option value='../product/bond_fund_features.asp'> Bond Fund &ndash; Growth</option>")
		document.write("<option value='../product/strategic_bond_features.asp'> Strategic Bond Fund – Regular Plan &ndash; Growth</option>")
				document.write("<option value='../product/teasury_bill_fund_features.asp'>Treasury Bill Fund</option>")
		document.write("<option value='../product/gov_sec_features.asp'>Government Securities Fund &ndash; Plan A &ndash; Growth</option>")
		document.write("<option value='../product/gov_sec_features.asp'>Government Securities Fund &ndash; Plan B &ndash; Growth</option>")
		document.write("<option value='../product/sp_aggressive_features.asp'>Savings Manager Fund &ndash; Aggressive &ndash; Growth</option>")
		document.write("<option value='../product/sp_moderate_features.asp'>Savings Manager Fund &ndash; Moderate &ndash; Growth</option>")
		document.write("<option value='../product/sp_conservative_features.asp'>Savings Manager Fund &ndash; Conservative &ndash; Growth</option>")
		
		document.write("</select>")
		document.write("<p></p>")
		document.write("</form>")
		document.write("</div>")
}
/* RHS Select a Product ends */

/* RHS Tools & Calculators starts */

/*function calculator()
{
	box = document.calc.RetnCalculator
	var val = box.options[box.selectedIndex].value;
	window.open(val);
}*/

function calculator(ths)
	{
		location.href=ths;
	}

function returns_calc()
{
	document.write("<div class='callOutLitLg'>")
	document.write("<form name='calc' action='' method='post' class='form'>")
		document.write("<p class='rht_title'>Tools &amp; Calculators</p>")
		document.write("<select class='select5' name='RetnCalculator' tabindex='14' onChange='calculator(this.value)'>")
			document.write("<option value=''>Please Select</option>")
			document.write("<option value='../performance/iframe_sip_calc.asp'>SIP</option>")
			document.write("<option value='../performance/iframe_swp_calc.asp'>SWP</option>")
			document.write("<option value='../performance/iframe_stp_calc.asp'>STP</option>")
			document.write("<option value='../performance/iframe_returns_calc.asp'>Returns Calculator</option>")
			document.write("<option value='../performance/iframe_return_snapshot.asp'>Return Snapshot</option>")
			document.write("<option value='../performance/iframe_perf_chart.asp'>Performance Snapshot</option>")
			document.write("<option value='../performance/iframe_goal_calc.asp'>Goal Planner</option>")
			document.write("<option value='../performance/iframe_future_calc.asp'>Future Value Of SIP</option>")
			document.write("<option value='../performance/iframe_retirement_calc.asp'>Retirement Planner</option>")
			//document.write("<option value='../performance/iframe_goal_calc.asp'>Goal Planner</option>")
			//document.write("<option value='../performance/iframe_future_calc.asp'>Future Value of SIP</option>")
			//document.write("<option value='../performance/iframe_retirement_calc.asp'>Retirement Planner</option>")
		document.write("</select>")
		document.write("<p></p>")
	document.write("</form>")
	document.write("</div>")
}

/* RHS Tools & Calculators ends */

/*function openDir(frm) 
{
	if(document.myform.cmbProduct.options[document.myform.cmbProduct.selectedIndex].value=="")
		{
			alert("Please choose a Product");
		}
	else
		{
			var pg = document.myform.cmbProduct.options[document.myform.cmbProduct.selectedIndex].value;
			document.location.href = pg;
		}
}*/