function resizeMe(id){
  //find the height of the internal page
  var min_height= 600;
  var the_height= document.getElementById(id).contentWindow.document.height || document.getElementById(id).contentWindow.document.body.scrollHeight;
  //change the height of the iframe
  document.getElementById(id).style.height = 0;
  document.getElementById(id).style.height = Math.max(min_height, the_height);
  if (id=='content')
  {ReloadPage();}
}

/* hack um das übergeordnete iframe anzupassen, wenn in einer page des inneren iframes ein weiterer link ausgeführt wird */
function ReloadPage () {
        var obj = top.document.getElementById('page');
        var the_height = document.height || document.body.scrollHeight;
        obj.style.height = 0;
        obj.style.height = the_height;
}

