
/******************************************************************************
 ******************************************************************************/

function inline(obj, file)
{
  // check to see if it's there
  if(obj.nextSibling.className == "inline") {
    obj.parentNode.removeChild(obj.nextSibling);
    return;
  }
/*
  for(ele = obj.firstChild; ele; ele = ele.nextSibling) {
    if(ele.className == "inline") {
      obj.removeChild(ele);
      return;
    }
  }
*/

  http = new XMLHttpRequest();
  http.onreadystatechange = function() {
    if(http.readyState != 4)
      return;
  
    if(http.status != 200)
      return;

    inline_stchg(obj, http.responseText);
  }
  http.obj = obj;
  http.open('GET', file, true);
  http.send(null);
}

  
function inline_stchg(obj, txt)
{
  node = document.createElement("div");
  node.className = "inline";
  pre = document.createElement("pre");
  pre.className = "inline";
  node.appendChild(pre);
  pre.appendChild(document.createTextNode(txt));
  obj.parentNode.insertBefore(node, obj.nextSibling);
}

/******************************************************************************
 ******************************************************************************/

