// Alert DHTML
function makeAlert(name){this.corectX=0;this.corectY=0;	this.name=name;	this.html="";	this.thefocus="";	this.temp=10;	this.thediv=document.createElement("DIV");	this.thediv.id='divInfo';	this.thediv.className="transinfo";	this.thediv.style.visibility='hidden';	this.iserted=false;	this.tmpclose=null;	return this;}
makeAlert.prototype.showA=function(){if(document.getElementById('divInfo')==null){document.body.appendChild(this.thediv);}else{this.closeA();}if(navigator.appName){offsety=document.body.scrollTop;}else{offsety = window.pageYOffset;}this.thediv.innerHTML=this.html;this.divTop=((screen.height-(this.thediv.offsetHeight))/2)+this.corectY+offsety-140;this.divLeft=((screen.width-(this.thediv.offsetWidth))/2)+this.corectX;this.thediv.style.top=''+this.divTop+'px';this.thediv.style.left=''+this.divLeft+'px';this.thediv.style.visibility='visible';this.tmpclose = setTimeout(this.name+'.closeA()',this.temp*1000);}
makeAlert.prototype.closeA=function(){this.thediv.style.visibility='hidden';clearTimeout(this.tmpclose);if(this.thefocus!=undefined){document.getElementById(this.thefocus).focus();}}
document.onkeypress=function(e){if(typeof(myAlert)!='undefined'){var ev=window.event;if(window.event){key=window.event.keyCode;}else{key=e.which;}if((key==13||key==32)&&(typeof(myAlert)!='undefined')){if(myAlert.thediv.style.visibility!='hidden'){myAlert.closeA();return false;}else{return true;}}}return true;}
myAlert=new makeAlert('myAlert');myAlert.temp=5;myAlert.corectX=0;myAlert.corectY=0;
function messageAlert(thetext,idFocus){myAlert.thefocus=idFocus;myAlert.html=''+thetext+'<br><br><br><a onclick="myAlert.closeA();" href="javascript:myAlert.closeA();">Fermer cette fen&ecirc;tre</a><br><br>';myAlert.showA();}