/*IPO menu List*/
function ChangePageIPO(mno) /// IPO Left Menu Function
{
	document.getElementById("href"+mno).className="MenuSubLink1";
	document.getElementById("img"+mno).src="../images/Arw3.gif";
	document.getElementById("sid"+mno).className="lmenuselect";

	for(var i=1; i<=8; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("href"+i).className="MenuSubLink";
			document.getElementById("img"+i).src="../images/Arw4.gif";
			document.getElementById("sid"+i).className="lmenu";
		}
	}

	if(mno == 1)
	{	var IPOPageUrl = "../IPO/ipodiary.asp?opt=2"; }
	else if (mno == 2)
	{	 var IPOPageUrl = "../IPO/ipodiary.asp?opt=1"; }
	else if (mno == 3)
	{	var IPOPageUrl = "../IPO/ipodiary.asp?opt=3"; }
	else if (mno == 4)
	{	var IPOPageUrl = "../IPO/NewListing.asp"; }
	else if (mno == 5)
	{	var IPOPageUrl = "../IPO/BA.asp"; }
	else if (mno == 6)
	{	var IPOPageUrl = "../IPO/draft.asp"; }
	else if (mno == 7)
	{	var IPOPageUrl = "../IPO/NewIssue.asp"; }
	else if (mno == 8)
	{	var IPOPageUrl = "../IPO/ipo_News.asp"; }

	document.getElementById("IPOInner").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('IPOInner',IPOPageUrl);
}

/*Commodity Menu List*/
function ChangePageCommodity(mno) 
{
	document.getElementById("href"+mno).className="MenuSubLink1";
	document.getElementById("img"+mno).src="../images/Arw3.gif";
	document.getElementById("sid"+mno).className="lmenuselect";

	for(var i=1; i<=11; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("href"+i).className="MenuSubLink";
			document.getElementById("img"+i).src="../images/Arw4.gif";
			document.getElementById("sid"+i).className="lmenu";
		}
	}

	if(mno == 1)
	{	var CommodityPageUrl = "../Commodity/Getquotes.asp?pageid=1"; }
	else if (mno == 2)
	{	var CommodityPageUrl = "../Commodity/TopGL.asp?pageid=2"; }
	else if (mno == 3)
	{	var CommodityPageUrl = "../Commodity/toptradval.asp?pageid=3"; }
	else if (mno == 4)
	{	var CommodityPageUrl = "../Commodity/advdec.asp?pageid=4"; }
	else if (mno == 5)
	{	var CommodityPageUrl = "../Commodity/closeprice.asp?pageid=5"; }
	else if (mno == 6)
	{	var CommodityPageUrl = "../Commodity/highlow.asp?PageName=WHI&pageid=6"; }
	else if (mno == 7)
	{	var CommodityPageUrl = "../Commodity/spotfuture.asp?pageid=7"; }
	else if (mno == 8)
	{	var CommodityPageUrl = "../Commodity/CommCharts.asp?pageid=8"; }
	else if (mno == 9)
	{	var CommodityPageUrl = "../Commodity/Comm_news.asp?pageid=9"; }
	else if (mno == 10)
	{	var CommodityPageUrl = "../Commodity/Commentary.asp?Period=pre&pageid=10"; }
	else if (mno == 11)
	{	var CommodityPageUrl = "../Commodity/toptradVolume.asp?pageid=11"; }
	//alert(CommodityPageUrl);
	document.getElementById("CommodityInner").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('CommodityInner',CommodityPageUrl);
}

/*Derivatives Menu List*/
function ChangePageDerivatives(mno) 
{
	document.getElementById("href"+mno).className="MenuSubLink1";
	document.getElementById("img"+mno).src="../images/Arw3.gif";
	document.getElementById("sid"+mno).className="lmenuselect";

	for(var i=1; i<=35; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("href"+i).className="MenuSubLink";
			document.getElementById("img"+i).src="../images/Arw4.gif";
			document.getElementById("sid"+i).className="lmenu";
		}
	}
	
	if(mno == 1)
	{	var DerivativesPageUrl = "../Derivatives/FoGetQselect.asp?pageid=1"; }
	else if (mno == 2)
	{	var DerivativesPageUrl = "../Derivatives/NiftyFut.asp?InstType=FUTIDX&symbol=nifty&pageid=2"; }
	else if (mno == 3)
	{	var DerivativesPageUrl = "../Derivatives/fomarketwatch.asp?SortOrder=TradedQty&pageid=3"; }
	else if (mno == 4)
	{	var DerivativesPageUrl = "../Derivatives/fomarketwatch.asp?SortOrder=Turnover&pageid=4"; }
	else if (mno == 5)
	{	var DerivativesPageUrl = "../Derivatives/fomarketwatch.asp?SortOrder=TradedQty&pageid=5&PageOpt=1"; }
	else if (mno == 6)
	{	var DerivativesPageUrl = "../Derivatives/fofiistat.asp?pageid=6"; }
	else if (mno == 7)
	{	var DerivativesPageUrl = "../Derivatives/foDlySetlmntPrice.asp?pageid=7"; }
	else if (mno == 8)
	{	var DerivativesPageUrl = "../Derivatives/foUnderlyings.asp?pageid=8"; }
	else if (mno == 9)
	{	var DerivativesPageUrl = "../Derivatives/foputcallratio.asp?pageid=9"; }
	//else if (mno == 10)
	//{	var DerivativesPageUrl = "../Derivatives/foMostActContract.asp?pageid=10&a=10"; }
	//else if (mno == 11)
	//{	var DerivativesPageUrl = "../Derivatives/fomostactcalls.asp?pageid=11&a=17"; }
	else if(mno == 12)
	{	var DerivativesPageUrl = "../Derivatives/BSECurrency.asp?pageid=12"; }
	else if(mno == 13)
	{	var DerivativesPageUrl = "../Derivatives/NSECurrency.asp?pageid=13"; }
	else if(mno == 14)
	{	var DerivativesPageUrl = "../Derivatives/MCXCurrency.asp?pageid=14"; }
	else if(mno == 15)
	{	var DerivativesPageUrl = "../Derivatives/deri_news.asp?pageid=15"; }
	else if(mno == 16)
	{	var DerivativesPageUrl = "../Derivatives/foMostActContract.asp?pageid=10&a=10"; }
	else if(mno == 17)
	{	var DerivativesPageUrl = "../Derivatives/fomostactcalls.asp?pageid=11&a=17"; }
	else if(mno == 18)
	{	var DerivativesPageUrl = "../Derivatives/fomostactputs.asp?pageid=11&a=18"; }
	else if(mno == 19)
	{	var DerivativesPageUrl = "../Derivatives/foAllIndex.asp?InstType=FUT&Sym=AIF&a=11"; }
	else if(mno == 20)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=G&a=12"; }
	else if(mno == 21)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=L&a=13"; }
	else if(mno == 22)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=HOI&a=14"; }
	else if(mno == 23)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=LOI&a=15"; }
	else if(mno == 24)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=IOI&a=16"; }
	else if(mno == 25)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=DOI&a=25"; }
	else if(mno == 26)
	{	var DerivativesPageUrl = "../Derivatives/PositionLimit.asp"; }
	else if(mno == 27)
	{	var DerivativesPageUrl = "../Derivatives/CostOfCarry.asp"; }
	else if(mno == 28)
	{	var DerivativesPageUrl = "../Derivatives/RollOver.asp"; }
	else if(mno == 29)
	{	var DerivativesPageUrl = "../Derivatives/ImpliedVolatility.asp"; }
	else if(mno == 30)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=IOIIPR&a=16"; }
	else if(mno == 31)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=IOIDPR&a=16"; }
	else if(mno == 32)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=DOIIPR&a=16"; }
	else if(mno == 33)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=DOIDPR&a=16"; }
	else if(mno == 34)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=IOIIPRIVOL&a=16"; }
	else if(mno == 35)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=IOIDPRIVOL&a=16"; }
	else if(mno == 10)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=DOIIPRIVOL&a=16"; }
	else if(mno == 11)
	{	var DerivativesPageUrl = "../Derivatives/fomktreport.asp?InstType=FUT&Sym=DOIDPRIVOL&a=16"; }

	document.getElementById("DerivativesInner").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('DerivativesInner',DerivativesPageUrl);
}

/*Profile Menu List*/
function ChangePageProfile(mno) /// Profile Menu Function
{
	document.getElementById("profhr"+mno).className="MenuSubLink1";
	document.getElementById("profimg"+mno).src="../images/Arw3.gif";
	document.getElementById("profsid"+mno).className="lmenuselect";

	for(var i=1; i<=20; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("profhr"+i).className="MenuSubLink";
			document.getElementById("profimg"+i).src="../images/Arw4.gif";
			document.getElementById("profsid"+i).className="lmenu";
		}
	}
	//var code = code;
	//alert(document.getElementById("QuotesCode").value);
	if(mno == 1)
	{	var Profilepage = "../Profile/companylist.asp?pageOpt=1&code="+document.getElementById("QuotesCode").value;	}
	else if(mno == 2)
	{	var Profilepage = "../Profile/profile.asp?pageOpt=2&code="+document.getElementById("QuotesCode").value;	
	}
	else if(mno == 3)
	{	var Profilepage = "../Profile/board.asp?pageOpt=3&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 4)
	{	var Profilepage = "../Profile/keyfinrat.asp?pageOpt=4&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 5)
	{	var Profilepage = "../Profile/Bshee.asp?pageOpt=5&opt=B&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 6)
	{	var Profilepage = "../Profile/Bshee.asp?pageOpt=6&opt=P&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 7)
	{	var Profilepage = "../Profile/Quarterly.asp?pageOpt=7&code="+document.getElementById("QuotesCode").value;}			
	else if(mno == 8)
	{	var Profilepage = "../Profile/scoreboard.asp?pageOpt=8&code="+document.getElementById("QuotesCode").value;}
	else if(mno == 9)
	{	var Profilepage = "../Profile/mfholding.asp?pageOpt=9&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 10)
	{	var Profilepage = "../Profile/shareprice.asp?pageOpt=10&code="+document.getElementById("QuotesCode").value;}			
	else if(mno == 11)
	{	var Profilepage = "../Profile/shareholding.asp?pageOpt=11&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 12)
	{	var Profilepage = "../Profile/newscapgeo.asp?pageOpt=12&Period=180&tab=5&code="+document.getElementById("QuotesCode").value;}	
	else if(mno == 13)
	{	var Profilepage = "../Profile/directors.asp?pageOpt=13&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 14)
	{	var Profilepage = "../Profile/cashflow.asp?pageOpt=14&code="+document.getElementById("QuotesCode").value;}	
	else if(mno == 15)
	{	var Profilepage = "../Profile/rawmat.asp?pageOpt=15&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 16)
	{   var Profilepage = "../Profile/finishedprd.asp?pageOpt=16&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 17)
	{	var Profilepage = "../Profile/param.asp?pageOpt=17&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 18)
	{	var Profilepage = "../Profile/monthlyadj.asp?pageOpt=18&code="+document.getElementById("QuotesCode").value;}		
	else if(mno == 19)
	{	var Profilepage = "../Profile/Peerlist.asp?pageOpt=19&Opt=B&code="+document.getElementById("QuotesCode").value;}	
	else if(mno == 20)
	{	var Profilepage = "../Profile/stockbeta.asp?pageOpt=20&code="+document.getElementById("QuotesCode").value;}	

	document.getElementById("EQinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('EQinnerPage',Profilepage);
}

function checkquote(pgname,opt) ///Profile -comapny information getQuotes on top menu
{
	var PageOpt = document.getElementById("quots").value;
	var strSearch = document.getElementById("txtQuotes").value;

	if (document.getElementById("txtQuotes").value=="")
	{
		alert("Enter Scrip Name or Code !");
		document.getElementById("txtQuotes").focus();
		return;
	} 
	else
	{
	Quotesurl = "../profile/"+pgname+"?strSearch="+ strSearch+"&PageOpt="+PageOpt+"&finid=2&id=1";	

	document.getElementById("EQinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('EQinnerPage',Quotesurl);
	}
}

function checkquote1(pgname) ///Profile -comapny information getQuotes on top menu
{
	//var PageOpt = document.getElementById("quots").value;
	if (document.getElementById("txtQuotes2").value=="")
	{
		alert("Enter Scrip Name or Code !");
		document.getElementById("txtQuotes2").focus();
		return false;
	} 

	var strSearch = document.getElementById("txtQuotes2").value;
	document.location = "../Equity/"+pgname+"?strSearch="+ strSearch+"&PageOpt=18";	
}


function ChangePageTools(mno) /// Tools Menu Function
{
	document.getElementById("Toolshr"+mno).className="MenuSubLink1";
	document.getElementById("Toolsimg"+mno).src="../images/Arw3.gif";
	document.getElementById("Toolssid"+mno).className="lmenuselect";

	for(var i=1; i<=2; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("Otherhr"+i).className="MenuSubLink";
			document.getElementById("Otherimg"+i).src="../images/Arw4.gif";
			document.getElementById("Othersid"+i).className="lmenu";
		}
	}
	
	if(mno == 1)
	{	
		var Toolspage = "../Profile/compinfodetail.asp?pageOpt=18";
	}
	
	document.getElementById("EQinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('EQinnerPage',Toolspage);
}


/*Other Market Menu List*/
function ChangePageOtherMkt(mno) /// Other Market Menu Function
{
	document.getElementById("Otherhr"+mno).className="MenuSubLink1";
	document.getElementById("Otherimg"+mno).src="../images/Arw3.gif";
	document.getElementById("Othersid"+mno).className="lmenuselect";

	for(var i=1; i<=4; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("Otherhr"+i).className="MenuSubLink";
			document.getElementById("Otherimg"+i).src="../images/Arw4.gif";
			document.getElementById("Othersid"+i).className="lmenu";
		}
	}
	
	if(mno == 1)
	{	
		var otherMktpage = "../Othermarket/WIndices.asp";
	}
	else if(mno == 2)
	{	
		var otherMktpage = "../Othermarket/Adrprice.asp";
	}
	else if(mno == 3)
	{	
		var otherMktpage = "../Othermarket/FiiInvestment.asp";
	}
	else if(mno == 4)
	{	
		var otherMktpage = "../Othermarket/MFInv.asp";
	}
	
	document.getElementById("EQinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('EQinnerPage',otherMktpage);
}

/// For Corporate Information
function ChangePageCorp(mno) 
{
	document.getElementById("Corphr"+mno).className="MenuSubLink1";
	document.getElementById("Corpimg"+mno).src="../images/Arw3.gif";
	document.getElementById("Corpsid"+mno).className="lmenuselect";

	for(var i=1; i<=10; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("Corphr"+i).className="MenuSubLink";
			document.getElementById("Corpimg"+i).src="../images/Arw4.gif";
			document.getElementById("Corpsid"+i).className="lmenu";
		}
	}
	
	if(mno == 1)
	{	
		 var CorpPageUrl = "../bulletin/bmtoday.asp";
	}
	else if(mno == 2)
	{	
		 var CorpPageUrl = "../bulletin/nsebc.asp";
	}
	else if(mno == 3)
	{	
		 var CorpPageUrl = "../bulletin/nodelivery.asp";
	}	
	else if(mno == 4)
	{	
		 var CorpPageUrl = "../bulletin/rights.asp?var=A";
	}		
	else if(mno == 5)
	{	
		 var CorpPageUrl = "../bulletin/bonus.asp?var=A";
	}		
	else if(mno == 6)
	{	
		 var CorpPageUrl = "../bulletin/announce.asp?opt=1";
	}	
	else if(mno == 7)
	{	
		 var CorpPageUrl = "../bulletin/namechange.asp?var=A&sortby=desc";
	}		
	else if(mno == 8)
	{	
		 var CorpPageUrl = "../bulletin/delisted.asp?var=A";
	}	
	else if(mno == 9)
	{	
		 var CorpPageUrl = "../bulletin/mturnover.asp?sortby=desc";
	}	
	else if(mno == 10)
	{	
		 var CorpPageUrl = "../bulletin/splitfv.asp?var=A";
	}		
	document.getElementById("EQinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('EQinnerPage',CorpPageUrl);
}

/// For Market Analysis
function ChangePageEquity(mno) 
{
	document.getElementById("hr"+mno).className="MenuSubLink1";
	document.getElementById("img"+mno).src="../images/Arw3.gif";
	document.getElementById("sid"+mno).className="lmenuselect";

	for(var i=1; i<=22; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("hr"+i).className="MenuSubLink";
			document.getElementById("img"+i).src="../images/Arw4.gif";
			document.getElementById("sid"+i).className="lmenu";
		}
	}
	
	if(mno == 1)
	{	
		 var EqPageUrl = "../Equity/BseTopGl.ASP?Exchg=NSE&Fld=NIFTY&VAL=G&pageOpt=1&Opt=Gain&Period=Today";
	}
	else if(mno == 2)
	{	
		 var EqPageUrl = "../Equity/52Weekhigh.asp?Exchg=NSE&Fld=NIFTY&val=Above52wHi&cmbSecCode=";
	}
	else if(mno == 3)
	{	
		 var EqPageUrl = "../Equity/newhigh.ASP?Exchg=NSE&Fld=NIFTY&Period=Year"
	}	
	else if(mno == 4)
	{	
		 var EqPageUrl = "../Equity/advdec.ASP?Exchg=NSE&mPage=1";
	}	
	else if(mno == 5)
	{	
		 var EqPageUrl = "../Equity/BuyerSeller.asp?Exchg=NSE&Fld=NIFTY&val=b";
	}			
	else if(mno == 6)
	{	
		 var EqPageUrl = "../Equity/IndexMover.asp?Exchg=NSE&fld=NIFTY";
	}		
	else if(mno == 7)
	{	
		 var EqPageUrl = "../Equity/nsesector.asp";
	}			
	else if(mno == 8)
	{	
		 var EqPageUrl = "../Equity/BSEliveindices.asp?Exchg=NSE";
	}			
	else if(mno == 9)
	{	
		 var EqPageUrl = "../Equity/Nsetopvol.asp?Exchg=NSE&Fld=NIFTY";
	}				
	else if(mno == 10)
	{	
		 var EqPageUrl = "../Equity/ExchageHoliday.asp?Exchg=NSE";
	}		
	else if(mno == 11)
	{	
		 var EqPageUrl = "../Equity/BlockDeal.asp?Exchg=NSE";
	}		
	else if(mno == 12)
	{	
		 var EqPageUrl = "../Equity/Bulkdeal.asp?Exchg=NSE";
	}	
	else if(mno == 13)
	{	
		 var EqPageUrl = "../Equity/Bsetopval.asp?Exchg=NSE&Fld=NIFTY";
	}		
	//else if(mno == 14)
	//{	
		// var EqPageUrl = "../Equity/Circuitbreaker.asp?Exchg=BSE&Fld=BSE_SENSEX&val=Upper";
	//}		
	else if(mno == 14)
	{	
		 var EqPageUrl = "../Equity/Outunder.asp?Exchg=NSE&Fld=NIFTY&Period=1W&val=O&cmbSecCode=";
	}		
	else if(mno == 15)
	{	
		 var EqPageUrl = "../Equity/Indexconst.asp?Exchg=NSE&Fld=NIFTY";
	}		
	else if(mno == 16)
	{	
		 var EqPageUrl = "../Equity/HighLowDelivery.asp?Exchg=NSE&Fld=NIFTY&val=b&cmbSecCode=";
	}		
	else if(mno == 17)
	{	
		 var EqPageUrl = "../Equity/Recovery.asp?Exchg=NSE&Fld=NIFTY&cmbSecCode=";
	}		
	else if(mno == 18)
	{	
		 var EqPageUrl = "../Equity/Fallintra.asp?Exchg=NSE&Fld=NIFTY&cmbSecCode=";
	}			
	else if(mno == 19)
	{	
		 var EqPageUrl = "../Equity/unusualvolume.asp?Exchg=NSE&Fld=NIFTY&val=P&Period=5&cmbSecCode=";
	}
	else if(mno == 20)
	{	
		 var EqPageUrl = "../Equity/industry.asp";
	}		
	else if(mno == 21)
	{	
		 var EqPageUrl = "../Equity/Risedelivery.asp?Exchg=NSE&val=Rise&Period=1";
	}	
	else if(mno == 22)
	{	
		 var EqPageUrl = "../Equity/hrlygainlose.asp?Exchg=NSE&Fld=NIFTY&val=G&Period=&cmbSecCode=";
	}	
	
	document.getElementById("EQinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('EQinnerPage',EqPageUrl);
}

function ChangePageNews(mno) /// For News Analysis
{
	document.getElementById("Newshr"+mno).className="MenuSubLink1";
	document.getElementById("Newsimg"+mno).src="../images/Arw3.gif";
	document.getElementById("Newssid"+mno).className="lmenuselect";

	for(var i=1; i<=16; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("Newshr"+i).className="MenuSubLink";
			document.getElementById("Newsimg"+i).src="../images/Arw4.gif";
			document.getElementById("Newssid"+i).className="lmenu";
		}
	}
	
	if(mno == 1)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=17&secid=1&subsecid=3";
	}		
	else if(mno == 2)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=18&secid=1&subsecid=4";
	}		
	else if(mno == 3)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=19&secid=1&subsecid=6";
	}	
	else if(mno == 4)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=20&secid=1&subsecid=5";
	}		
	else if(mno == 5)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=1&secid=2&subsecid=0";
	}
	else if(mno == 6)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=4&secid=8&subsecid=0";
	}
	else if(mno == 7)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=7&secid=7&subsecid=20";
	}	
	else if(mno == 8)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=8&secid=4&subsecid=14,15";
	}	
	else if(mno == 9)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=9&secid=1&subsecid=2";
	}			
	else if(mno == 10)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=10&secid=12&subsecid=44,45";
	}		
	else if(mno == 11)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=11&secid=1&subsecid=8";
	}			
	else if(mno == 12)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=12&secid=1&subsecid=10";
	}			
	else if(mno == 13)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=13&secid=13&subsecid=47";
	}				
	else if(mno == 14)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=14&secid=10&subsecid=22,24";
	}		
	else if(mno == 15)
	{	
		 var EqPageUrl = "../News/news.ASP?headid=15&secid=28&subsecid=117";
	}		
	else if(mno == 16)
	{	
		 var EqPageUrl = "../News/livefundnews.asp?headid=16";
	}			
	document.getElementById("EQinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('EQinnerPage',EqPageUrl);
}


/*END News Menu List*/


/*Mutual Fund Menu List*/
function ChangePageMutual(mno) 
{
	document.getElementById("href"+mno).className="MenuSubLink1";
	document.getElementById("img"+mno).src="../images/Arw3.gif";
	document.getElementById("sid"+mno).className="lmenuselect";
	
	for(var i=1; i<=28; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("href"+i).className="MenuSubLink";
			document.getElementById("img"+i).src="../images/Arw4.gif";
			document.getElementById("sid"+i).className="lmenu";
		}
	}

	if(mno == 1)
	{	var PageUrl = "../Mutual/mf_compsch.asp?pageid=1"; }
	else if (mno == 2)
	{	var PageUrl = "../Mutual/mf_Compcat.asp?pageid=2"; }
	else if (mno == 3)
	{	var PageUrl = "../Mutual/mf_getnav.asp?var=A&pageid=3"; }
	else if (mno == 4)
	{	var PageUrl = "../Mutual/histnav.asp?pageid=4"; }
	else if (mno == 5)
	{	var PageUrl = "../Mutual/MfHome.asp?so=astot&ord2=DT&Modopt=MF&pageid=5"; }
	else if (mno == 6)
	{	var PageUrl = "../Mutual/mf_dividents.asp?pageid=6"; }
	else if (mno == 7)
	{	var PageUrl = "../Mutual/MF_DividentsAnn.asp?pageid=7"; }
	else if (mno == 8)
	{	var PageUrl = "../Mutual/mf_captions.asp?pageid=8"; }
	else if (mno == 9)
	{	var PageUrl = "../Mutual/fminterview.asp?pageid=9"; }
	else if (mno == 10)
	{	var PageUrl = "../Mutual/mf_activity.asp?pageid=10"; }
	else if (mno == 11)
	{	var PageUrl = "../Mutual/mf_transaction.asp?pageid=11"; }
	else if (mno == 12)
	{	var PageUrl = "../Mutual/mf_holdings.asp?pageid=12"; }
	else if (mno == 13)
	{	var PageUrl = "../Mutual/nfo_list.asp?pageid=13"; }
	else if (mno == 14)
	{	var PageUrl = "../Mutual/pancirulation.asp?pageid=14"; }
	else if (mno == 15)
	{	var PageUrl = "../Mutual/biggest_sch.asp?pageid=15"; }
	else if (mno == 16)
	{	var PageUrl = "../Mutual/Least_sch.asp?pageid=16"; }
	else if (mno == 17)
	{	var PageUrl = "../Mutual/comparescheme.asp?pageid=17"; }
	else if (mno == 18)
	{	var PageUrl = "../Mutual/compareportfolio.asp?pageid=18"; }
	else if (mno == 19)
	{	var PageUrl = "../Mutual/whtinout.asp?pageid=19"; }
	else if (mno == 20)
	{	var PageUrl = "../Mutual/taximplication.asp?pageid=20"; }
	else if (mno == 21)
	{	var PageUrl = "../Mutual/mf_faq.asp?pageid=21"; }
	else if (mno == 22)
	{	var PageUrl = "../Mutual/nri_faq.asp?pageid=22"; }
	else if (mno == 23)
	{	var PageUrl = "../Mutual/Returncal_frame.asp?pageid=23"; }
	else if (mno == 24)
	{	var PageUrl = "../Mutual/fundrank.asp?pageid=24"; }
	else if (mno == 25)
	{	var PageUrl = "../Mutual/sipform.asp?pageid=25"; }
	else if (mno == 26)
	{	var PageUrl = "../Mutual/download.asp?opt=Equity&pageid=26"; }
	else if (mno == 27)
	{	
		var Stype = document.getElementById("Stype").value;
		var PageUrl = "../Mutual/fundperform.asp?pageid=27&Stype="+Stype; 
	}
	else if (mno == 28)
	{	var PageUrl = "../Mutual/MF_Performance.asp?opt=show&pageid=28"; }
	//else if (mno == 29)
	//{	var PageUrl = "../Mutual/fundperform.asp?pageid=29"; }
	
	document.getElementById("MutualInner").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('MutualInner',PageUrl);
}


/*Research Menu List*/
function ChangePageResfund(mno) 
{
	document.getElementById("hr"+mno).className="MenuSubLink1";
	document.getElementById("img"+mno).src="../images/Arw3.gif";
	document.getElementById("sid"+mno).className="lmenuselect";

	for(var i=1; i<=15; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("hr"+i).className="MenuSubLink";
			document.getElementById("img"+i).src="../images/Arw4.gif";
			document.getElementById("sid"+i).className="lmenu";
		}
	}

	if(mno == 1)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=1&RType=Quarterly"; }
	else if (mno == 2)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=2&RType=Monthly"; }
	else if (mno == 3)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=3&RType=Weekly"; }
	else if (mno == 4)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=4&RType=Investment"; }
	else if (mno == 5)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=5&RType=Morning"; }
	else if (mno == 6)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=6&RType=Evening"; }
	else if (mno == 7)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=7&RType=Event"; }
	else if (mno == 8)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=8&RType=Results"; }
	else if (mno == 9)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=9&RType=EconomyIndicators"; }
	else if (mno == 10)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=10&RType=Others"; }
	else if(mno == 11)
	{	var PageUrl = "../Research/TechnicalReport.asp?finid=2&Rptid=11&RType=Trend"; }
	else if (mno == 12)
	{	var PageUrl = "../Research/TechOtherRpt.asp?finid=2&Rptid=11&RType=SpecialReports"; }
	else if(mno == 13)
	{	var PageUrl = "../Research/CommodityReport.asp?finid=3&Rptid=12&RType=Commodity"; }
	else if(mno == 14)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=14&RType=IPO"; }
	else if(mno == 15)
	{	var PageUrl = "../Research/FundRptList.asp?finid=1&Rptid=15&RType=Specialfund"; }
	
	document.getElementById("ResearchinnerPage").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('ResearchinnerPage',PageUrl);
}

function ChangePageResfundL(mno) 
{
	document.getElementById("hr"+mno).className="MenuSubLink1";
	document.getElementById("img"+mno).src="../images/Arw3.gif";
	document.getElementById("sid"+mno).className="lmenuselect";

	for(var i=1; i<=15; i++)
	{	
		if (i!=mno)
		{
			document.getElementById("hr"+i).className="MenuSubLink";
			document.getElementById("img"+i).src="../images/Arw4.gif";
			document.getElementById("sid"+i).className="lmenu";
		}
	}

	if(mno == 1)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=1&RType=Quarterly"; }
	else if (mno == 2)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=2&RType=Monthly"; }
	else if (mno == 3)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=3&RType=Weekly"; }
	else if (mno == 4)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=4&RType=Investment"; }
	else if (mno == 5)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=5&RType=Morning"; }
	else if (mno == 6)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=6&RType=Evening"; }
	else if (mno == 7)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=7&RType=Event"; }
	else if (mno == 8)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=8&RType=Results"; }
	else if (mno == 9)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=9&RType=EconomyIndicators"; }
	
	else if (mno == 10)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=10&RType=Others"; }
	else if(mno == 11)
	{	var PageUrl = "../Research/TechnicalReportLatest.asp?finid=2&Rptid=11&RType=Trend"; }
	else if (mno == 12)
	{	var PageUrl = "../Research/TechOtherRptLatest.asp?finid=2&Rptid=12&RType=SpecialReports"; }
	else if(mno == 13)
	{	var PageUrl = "../Research/CommodityReportLatest.asp?finid=3&Rptid=13&RType=Commodity"; }
	else if(mno == 14)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=14&RType=IPO"; }
	else if(mno == 15)
	{	var PageUrl = "../Research/FundRptListLatest.asp?finid=1&Rptid=15&RType=Specialfund"; }

	document.getElementById("ResearchinnerPageLatest").innerHTML="<table cellpadding='0' cellspacing='0' width='100%' height='400' align='center'><tr><td align='center'><img src='../images/loading.gif'></td></tr><tr><td class='warning' align='center'>Please Wait .......</td></tr></table>";
	var ajax = new Ajax.Updater('ResearchinnerPageLatest',PageUrl);
}

