iframe auto resize height
<IFRAME onLoad="calcHeight('act_frame');" id="act_frame" SRC="test.cfm" WIDTH="100%" HEIGHT="100%" frameborder="0" scrolling="no"></iframe>
function calcHeight(the_iframe)
{
var the_height=document.getElementById(the_iframe).contentWindow.document.body.scrollHeight;//find the height of the internal page
var the_width=document.getElementById(the_iframe).contentWindow.document.body.scrollWidth;//find the width of the internal page
document.getElementById(the_iframe).style.height=the_height;//change the height of the iframe
document.getElementById(the_iframe).style.width=the_width;//change the width of the iframe
} var the_width=document.getElementById(the_iframe).contentWindow.document.body.scrollWidth;//find the width of the internal page
document.getElementById(the_iframe).style.height=the_height;//change the height of the iframe
document.getElementById(the_iframe).style.width=the_width;//change the width of the iframe

