// JavaScript Document
<!--  ToolTip [ infobulle ]   --> 
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
offsetX = 10;
offsetY = 20;

var InfoBullStyle="";
function initToolTips()
{
InfoBullStyle = document.getElementById("InfoBull").style;
 
		InfoBullStyle.visibility = "visible";
		InfoBullStyle.display = "none";
		document.onmousemove = moveToMouseLoc;
  
}


function toolTip(msg, fg, bg)
{
  if(toolTip.arguments.length < 1) // hide
  {
    if(ns4) InfoBullStyle.visibility = "hidden";
    else InfoBullStyle.display = "none";
  }
  else // show
  {
    if(!fg) fg = "#777777";
    if(!bg) bg = "#FFFFFF";
    var content ='' + msg +'';
	
    if(ns4)
    {
      InfoBullStyle.document.write(content);
      InfoBullStyle.document.close();
      InfoBullStyle.visibility = "visible";
    }
    if(ns6)
    {
      document.getElementById("InfoBull").innerHTML = content;
      InfoBullStyle.display='block'
    }
    if(ie4)
    {
      document.all("InfoBull").innerHTML=content;
      InfoBullStyle.display='block'
    }
  }
}
function moveToMouseLoc(e)
{
  if(ns4||ns6)
  {
    x = e.pageX;
    y = e.pageY;
  }
  else
  {
    x = event.x + document.body.scrollLeft;
    y = event.y + document.body.scrollTop;
  }
  InfoBullStyle.left = x + offsetX;
  InfoBullStyle.top = y + offsetY;
  return true;
}




<!--  Div CLIENT  [ Pop-Up ] --> 
function SpotIt(ido,nom,mapdir){
var xhr=null;
if(window.XMLHttpRequest){
	var xhr = new XMLHttpRequest();} 
else if(window.ActiveXObject){
	var xhr = new ActiveXObject("Microsoft.XMLHTTP");}
else {alert("Votre navigateur n'est pas compatible avec AJAX");}

xhr.onreadystatechange = function(){
	//visibilite('Viewer');
//CallFlash(ido);
	var divAlert = document.getElementById("client");
	divAlert.style.display='';  
<!-- je recupere le contenue de updChat.php et l'affiche dans ma div pour verifier le resultat-->
		divAlert.innerHTML = xhr.responseText;
		document.title="Liste des artisans à "+nom+"";
}
xhr.open("POST", mapdir+"/loadSpot.php", true); 
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send('ido='+ido+'&nom='+nom);
}


function cloz(){
document.getElementById('client').style.display='none';
}

