function fetchSelDatam(controlID, indID) {
  var object = document.getElementById(controlID);
  var data = object.options[object.selectedIndex].text;
  var resp = "";
  var resp1 = "";
  if (data == "AMEX") {
    resp = "Absolute Breadth Index,Advance/Decline Line,Advance/Decline Ratio,Advancing-Declining Issues," ;
    resp += "Arms' Index,Breadth Thrust,Cumulative Volume Index,McClellan Oscillator,McClellan Summation Index,";
    resp += "None,Open-10 TRIN,Overbought/Oversold,STIX,Upside-Downside Ratio,Upside-Downside Volume";
    resp1 = "abi,adl,adr,amd,ai,bt,cvi,mosc,msi,none,trin,obos,stix,udr,udv";
    }
  else {
    resp = "Absolute Breadth Index,Advance/Decline Line,Advance/Decline Ratio,Advancing-Declining Issues," ;
    resp += "Arms' Index,Breadth Thrust,Cumulative Volume Index,McClellan Oscillator,McClellan Summation Index,";
    resp += "New Highs-Lows Cumulative,New Highs-New Lows,New Highs/Lows Ratio,";
    resp += "None,Open-10 TRIN,Overbought/Oversold,STIX,Upside-Downside Ratio,Upside-Downside Volume";
    resp1 = "abi,adl,adr,amd,ai,bt,cvi,mosc,msi,nhlc,nhmnl,nhlr,none,trin,obos,stix,udr,udv";
    }    
  var indBox = document.getElementById(indID);
  var selInd = indBox.options[indBox.selectedIndex].value;
  indBox.options.length = 0;
  var ropts = resp.split(",");
  var ropt1 = resp1.split(",");
  for (var i=0; i < ropts.length; i++) {
    if (ropt1[i] == selInd) { 
      indBox.options[i] = new Option(ropts[i], ropt1[i], false, true);
      }
    else {  
      indBox.options[i] = new Option(ropts[i], ropt1[i]);
      }  
    };
  }
