function getXMLHttpRequest(){var xhr = null;if (window.XMLHttpRequest || window.ActiveXObject){if (window.ActiveXObject) {try {xhr = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){xhr = new ActiveXObject("Microsoft.XMLHTTP");}}else{xhr=new XMLHttpRequest();}}else{alert("Error: XMLHTTPRequest...");return null;}return xhr;}function OpenBox(env, t){targetElement1 = document.getElementById(env);if (targetElement1.style.display == ""){targetElement1.style.display = "none" ;}else {targetElement1.style.display = "" ;
var xhr = getXMLHttpRequest();xhr.onreadystatechange = function(){if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)){document.getElementById('cont1').innerHTML = xhr.responseText;}};xhr.open("GET", "contenu.php?te=" + t, true);xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");xhr.send(null);}}function DiapoAr(p, d){targetElement2 = document.getElementById("box2");targetElement3 = document.getElementById("box3") ;
targetElement3.style.display = "none" ;if (targetElement3.style.display == "none"){targetElement2.style.display = "" ;}for(i=1; i<=4; i++){if(i==p){document.getElementById("select"+i).className = "bord_03";}else{document.getElementById("select"+i).className = "bord_0b";}}var xhr = getXMLHttpRequest();xhr.onreadystatechange = function(){if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)){document.getElementById('dipo1').innerHTML = xhr.responseText;}};xhr.open("GET", "contenu.php?dp=" + p + "&d=" + d, true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");xhr.send(null);}
