function adjustIFrameSize (iframeWindow) {
  iframeWindow.name = "frameIngenie";
  var height_add = 35;

  if(document.getElementById) {
    var iframeElement = document.getElementById(iframeWindow.name);
    //on réinitialise la hauteur de l'iframe sinon la taille s'ajoute
    iframeElement.style.height = '0px';
    if (iframeWindow.document.compatMode &&
        iframeWindow.document.compatMode != 'BackCompat') 
    {
      iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + height_add + 'px';
      //iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 5 + 'px';
      iframeElement.style.width = iframeWindow.document.width +5+ 'px';
    }
    else {
      iframeElement.style.height = iframeWindow.document.body.scrollHeight + height_add + 'px';
      //iframeElement.style.width = iframeWindow.document.body.scrollWidth + 5 + 'px';
      iframeElement.style.width = iframeWindow.document.width +5+ 'px';
    }
  }
  else if (document.all) {
    var iframeElement = document.all[iframeWindow.name];
    //on réinitialise la hauteur de l'iframe sinon la taille s'ajoute
    iframeElement.style.height = '0px';
    if (iframeWindow.document.compatMode &&
        iframeWindow.document.compatMode != 'BackCompat') 
    {
      iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + height_add + 'px';
      iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 5 + 'px';
    }
    else {
      iframeElement.style.height = iframeWindow.document.body.scrollHeight + height_add + 'px';
      iframeElement.style.width = iframeWindow.document.body.scrollWidth + 5 + 'px';
    }
  }
  else if (iframeWindow.document.height) {
    var iframeElement = document.getElementById(iframeWindow.name);
    //on réinitialise la hauteur de l'iframe sinon la taille s'ajoute
    iframeElement.style.height = '0px';
    iframeElement.style.height = iframeWindow.document.height +height_add+ 'px';
    iframeElement.style.width = iframeWindow.document.width +5+ 'px';
  }
}