var IB_Blab; 
function IB_processReqChange() 
{
 if(req.readyState == 4) 
 {
   if(req.status == 200)
   {
     document.getElementById(IB_Blab).innerHTML = req.responseText;
   }
   else
     document.getElementById(IB_Blab).innerHTML = '<font color=red>Error 11 Failed to reach server.</font>';
 }
}
// --------------------------------
function getSSd(furl,Ba,gid,h)
{
  IB_Blab = Ba;


  // Replace all \n's with HTML BR's in here first!
//alert("f:"+f+" w="+w);
//if(w==3) alert("st:"+document.mainfm.status_id[document.mainfm.status_id.selectedIndex].value);
//if(w==3) alert("st:"+document.mainfm.status_id.selectedIndex);
//alert("url:"+url);

url = furl+"?loc="+Ba+"&gene_id="+gid+"&hide="+h;
  
  document.getElementById(IB_Blab).innerHTML = '<i>working</i>';

  if(window.XMLHttpRequest) 
  {
    req = new XMLHttpRequest();
    req.onreadystatechange = IB_processReqChange;
    req.open("GET", url, true);
    req.send(null);
  } 
  else if(window.ActiveXObject) 
  {
    req = new ActiveXObject("Microsoft.XMLHTTP");
    if(req) 
    {
      req.onreadystatechange = IB_processReqChange;
      req.open("GET", url, true);
      req.send();
    }
  }
}
