function resizeIframe() {

  if (window.innerHeight) {
    var myclientHeight = window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    var myclientHeight = document.body.clientHeight;
  }
  else myclientHeight = 0;

    myclientHeight -= 130;
     
    //height -= document.getElementById('pdfframe').offsetTop;
    // not sure how to get this dynamically
    //height -= 442; /* whatever you set your body bottom margin/padding to be */
    document.getElementById('pdfframe').height = myclientHeight +"px";
}

function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.clientHeight;
  } else {
    return 0;
  }
}

/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = resizeIframe;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}
