function get_trade_panel() {
  var numRadio, i, check_flag, stockID;
  numRadio = frmTAPanel.raStockID.length;
  
  check_flag = false;
  for (i = 0; i < numRadio; i++) {
    if (frmTAPanel.raStockID[i].checked) {
      stockID = frmTAPanel.raStockID[i].value;
      check_flag = true;
      break;
    }
  }
  
  if (check_flag)
    window.location.assign('../TradePanel/taTradePanel.asp?symbol=' + stockID);
  else
    alert("You did not select any symbol!");
}


function replace(info)
{
    info==replaceString('chr(34)','%22',info);
    info==replaceString('chr(44)','%27',info);
    info==replaceString('chr(96)','%60',info);
    info==replaceString('chr(39)','%27',info);
    info==replaceString('chr(40)','%28',info);
    info==replaceString('chr(41)','%29',info);
    
  
  return info;  
}      	 

var left;
var top;

function hlpinfo(info, place)
{
   //info==replace(info);
 
  if (place=='left')
  {
    left=130; // left=table_width+10
    top=0;
  }
  else if (place=='top1')
  {
    left=0;
    top=30;
  }
  else
  {
    left=0;
    top=0;
  }
  document.onmousemove=newPos;
  if (document.layers)
  document.captureEvents(Event.MOUSEMOVE);                               																							
  txt="<div><table width=120 bgcolor=#336699 CELLPADDING=0 CELLSPACING=0 border=0><tr><td><table width=100% CELLPADDING=1 CELLSPACING=1 border=0><tr><td bgcolor=#ffffdd><font face='Verdana, Arial, Helvetica' size=1 color=#336699>"+info+"</font></td></tr></table></td></tr></table></div>";
  divwrite(txt);
  if (document.layers)
  {
    divwrite(txt);
    showinfo();
  }
}

function divwrite(txt)
{
  if (document.all)
    document.all["hlpdiv"].innerHTML = txt;
  else
  {
    /*var lyr = document.getElementById("hlpdiv").document;
    lyr.write(txt);
    lyr.close();*/
    document.getElementById("hlpdiv").innerHTML = txt;
    //document.getElementById("hlpdiv").close();
  }
}

function showinfo()
{
  if (document.all)
  {
    document.all.hlpdiv.style.visibility="visible";
  }
  else
    document.getElementById("hlpdiv").style.visibility="visible";
}

function clrinfo()
{
  if (document.all){
    document.all.hlpdiv.style.visibility="hidden";
  }
  else{
    document.getElementById("hlpdiv").style.visibility="hidden";
  }
  document.onmousemove=fixPos;
  if (document.layers)
  document.captureEvents(Event.MOUSEMOVE);
}

function newPos(e){
  if (document.all)
  {
    fix1=document.body.scrollLeft+10;
    fix2=document.body.scrollTop+10;
    document.all.hlpdiv.style.left=event.clientX+fix1-left;
    document.all.hlpdiv.style.top=event.clientY+fix2-top;
  }
  else
  {
    document.getElementById("hlpdiv").style.left=e.pageX+10-left;
    document.getElementById("hlpdiv").style.top=e.pageY+10-top;
  }
    showinfo();
}

function fixPos(e){
  if (document.all)
  {
    document.all.hlpdiv.style.left=0;
    document.all.hlpdiv.style.top=0;
  }
}

