var xmlHttpRequest=getXmlHttpRequest();function addEventLst(d,b,c,a){a=typeof(a)=="boolean"?a:false;if(d.addEventListener){d.addEventListener(b,c,a)}else{if((d==window)&&document.addEventListener){document.addEventListener(b,c,a)}else{if(d.attachEvent){d["e"+b+c]=c;d[b+c]=function(){d["e"+b+c](window.event)};d.attachEvent("on"+b,d[b+c])}else{d["on"+b]=c}}}}String.prototype.trim=function(){return this.replace(/(^\s+)|(\s+$)/g,"")};addEventLst(window,"load",ChangeEval);function ChangeEval(){if(!xmlHttpRequest){return}var b=Array("index1","index2","index3");var d,a,e;for(var c=0;c<b.length;c++){if(!document.getElementById(b[c])){continue}d=document.getElementById(b[c]).tBodies[0].rows;for(a=0;d[a];a++){e=d[a].cells[d[a].cells.length-1].getElementsByTagName("a")[0];addEventLst(e,"click",evtLstLoadForm)}}}function evtLstLoadForm(a){var b=this;while(b.nodeName.toLowerCase()!="tr"){b=b.parentNode}if(b.cells[b.cells.length-1].getElementsByTagName("form").length!=0){Close();if(a&&a.preventDefault){a.preventDefault()}else{if(window.event){window.event.returnValue=false}}return false}Close();xmlHttpRequest.open("GET",this.href,true);xmlHttpRequest.setRequestHeader("User-Agent","Opquast/Ajax");xmlHttpRequest.send(null);xmlHttpRequest.onreadystatechange=function(){if(xmlHttpRequest.readyState==4){if(xmlHttpRequest.status==200){var f=document.createElement("div");f.innerHTML=xmlHttpRequest.responseText;var h=null;for(i=0;i<f.getElementsByTagName("div").length;i++){if(f.getElementsByTagName("div")[i].getAttribute("id")=="link_box"){h=f.getElementsByTagName("div")[i];break}}if(!h){return}var e=document.createElement("div");e.id="formContainer";e.appendChild(h);f=null;btnClose=document.createElement("input");btnClose.setAttribute("type","button");btnClose.setAttribute("value",btnfrm_text);btnClose.className="soumettre";btnClose.onclick=function(){Close()};h.appendChild(btnClose);e.style.margin="0";e.style.padding="1ex";e.style.width="150px";e.style.height="100px";e.style.border="2px solid black";e.style.backgroundColor="white";e.style.position="absolute";e.style.right="105px";e.style.zIndex="10";e.style.textAlign="left";b.cells[b.cells.length-1].appendChild(e);if(document.documentElement.offsetHeight&&e.offsetTop){var d=document.documentElement.offsetHeight;var c=e.offsetTop;var g=e.offsetHeight;if(d<(c+g)){document.documentElement.style.minHeight=(c+g)+"px"}}}else{}}};if(a&&a.preventDefault){a.preventDefault()}else{if(window.event){window.event.returnValue=false}}return false}function Close(){var b=document.getElementById("formContainer");if(b){b.parentNode.removeChild(b);var a=document.body.style.display;document.body.style.display="none";document.body.style.display=a}};