<iframe
id="contentFrame"
name="contentFrame"
src=""
frameborder="0"
scrolling="no"
width="100%"
height="100%"
οnlοad="Javascript:SetWinHeight(this)">
</iframe>
function SetWinHeight(obj)
{
var doc;
if(obj.contentDocument)
{
doc = obj.contentDocument.body;
}else if(obj.Document)
{
doc = obj.Document.body;
}
/*var s = "";
for(var p in doc)
{
if(p.indexOf("Height")>0)
{
s += p +"=" + doc[p] + "\n";
}
}
alert(s);*/
var h = Math.max(doc.scrollHeight,doc.offsetHeight,doc.clientHeight );
obj.style.height = h+ "px";
}