Logic Ali,
The script still does not work.
Thanks a ton for you're reply!

I have changed the .js and got rid of the "px". The outcome in my browser is the exact same as when before. When i combine the two scripts it only shows the iframe as i tiny little square.
Thanks for explaning the css bit.
function autoResize(id){
var newheight;
var newwidth;
{
newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
}
document.getElementById(id).height = newheight;
document.getElementById(id).width = newwidth;
}