
function rectif ()
 {
    var col1=document.getElementById('conteneur');
    var x=col1.offsetHeight;
	
    //if(x<700) {document.getElementById('conteneur').style.height=700+'px';}
}  




function box(num,url) {
    bod                 = document.getElementsByTagName('body')[0];
    overlay             = document.createElement('div');
    overlay.id      = 'overlay';
    lb                  = document.createElement('div');
    lb.id               = 'lightbox';
    lb.className    = 'loading';
    lb.innerHTML    = '<div id="lbLoadMessage">' +
                          '<div id="haut_tab"><div id="mess"></div></div><div id="mi_tab"></div><div id="bas_tab"><div id="txt_bas"><a class="medium" href="#" onClick="bod.removeChild(overlay);bod.removeChild(lb);">Fermer</a></div></div>' +
                          '</div>';
    bod.appendChild(overlay);
    bod.appendChild(lb);
   contenu_pop(num,url);
}
function getXhr(){
                                var xhr = null; 
        if(window.XMLHttpRequest) // Firefox et autres
           xhr = new XMLHttpRequest(); 
        else if(window.ActiveXObject){ // Internet Explorer 
           try {
                      xhr = new ActiveXObject("Msxml2.XMLHTTP");
                  } catch (e) {
                      xhr = new ActiveXObject("Microsoft.XMLHTTP");
                  }
        }
        else { // XMLHttpRequest non supporté par le navigateur 
           alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
           xhr = false; 
        } 
                                return xhr
      }
function contenu_pop(num,url)
{

         var xhr = getXhr();
         document.getElementById("mi_tab").innerHTML="<div style=\"padding:3%;\"><img src=\""+url+"/images/working.gif\"></div>";
         var req='?num='+num+'&req='+new Date().getTime();
         xhr.open("GET",url+'/conditions.php'+req, true);
         xhr.send(null);
        xhr.onreadystatechange = function(){


              if (xhr.readyState==4)
             {

               if (xhr.status==200)
                {
                   document.getElementById("mi_tab").innerHTML='<div style="padding:3%;">'+xhr.responseText+'</div>';

                }

             }

        }

}
function deploie (){
(document.getElementById('deploie').style.display=='none') ? document.getElementById('deploie').style.display='block' : document.getElementById('deploie').style.display='none';
}
window.onload=rectif;