
        
      function plier_deplier (idnonactif,idactif) {
         if (document.getElementById(idnonactif).style.display=='none') {
          document.getElementById(idnonactif).style.display='block';
          if (idactif!='') {
              document.getElementById(idactif).style.display='none';
          }
         
         } else {
          document.getElementById(idnonactif).style.display='none';
           if (idactif!='') {
            document.getElementById(idactif).style.display='block';
           }
         }
      }
   
      function plier_deplier_td (idnonactif,idactif) {
         if (document.getElementById(idnonactif).style.display=='') {
          document.getElementById(idnonactif).style.display='block';
          if (idactif!='') {
              document.getElementById(idactif).style.display='';
          }
         
         } else {
          document.getElementById(idnonactif).style.display='';
           if (idactif!='') {
            document.getElementById(idactif).style.display='block';
           }
         }
      }
      function plier (id) {
          document.getElementById(id).style.display='none';
      }
   
      function deplier (id) {
          document.getElementById(id).style.display='block';
            
         
      }
      
function adjustIFrameSize_ancien (iframeWindow) {
            if (iframeWindow.document.height) {
   alert("1"+iframeWindow.document.height);
                        var iframeElement = document.getElementById(iframeWindow.name);
                        iframeElement.style.height = iframeWindow.document.height + 30 + 'px';
                        iframeElement.style.width = iframeWindow.document.width + 30 +'px';
            } else if (document.all) {
                        var iframeElement = document.all[iframeWindow.name];
                        if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') {
                           
   alert("2"+iframeWindow.document.documentElement.scrollHeight);
                                   iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
                                   iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 145 + 'px';
                        } else {
   alert("3"+iframeWindow.document.body.scrollHeight);
                                   iframeElement.style.height = iframeWindow.document.body.scrollHeight + 5 + 'px';
                                   iframeElement.style.width = iframeWindow.document.body.scrollWidth + 145 + 'px';
                        }
            }
}
function adjustIFrameSize (iframeWindow,largeur,hauteur) {
   if (iframeWindow.document.height) {
      var iframeElement = document.getElementById(iframeWindow.name);
      iframeElement.style.height = hauteur + 50 + 'px';
      iframeElement.style.width = largeur + 50 + 'px';
   } else if (document.all) {
      var iframeElement = document.all[iframeWindow.name];
      if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') {

        iframeElement.style.height = hauteur + 50 + 'px';
        iframeElement.style.width = largeur + 50 + 'px';
      } else {
         iframeElement.style.height = hauteur + 50 + 'px';
         iframeElement.style.width = largeur + 50 + 'px';
      }
   }
}
