
﻿
var XmlHttpGLVolVal;function CreateXmlHttpGLVolVal()
{try
{XmlHttpGLVolVal=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlHttpGLVolVal=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlHttpGLVolVal=null;}}
if(!XmlHttpGLVolVal&&typeof XMLHttpRequest!="undefined")
{XmlHttpGLVolVal=new XMLHttpRequest();}}
function ChangeControl(Opt,Exch)
{Exch=GlobalvalHome;SetOptionGLVV=Opt;SetExchGLVV=Exch;CreateXmlHttpGLVolVal();var currentDivObj=document.getElementById("Td_Data");var More=document.getElementById("More");if(Opt=='GAIN')
{document.getElementById("hdnglv").value="GAIN";document.getElementById("tdGain1").className="BSENSEOnTab";document.getElementById("tdLose").className="BSENSEOffTab";document.getElementById("tdValue").className="BSENSEOffTab";document.getElementById("tdVolume").className="BSENSEOffTab";if(document.getElementById("hdnsensex").value=="NSE")
{document.getElementById("more1NSE").style.display="inline";document.getElementById("more2NSE").style.display="none";document.getElementById("more3NSE").style.display="none";document.getElementById("more4NSE").style.display="none";document.getElementById("more1BSE").style.display="none";document.getElementById("more2BSE").style.display="none";document.getElementById("more3BSE").style.display="none";document.getElementById("more4BSE").style.display="none";}
else
{document.getElementById("more1NSE").style.display="none";document.getElementById("more2NSE").style.display="none";document.getElementById("more3NSE").style.display="none";document.getElementById("more4NSE").style.display="none";document.getElementById("more1BSE").style.display="inline";document.getElementById("more2BSE").style.display="none";document.getElementById("more3BSE").style.display="none";document.getElementById("more4BSE").style.display="none";}}
if(Opt=='LOSE')
{document.getElementById("hdnglv").value="LOSE";document.getElementById("tdGain1").className="BSENSEOffTab";document.getElementById("tdLose").className="BSENSEOnTab";document.getElementById("tdValue").className="BSENSEOffTab";document.getElementById("tdVolume").className="BSENSEOffTab";if(document.getElementById("hdnsensex").value=="NSE")
{document.getElementById("more1NSE").style.display="none";document.getElementById("more2NSE").style.display="inline";document.getElementById("more3NSE").style.display="none";document.getElementById("more4NSE").style.display="none";document.getElementById("more1BSE").style.display="none";document.getElementById("more2BSE").style.display="none";document.getElementById("more3BSE").style.display="none";document.getElementById("more4BSE").style.display="none";}
else
{document.getElementById("more1NSE").style.display="none";document.getElementById("more2NSE").style.display="none";document.getElementById("more3NSE").style.display="none";document.getElementById("more4NSE").style.display="none";document.getElementById("more1BSE").style.display="none";document.getElementById("more2BSE").style.display="inline";document.getElementById("more3BSE").style.display="none";document.getElementById("more4BSE").style.display="none";}}
if(Opt=='Val')
{document.getElementById("hdnglv").value="Val";document.getElementById("tdGain1").className="BSENSEOffTab";document.getElementById("tdLose").className="BSENSEOffTab";document.getElementById("tdValue").className="BSENSEOnTab";document.getElementById("tdVolume").className="BSENSEOffTab";if(document.getElementById("hdnsensex").value=="NSE")
{document.getElementById("more1NSE").style.display="none";document.getElementById("more2NSE").style.display="none";document.getElementById("more3NSE").style.display="inline";document.getElementById("more4NSE").style.display="none";document.getElementById("more1BSE").style.display="none";document.getElementById("more2BSE").style.display="none";document.getElementById("more3BSE").style.display="none";document.getElementById("more4BSE").style.display="none";}
else
{document.getElementById("more1NSE").style.display="none";document.getElementById("more2NSE").style.display="none";document.getElementById("more3NSE").style.display="none";document.getElementById("more4NSE").style.display="none";document.getElementById("more1BSE").style.display="none";document.getElementById("more2BSE").style.display="none";document.getElementById("more3BSE").style.display="inline";document.getElementById("more4BSE").style.display="none";}}
if(Opt=='Vol')
{document.getElementById("hdnglv").value="Vol";document.getElementById("tdGain1").className="BSENSEOffTab";document.getElementById("tdLose").className="BSENSEOffTab";document.getElementById("tdValue").className="BSENSEOffTab";document.getElementById("tdVolume").className="BSENSEOnTab";if(document.getElementById("hdnsensex").value=="NSE")
{document.getElementById("more1NSE").style.display="none";document.getElementById("more2NSE").style.display="none";document.getElementById("more3NSE").style.display="none";document.getElementById("more4NSE").style.display="inline";document.getElementById("more1BSE").style.display="none";document.getElementById("more2BSE").style.display="none";document.getElementById("more3BSE").style.display="none";document.getElementById("more4BSE").style.display="none";}
else
{document.getElementById("more1NSE").style.display="none";document.getElementById("more2NSE").style.display="none";document.getElementById("more3NSE").style.display="none";document.getElementById("more4NSE").style.display="none";document.getElementById("more1BSE").style.display="none";document.getElementById("more2BSE").style.display="none";document.getElementById("more3BSE").style.display="none";document.getElementById("more4BSE").style.display="inline";}}
document.body.style.cursor="progress";var requestUrl="../OnlineTrading/AjaxDataGLVV.aspx?Option="+Opt+"&Exchange="+Exch+"&timeStamp="+new Date().getTime();if(XmlHttpGLVolVal!=null)
{XmlHttpGLVolVal.onreadystatechange=function(){ChangeControlResponse(Opt,Exch)}
XmlHttpGLVolVal.open('GET',requestUrl,true);XmlHttpGLVolVal.send(null);}
return false;}
function ChangeControlResponse(Opt,Exch)
{var Head_td=document.getElementById("Heading");var More=document.getElementById("More");var BSE_td=document.getElementById("Td_BSE");var NSE_td=document.getElementById("Td_NSE");if(XmlHttpGLVolVal.readyState==4)
{var td_Id=document.getElementById("Td_Data");if(XmlHttpGLVolVal.status==200)
{td_Id.innerHTML=XmlHttpGLVolVal.responseText;document.body.style.cursor="auto";}
else
{td_Id.innerHTML="There was a problem retrieving data from the server.";document.body.style.cursor="auto";}}}
function ShowOnlineTradingdata(id)
{for(j=1;j<=4;j++)
{if(id==j)
{if(eval(document.getElementById(j+'OTData')).style.display=='none')
{eval(document.getElementById(j+'OTData')).style.display='inline';eval(document.getElementById(j+'OTRig')).src='../App_Themes/Common/images/TabOnRig.gif';eval(document.getElementById(j+'OTLef')).src='../App_Themes/Common/images/TabOnLef.gif';eval(document.getElementById(j+'OT')).className="HomeSelTabOn";eval(document.getElementById(j+'OTAH')).className="HomeSelTabOn";}
else
{eval(document.getElementById(j+'OTData')).style.display='none';eval(document.getElementById(j+'OTRig')).src='../App_Themes/Common/images/TabOffRig.gif';eval(document.getElementById(j+'OTLef')).src='../App_Themes/Common/images/TabOffLef.gif';eval(document.getElementById(j+'OT')).className="HomeSelTabOff";eval(document.getElementById(j+'OTAH')).className="HomeSelTabOff";}}
else
{eval(document.getElementById(j+'OTData')).style.display='none';eval(document.getElementById(j+'OTRig')).src='../App_Themes/Common/images/TabOffRig.gif';eval(document.getElementById(j+'OTLef')).src='../App_Themes/Common/images/TabOffLef.gif';eval(document.getElementById(j+'OT')).className="HomeSelTabOff";eval(document.getElementById(j+'OTAH')).className="HomeSelTabOff";}}
if(id=="2")
{SwitchCommoditySymbol("GOLD","MCX");ChangeControlCommEx("G","MCX","GOLD");ChangeControlComm("G","MCX");}
if(id=="3")
{GetIssues("O");}
if(id=="4")
{LoadNFOUpdate("OpenFunds","ENFO")}}
function BseDatadisplay()
{CreateXmlMarketBSE();var currentDivObj=document.getElementById("BSEMarketGlanceCtrl");document.body.style.cursor="progress";var requestUrl="../AjaxMarketGlanceCtrl.aspx?Exchange=BSE&timeStamp="+new Date().getTime();if(XmlMarketBSE!=null)
{XmlMarketBSE.onreadystatechange=function(){ChangeXmlMarketBSE()}
XmlMarketBSE.open('GET',requestUrl,true);XmlMarketBSE.send(null);}
LoadMarketBSE();}
function NseDatadisplay()
{CreateXmlMarketNSE();var currentDivObj=document.getElementById("NSEMarketGlanceCtrl");document.body.style.cursor="progress";var requestUrl="../AjaxMarketGlanceCtrl.aspx?Exchange=NSE&timeStamp="+new Date().getTime();if(XmlMarketNSE!=null)
{XmlMarketNSE.onreadystatechange=function(){ChangeXmlMarketNSE()}
XmlMarketNSE.open('GET',requestUrl,true);XmlMarketNSE.send(null);}
LoadMarketNSE();}
function ChangeXmlMarketBSE()
{if(XmlMarketBSE.readyState==4)
{var Td_DataDeriFii=document.getElementById("BSEMarketGlanceCtrl");if(XmlMarketBSE.status==200)
{Td_DataDeriFii.innerHTML=XmlMarketBSE.responseText;document.body.style.cursor="auto";}
else
{Td_DataDeriFii.innerHTML="There was a problem retrieving data from the server.";document.body.style.cursor="auto";}}}
function ChangeXmlMarketNSE()
{if(XmlMarketNSE.readyState==4)
{var Td_DataDeriFii=document.getElementById("NSEMarketGlanceCtrl");if(XmlMarketNSE.status==200)
{Td_DataDeriFii.innerHTML=XmlMarketNSE.responseText;document.body.style.cursor="auto";}
else
{Td_DataDeriFii.innerHTML="There was a problem retrieving data from the server.";document.body.style.cursor="auto";}}}
var Globalid="";var PeriodChart="";function SelectDate(id)
{if(id=="Today")
{Globalid="Today";PeriodChart=" ";document.getElementById("Today").className="MarMoverSelText";document.getElementById("1Week").className="MarMoverUnSelText";document.getElementById("1Month").className="MarMoverUnSelText";document.getElementById("1Year").className="MarMoverUnSelText";}
if(id=="1Week")
{Globalid="1Week";PeriodChart="1Week";document.getElementById("Today").className="MarMoverUnSelText";document.getElementById("1Week").className="MarMoverSelText";document.getElementById("1Month").className="MarMoverUnSelText";document.getElementById("1Year").className="MarMoverUnSelText";}
if(id=="1Month")
{Globalid="1Month";PeriodChart="1Month";document.getElementById("Today").className="MarMoverUnSelText";document.getElementById("1Week").className="MarMoverUnSelText";document.getElementById("1Month").className="MarMoverSelText";document.getElementById("1Year").className="MarMoverUnSelText";}
if(id=="1Year")
{Globalid="1Year";PeriodChart="1Year";document.getElementById("Today").className="MarMoverUnSelText";document.getElementById("1Week").className="MarMoverUnSelText";document.getElementById("1Month").className="MarMoverUnSelText";document.getElementById("1Year").className="MarMoverSelText";}
sensexvalue(Globalid,SelectedTabsensex)}
var SelectedTabsensex="BSE";function sensexvalueAutoData()
{LoadMarketGlanceData();}
var XmlMarketNSE;function CreateXmlMarketNSE()
{try
{XmlMarketNSE=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlMarketNSE=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlMarketNSE=false;}}
if(!XmlMarketNSE&&typeof XMLHttpRequest!='undefined')
{try
{XmlMarketNSE=new XMLHttpRequest();}
catch(e)
{XmlMarketNSE=false;}}
if(!XmlMarketNSE&&window.createRequest)
{try
{XmlMarketNSE=window.createRequest();}
catch(e)
{XmlMarketNSE=false;}}}
var XmlMarketBSE;function CreateXmlMarketBSE()
{try
{XmlMarketBSE=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlMarketBSE=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlMarketBSE=false;}}
if(!XmlMarketBSE&&typeof XMLHttpRequest!='undefined')
{try
{XmlMarketBSE=new XMLHttpRequest();}
catch(e)
{XmlMarketBSE=false;}}
if(!XmlMarketBSE&&window.createRequest)
{try
{XmlMarketBSE=window.createRequest();}
catch(e)
{XmlMarketBSE=false;}}}
function CreateXmlHttpChart()
{try
{XmlHttpChart=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlHttpChart=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlHttpChart=null;}}
if(!XmlHttpChart&&typeof XMLHttpRequest!="undefined")
{XmlHttpChart=new XMLHttpRequest();}}
var SelectedTabsensex="BSE";var GlobalvalHome;function sensexvalue(id,val)
{id=Globalid;if(val=='BSE')
{document.getElementById("ctl00_ControlMaster_MarketMovers1_updtimeBSEHM").style.display="inline";document.getElementById("ctl00_ControlMaster_MarketMovers1_updtimeNSEHM").style.display="none";}else
{document.getElementById("ctl00_ControlMaster_MarketMovers1_updtimeBSEHM").style.display="none";document.getElementById("ctl00_ControlMaster_MarketMovers1_updtimeNSEHM").style.display="inline";}
GlobalvalHome=val;CreateXmlHttpChart();if(val=='BSE')
{SelectedTabsensex="BSE";document.getElementById("BSE").className="BSENSEOnTab";document.getElementById("NSE").className="BSENSEOffTab";document.getElementById("hdnsensex").value='BSE';document.getElementById("SensexNiftytext11").style.display="inline";document.getElementById("SensexNiftytext12").style.display="none";document.getElementById("SensexNiftytext21").style.display="none";document.getElementById("SensexNiftytext22").style.display="inline";if(document.getElementById("hdnglv")!=null)
{ChangeControl(document.getElementById("hdnglv").value,document.getElementById("hdnsensex").value);}}
else
{SelectedTabsensex="NSE";document.getElementById("BSE").className="BSENSEOffTab";document.getElementById("NSE").className="BSENSEOnTab";document.getElementById("SensexNiftytext11").style.display="none";document.getElementById("SensexNiftytext12").style.display="inline";document.getElementById("SensexNiftytext21").style.display="inline";document.getElementById("SensexNiftytext22").style.display="none";document.getElementById("hdnsensex").value='NSE';if(document.getElementById("hdnglv")!=null)
{ChangeControl(document.getElementById("hdnglv").value,document.getElementById("hdnsensex").value);}}
var FinCode="";var RequestUrl="../OnlineTrading/BSENSEchartAjax.aspx?Exchg="+SelectedTabsensex+"&FinCode="+FinCode+"&Comp2=0&Period="+PeriodChart;var so=new SWFObject("../amline/amline.swf","BSENSEline","196","94","8","#FFFFFF");so.addVariable("path","../amline/");if(id=="Today")
{so.addVariable("settings_file",encodeURIComponent("../OnlineTrading/BSENSEline_settingsToday.xml"));}
else
{so.addVariable("settings_file",encodeURIComponent("../OnlineTrading/BSENSEline_settings.xml"));}
so.addVariable("data_file",encodeURIComponent(RequestUrl+"&TimeStamp="+new Date().getTime()));so.addParam("wmode","opaque");so.write("CompanyChart");return false;var requestUrl="../AjaxExchgData.aspx?EXCHG="+val+"&timeStamp="+new Date().getTime();if(XmlHttpChart)
{XmlHttpChart.onreadystatechange=function(){sensexvalueResponse()}
XmlHttpChart.open("GET",requestUrl,true);XmlHttpChart.send(null);}
return true;}
function sensexvalueResponse()
{if(XmlHttpChart.readyState==4)
{var td_Id=document.getElementById("updtime");if(XmlHttpChart.status==200)
{td_Id.innerHTML=XmlHttpChart.responseText;document.body.style.cursor="auto";}
else
{td_Id.innerHTML="There was a problem retrieving data from the server.";document.body.style.cursor="auto";}}}
var XmlHttpGLVolValComm;function CreateXmlHttpGLVolValComm()
{try
{XmlHttpGLVolValComm=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlHttpGLVolValComm=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlHttpGLVolValComm=null;}}
if(!XmlHttpGLVolValComm&&typeof XMLHttpRequest!="undefined")
{XmlHttpGLVolValComm=new XMLHttpRequest();}}
var GlobalExchComm;var GlobalParGoldsilcrudesugar;function ChangeControlCommEx(Opt,Exch,ParGoldsilcrudesugar)
{CreateXmlHttpGLVolValComm();var currentDivObj=document.getElementById("Td_DataComm");document.body.style.cursor="progress";GlobalExchComm=Exch;ParGoldsilcrudesugar=GlobalParGoldsilcrudesugar;if(Exch=="MCX")
{document.getElementById("tdMCX").className="BSENSEOnTab";document.getElementById("tdNCDEX").className="BSENSEOffTab";}
else
{document.getElementById("tdMCX").className="BSENSEOffTab";document.getElementById("tdNCDEX").className="BSENSEOnTab";}
var requestUrl="../AjaxDataGLVVComm.aspx?Option="+Opt+"&Exchange="+Exch+"&timeStamp="+new Date().getTime();SwitchCommoditySymbol(ParGoldsilcrudesugar,Exch);if(XmlHttpGLVolValComm!=null)
{XmlHttpGLVolValComm.onreadystatechange=function(){ChangeControlResponseComm(Opt,Exch)}
XmlHttpGLVolValComm.open('GET',requestUrl,true);XmlHttpGLVolValComm.send(null);}
return false;}
function ChangeControlComm(Opt,Exch)
{Exch=GlobalExchComm;CreateXmlHttpGLVolValComm();var currentDivObj=document.getElementById("Td_DataComm");document.body.style.cursor="progress";if(Opt=="G")
{document.getElementById("GainersComm").className="BSENSEOnTab";document.getElementById("LosersComm").className="BSENSEOffTab";document.getElementById("ValueComm").className="BSENSEOffTab";document.getElementById("VolumeComm").className="BSENSEOffTab";}
if(Opt=="L")
{document.getElementById("GainersComm").className="BSENSEOffTab";document.getElementById("LosersComm").className="BSENSEOnTab";document.getElementById("ValueComm").className="BSENSEOffTab";document.getElementById("VolumeComm").className="BSENSEOffTab";}
if(Opt=="Value")
{document.getElementById("GainersComm").className="BSENSEOffTab";document.getElementById("LosersComm").className="BSENSEOffTab";document.getElementById("ValueComm").className="BSENSEOnTab";document.getElementById("VolumeComm").className="BSENSEOffTab";}
if(Opt=="Volume")
{document.getElementById("GainersComm").className="BSENSEOffTab";document.getElementById("LosersComm").className="BSENSEOffTab";document.getElementById("ValueComm").className="BSENSEOffTab";document.getElementById("VolumeComm").className="BSENSEOnTab";}
var requestUrl="../AjaxDataGLVVComm.aspx?Option="+Opt+"&Exchange="+Exch+"&timeStamp="+new Date().getTime();if(XmlHttpGLVolValComm!=null)
{XmlHttpGLVolValComm.onreadystatechange=function(){ChangeControlResponseComm(Opt,Exch)}
XmlHttpGLVolValComm.open('GET',requestUrl,true);XmlHttpGLVolValComm.send(null);}
return false;}
function ChangeControlResponseComm(Opt,Exch)
{if(XmlHttpGLVolValComm.readyState==4)
{var td_IdComm=document.getElementById("Td_DataComm");if(XmlHttpGLVolValComm.status==200)
{td_IdComm.innerHTML=XmlHttpGLVolValComm.responseText;document.body.style.cursor="auto";}
else
{td_IdComm.innerHTML="There was a problem retrieving data from the server.";document.body.style.cursor="auto";}}}
function CommodityPriceCreateXmlHttp()
{try
{CommodityPriceXmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{CommodityPriceXmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{CommodityPriceXmlHttp=false;}}
if(!CommodityPriceXmlHttp&&typeof XMLHttpRequest!='undefined')
{try
{CommodityPriceXmlHttp=new XMLHttpRequest();}
catch(e)
{CommodityPriceXmlHttp=false;}}
if(!CommodityPriceXmlHttp&&window.createRequest)
{try
{CommodityPriceXmlHttp=window.createRequest();}
catch(e)
{CommodityPriceXmlHttp=false;}}}
function CommodityPriceAjaxCall(Commodity)
{CommodityPriceCreateXmlHttp();document.body.style.cursor="progress";var requestUrl="../AjaxCommodityPrice.aspx?Symbol="+Commodity+"&Exchange=MCX&timeStamp="+new Date().getTime();if(CommodityPriceXmlHttp)
{CommodityPriceXmlHttp.onreadystatechange=function(){CommodityPriceHandleResponse();};CommodityPriceXmlHttp.open("GET",requestUrl,true);CommodityPriceXmlHttp.send(null);}}
function CommodityPriceHandleResponse()
{if(CommodityPriceXmlHttp.readyState==4)
{if(CommodityPriceXmlHttp.status==200)
{var ArrResponse=CommodityPriceXmlHttp.responseText.split("|");document.getElementById("TdCommodityName").innerHTML=ArrResponse[0];document.getElementById("TdCommoditPrice").innerHTML=ArrResponse[1];document.getElementById("TdCommodityChg").innerHTML=ArrResponse[2];document.getElementById("TdCommodityPerChg").innerHTML=ArrResponse[3];document.body.style.cursor="auto";}
else
{}}}
function CreateXmlHttpMF()
{try
{XmlHttpMF=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlHttpMF=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlHttpMF=false;}}
if(!XmlHttpMF&&typeof XMLHttpRequest!='undefined')
{try
{XmlHttpMF=new XMLHttpRequest();}
catch(e)
{XmlHttpMF=false;}}
if(!XmlHttpMF&&window.createRequest)
{try
{XmlHttpMF=window.createRequest();}
catch(e)
{XmlHttpMF=false;}}}
function loadGLData(id,TopBottom)
{if(id=="GainersMF")
{document.getElementById("OpenFundsMF").className="BSENSEOffTab";document.getElementById("ForthcomingMF").className="BSENSEOffTab";document.getElementById("GainersMF").className="BSENSEOnTab";document.getElementById("LosersMF").className="BSENSEOffTab";}
if(id=="LosersMF")
{document.getElementById("OpenFundsMF").className="BSENSEOffTab";document.getElementById("ForthcomingMF").className="BSENSEOffTab";document.getElementById("GainersMF").className="BSENSEOffTab";document.getElementById("LosersMF").className="BSENSEOnTab";}
CreateXmlHttpMF()
document.body.style.cursor="progress";var requestUrl="../AjaxFundData.aspx?TopBottom="+TopBottom+"&timeStamp="+new Date().getTime();if(XmlHttpMF){XmlHttpMF.onreadystatechange=function(){GLResponse()}
XmlHttpMF.open("GET",requestUrl,true);XmlHttpMF.send(null);}}
function GLResponse()
{var FundPerformance=document.getElementById("NFOId");if(XmlHttpMF.readyState==4)
{if(XmlHttpMF.status==200)
{var strGlData=XmlHttpMF.responseText
FundPerformance.innerHTML=strGlData;document.body.style.cursor="auto";}
else
{FundPerformance.innerHTML="There was a problem retrieving data from the server.";document.body.style.cursor="auto";}}}
var XmlHttpIndCtrl;function CreateXmlHttpIndCtrl()
{try
{XmlHttpIndCtrl=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlHttpIndCtrl=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlHttpIndCtrl=null;}}
if(!XmlHttpIndCtrl&&typeof XMLHttpRequest!="undefined")
{XmlHttpIndCtrl=new XMLHttpRequest();}}
function GetIssues(val)
{if(val=="O")
{document.getElementById("OpenData").className="BSENSEOnTab";document.getElementById("ForthcomingData").className="BSENSEOffTab";document.getElementById("ClosedData").className="BSENSEOffTab";}
if(val=="F")
{document.getElementById("OpenData").className="BSENSEOffTab";document.getElementById("ForthcomingData").className="BSENSEOnTab";document.getElementById("ClosedData").className="BSENSEOffTab";}
if(val=="C")
{document.getElementById("OpenData").className="BSENSEOffTab";document.getElementById("ForthcomingData").className="BSENSEOffTab";document.getElementById("ClosedData").className="BSENSEOnTab";}
CreateXmlHttpIndCtrl();document.getElementById("IssueDetails").innerHTML="<table align=center><tr><td><img src =../App_Themes/Common/images/loader.gif /></td></tr></table>";document.body.style.cursor="progress";var requestUrl="../OnlineTrading/AjaxIssues.aspx?IPOType="+val+"&timeStamp="+new Date().getTime();if(XmlHttpIndCtrl){XmlHttpIndCtrl.onreadystatechange=function(){getDataResponseIndCtrl();};XmlHttpIndCtrl.open("GET",requestUrl,true);XmlHttpIndCtrl.send(null);}
return false;}
function getDataResponseIndCtrl()
{if(XmlHttpIndCtrl.readyState==4)
{if(XmlHttpIndCtrl.status==200)
{var NewTd=document.getElementById("IssueDetails");var NewData=XmlHttpIndCtrl.responseText;if(NewData!="")
{NewTd.innerHTML=NewData;}
document.body.style.cursor="auto";}}}
function showsnapchart()
{var so=new SWFObject("../amcolumn/amcolumn.swf","Fundcolumn","196","140","8","#FFFFFF");so.addVariable("path","../amcolumn/");so.addVariable("settings_file",encodeURIComponent("../NavDetailslinechart.xml"));so.addVariable("data_file",encodeURIComponent("../NavDetailschartMFAjax.aspx?TimeStamp="+new Date().getTime()));so.addParam("wmode","opaque");so.write("NavDetailsflashcontent");}
function CreateXmlHttpNFO()
{try
{XmlHttpNFO=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{XmlHttpNFO=new ActiveXObject("Microsoft.XMLHTTP");}
catch(oc)
{XmlHttpNFO=null;}}
if(!XmlHttpNFO&&typeof XMLHttpRequest!="undefined")
{XmlHttpNFO=new XMLHttpRequest();}}
function LoadNFOUpdate(id,Option)
{if(id=="OpenFunds")
{document.getElementById("OpenFundsMF").className="BSENSEOnTab";document.getElementById("ForthcomingMF").className="BSENSEOffTab";document.getElementById("GainersMF").className="BSENSEOffTab";document.getElementById("LosersMF").className="BSENSEOffTab";}
if(id=="ForthcomingMF")
{document.getElementById("OpenFundsMF").className="BSENSEOffTab";document.getElementById("ForthcomingMF").className="BSENSEOnTab";document.getElementById("GainersMF").className="BSENSEOffTab";document.getElementById("LosersMF").className="BSENSEOffTab";}
CreateXmlHttpNFO();document.body.style.cursor="progress";var requestUrl="../AjaxNFOUpdateData.aspx?&Option="+Option;if(XmlHttpNFO)
{XmlHttpNFO.onreadystatechange=function(){NFOUpdateResponse();};XmlHttpNFO.open("GET",requestUrl,true);XmlHttpNFO.send(null);}}
function NFOUpdateResponse()
{if(XmlHttpNFO.readyState==4)
{if(XmlHttpNFO.status==200)
{var NFOId=document.getElementById("NFOId");var strData=XmlHttpNFO.responseText;if(strData!="")
{NFOId.innerHTML=strData;}
document.body.style.cursor="auto";}
else
{NFOId.innerHTML="There was a problem retrieving data from the server.";document.body.style.cursor="auto";}}}
