// This script extends the height of a div to either the height of the html page or the height of the window,
//whichever is tallest.

function resize(){  

var frame = document.getElementById("container");
var htmlheight = document.body.parentNode.scrollHeight; // Read content height.
var windowheight = window.innerHeight; // Read window height in Moz.
var isIE = (navigator.appName.indexOf("Microsoft") !=-1); // Check if browser is IE.

if(isIE) {
	windowheight = document.documentElement.clientHeight; // Read window height in IE.
} 

if ( htmlheight > windowheight ) {
	frame.style.height = htmlheight + "px";
	}  
else { 
	frame.style.height = windowheight + "px";
	}  

}

