<iframe width="100%" height="100%" name='mainframe' id='mainframe' src="" frameBorder='0' scrolling='yes' onload="changeFrameHeight()"></iframe>
<script>
function changeFrameHeight(){
var ifm= document.getElementById("mainframe");
ifm.height=document.documentElement.clientHeight-120;
}
window.onresize=function(){
changeFrameHeight();
}
(function(){
changeFrameHeight();
});
</script>