﻿ function resize_iframe_1(iframeName)
    {
        var height=window.innerWidth;//Firefox
        if (document.body.clientHeight)
        {
	        height=document.body.clientHeight;//IE
        }
        //resize the iframe according to the size of the
        //window (all these should be on the same line)
        document.getElementById(iframeName).style.height=parseInt(height-document.getElementById(iframeName).offsetTop-8)+"px";
    }
    
    
function resize_iframe(iframeName)
{
    //find the height of the internal page

	    var the_frm = document.getElementById(iframeName);
	    if(the_frm == null)
	    {	
		    the_frm = parent.document.getElementById(iframeName);
	    }
	    if(the_frm != null)
	    {	
		    var the_height= the_frm.contentWindow.document.body.scrollHeight;
		    //change the height of the iframe
		    the_frm.height = the_height;
	    }    
}
