function hoehe() { if(document.readyState != "complete") { window.setTimeout(hoehe, 100); return false; } document.getElementById("ekvwtermine").height = document.getElementById("ekvwtermine").contentWindow.document.body.offsetHeight + 30; document.getElementById("ekvwtermine2").height = document.getElementById("ekvwtermine2").contentWindow.document.body.offsetHeight + 30; }