function dispTicker(ticker) {
  var secCode = findSector(ticker);
  if (secCode == -1)
    alert ("Ticker Not Found");
  else {
    secCode = String(secCode);
    if (secCode.substring(0,1) == "4") {
      top.region = "US";
      document.controls.region.selectedIndex = 1;
    }
    else {
      top.region = "NonUS";
      document.controls.region.selectedIndex = 2;
    }
    if (top.superType == top.t_overview || top.superType == top.t_heatmap)
      top.superType = top.t_secCht;
    top.lastSecCode = secCode;
    top.run(top.superType);
  }
}

function findSector(ticker) {
  var
    max = M.length - 1,
    min = 0,
    found = false,
    notFound = false,
    ticker = ticker.toLowerCase();
  while (!found && !notFound) {
    var i = Math.round((max - min) / 2 + min);
    if (ticker == M[i].t)
      found = true;
    else if (ticker > M[i].t)
      min = i + 1;
    else
      max = i - 1;
    if (min > max)
      notFound = true;
  }
  if (found)
    return M[i].s;
  else
    return -1;
}


