
var DPbgdiv=null;var DPbgiframe=null;var DPboxdiv=null;var DPtitlediv=null;var DPcontentdiv=null;var DPwidth=0;var DPtop=0;var DPleft=0;var DPreq=null;var DPtitle='';function DPinit()
{DPboxdiv=document.createElement('DIV');DPboxdiv.id='div_dpbox';document.body.appendChild(DPboxdiv);DPboxdiv.style.display='none';DPboxdiv.innerHTML='<div><div id="div_dptitle" style="float: left;"></div><img src="./images/btclose-off.gif" onmouseover="imgOn(this);" onmouseout="imgOff(this);" style="float: right;" class="pointer" onclick="DPclose();" alt="Cliquez pour fermer" /></div><br class="clear" /><div id="div_dpcontent"></div></div>';if((navigator.userAgent.indexOf('MSIE')>=0)&&(navigator.userAgent.indexOf('opera')==-1)&&document.all){DPbgiframe=document.createElement('IFRAME');DPbgiframe.id='div_dpbg';DPbgiframe.backgroundColor='transparent';DPbgiframe.src='#';DPbgiframe.onclick=function(){DPclose();};DPbgiframe.style.top='0px';DPbgiframe.style.left='0px';document.body.appendChild(DPbgiframe);}
DPbgdiv=document.createElement('DIV');DPbgdiv.id='div_dpbg';document.body.appendChild(DPbgdiv);DPbgdiv.onclick=function(){DPclose();};DPbgdiv.style.top='0px';DPbgdiv.style.left='0px';DPtitlediv=document.getElementById('div_dptitle');DPcontentdiv=document.getElementById('div_dpcontent');}
function DPopen(url,title,width,top,left,pdata)
{if(!(DPcontentdiv&&DPboxdiv&&DPtitlediv)){DPinit();}
DPshow('Chargement en cours...<i>'+title+'</i>',450,"<center><br /><br /><b><img src=\"./images/loading.gif\" align=\"absmiddle\" /> Chargement en cours...</b><br /><br /><input type=\"button\" class=\"button\" onClick=\"DPclose();\" value=\"Annuler\" /></center><br /><br />");if(DPreq&&DPreq.readyState<4){DPreq.abort();}
if(window.XMLHttpRequest){DPreq=new XMLHttpRequest();}else if(window.ActiveXObject){DPreq=new ActiveXObject("Microsoft.XMLHTTP");}
DPreq.onreadystatechange=DPgetResult;if(pdata){var method='post';}else{var method='get';}
DPreq.open(method,url,true);if(pdata)
DPreq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');DPreq.send(pdata);DPwidth=width;DPtop=top;DPleft=left;DPtitle=title;}
function DPshow(t,w,c)
{if(!(DPcontentdiv&&DPboxdiv&&DPtitlediv)){DPinit();}
var i=0;DPcontentdiv.innerHTML=c;DPtitlediv.innerHTML=t;DPboxdiv.style.width=w+'px';i=document.body.scrollWidth-parseInt(DPboxdiv.style.width);DPboxdiv.style.left=(i>0?(i/2):0)+'px';DPboxdiv.style.top=(document.body.scrollTop+50)+'px';if(DPbgiframe)
DPbgiframe.style.display='block';DPbgdiv.style.display='';DPboxdiv.style.display='';DPbgdiv.style.height=(document.body.clientHeight>document.body.scrollHeight?document.body.clientHeight:document.body.scrollHeight)+'px';DPbgdiv.style.width=document.body.scrollWidth+'px';if(DPbgiframe){DPbgiframe.style.height=DPbgdiv.style.height;DPbgiframe.style.width=DPbgdiv.style.width;}}
function DPgetResult(xmldoc)
{if(!DPreq){return;}
if(DPreq.readyState!=4){return;}
if(!DPreq.responseText){var code=DPreq.status;var msg="<a href=\"javascript:DPclose();\">Un probleme est survenu, la requete n'as pu etre terminee correctement. ["+code+"]</a>";}else{var regex=new RegExp('&amp;','gi');var msg=DPreq.responseText.replace(regex,'&');}
DPreq=null;DPshow(DPtitle,DPwidth,msg);}
function DPclose()
{if(DPbgdiv&&DPbgdiv.style)DPbgdiv.style.display='none';if(DPboxdiv&&DPboxdiv.style)DPboxdiv.style.display='none';if(DPbgiframe)DPbgiframe.style.display='none';if(DPreq&&DPreq.readyState<4)DPreq.abort();}