/* marketCharts.js */ //Assign event handlers to tab buttons function initTabs(){ for (var x=0; x < 6; x++){ var btnObj = document.getElementById("btn" + x); btnObj.onclick = changeTimeFrame; } } //Function sets the select controls in the hidden DIV to initial values. function initSelectCtrls() { // initial indices can be overridden by client js var initialIndices = (typeof gMarketSummaryInitialIndices == "object")?gMarketSummaryInitialIndices:new Array("", "US&DJI", "US;COMP", "US;VIX"); var i, j, indexSelector; for(i=1; i<=3; i++) { indexSelector = document.getElementById("index" + i + "Selector"); for(j=0; j