<!--

document.writeln('<div id="postit" style="position:absolute;left:-400px;top:0px;width:400px;height:300px;"><div id="contenu"></div></div>');





function postit(xo,yo,texte){





if (!document.all){

	// Définition du calque dans une variable pour plus de commodité

	calque=document.getElementById('postit');

	// Si la coordonnée xo du postit vaut -1, alors on le centre en largeur

  	if (xo==-1){xo=(window.innerWidth/2)-150;}

	// Si la coordonnée xo du postit vaut -1, alors on le centre en hauteur

  	if (yo==-1){yo=250;}

	// Application de la position au calque

  	calque.style.left=xo;

	calque.style.top=yo;

	// Insertion du contenu du postit

  	document.getElementById('contenu').innerHTML='<table border=1 style="width:400px;height:300px;border: solid 5px black;background-color:white;"><tr><td><div align="center"><div class="DLAlerte"><img src="images/alerte.gif" width="80" height="80"></img></div><div style="font-size:14pt;color:red;font-style:bold;">'+texte+'</div></div><br><br><br><div align="center"><button style="width:100;" class="okay" Onclick="javascript:fermeIt()"> Ok </button></div></td></tr></table></TD></TR></TABLE><DIV id="close" style="position:absolute;top:0px;left:275px;width:24px;height:24px;"></DIV><BR>';

	// Et enfin affichage du calque

  	calque.style.visibility="visible";



 }

 else{

  if (xo==-1){xo=(document.body.clientWidth/2)-150;}

  if (yo==-1){yo=250;}

  document.all.postit.style.left=xo;document.all.postit.style.top=yo;

  document.all.contenu.innerHTML='<table border=1 style="width:400px;height:300px;border: solid 5px black;background-color:white;"><tr><td><div align="center"><div class="DLAlerte"><img src="images/alerte.gif" width="80" height="80"></img></div><div style="font-size:14pt;color:red;font-style:bold;">'+texte+'</div></div><br><br><br><div align="center"><button style="width:100;" class="okay" Onclick="javascript:fermeIt()"> Ok </button></div></td></tr></table></TD></TR></TABLE><DIV id="close" style="position:absolute;top:0px;left:275px;width:24px;height:24px;"></DIV><BR>';

  document.all.postit.style.visibility="visible";

 }

}



function fermeIt(){

if (!document.all) {

	calque=document.getElementById('postit');

  	calque.innerHTML="";

  	calque.style.visibility="hidden";

 	}

 else{

  postit.innerHTML="";

  document.all.postit.style.visibility="hidden";

 }

}

//-->

