var doc_bulle;
var div_bulle;

function bulle_html(url,idnode) {
  div_bulle = document.createElement("div");
  div_bulle.appendChild(document.createElement("div"));
  div_bulle.appendChild(document.createElement("div"));
  div_bulle.childNodes[0].appendChild(document.createElement("a"));
  div_bulle.childNodes[0].childNodes[0].appendChild(document.createTextNode("Fermer"));
  div_bulle.childNodes[0].childNodes[0].href='#';
  div_bulle.childNodes[0].childNodes[0].onclick = function() {
    document.getElementsByTagName("body")[0].removeChild(this.parentNode.parentNode);
  }
  document.getElementsByTagName("body")[0].appendChild(div_bulle);
  div_bulle.childNodes[1].parentNode.id=idnode;
  
  doc_bulle = getTextHTTPObject(copie_HTML);
  doc_bulle.open('GET',url,true); 
  doc_bulle.send(null);
    
  //
  if (document.all) { // IE
    div_bulle.style.setAttribute('cssText','position: absolute; top: '
    +'200px; left: 10%; width: 80%; height:400px; z-index: 100; '+
    'background-color: #f0f6d2; border: 1px solid #acacac; padding: 10px; padding-left: 50px;');
    div_bulle.childNodes[0].style.setAttribute('cssText','height:20px; text-align: right;');
    div_bulle.childNodes[1].style.setAttribute('cssText','height:380px; overflow: auto;');
  } else { 
    div_bulle.setAttribute('style','position: absolute; top: '
    +'200px; left: 10%; width: 80%; height:400px; z-index: 100; '+
    'background-color: #f0f6d2; border: 1px solid #acacac; padding: 10px; padding-left: 50px;');
    div_bulle.childNodes[0].setAttribute('style','height:20px; text-align: right;');
    div_bulle.childNodes[1].setAttribute('style','height:380px; overflow: auto;');
  }

  return(true);
}

function copie_HTML(texte) {
  div_bulle.childNodes[1].innerHTML = texte;
}