// This WORKS!  A couple others I tried didn't.
// Stretches the height of a DIV to the height of the visible window if it is shorter to start.

function pght() {
	var frame = document.getElementById("frame1");
	var frameh = frame.offsetHeight;								// frame1 is ID of the div that needs to be stretched,
	var bodyh = document.getElementsByTagName("body")[0].offsetHeight;
	var pageh = document.getElementById("redframe").offsetHeight;
	if (pageh == bodyh) { 
		frame.style.height = (bodyh - 360) + "px"; 
	} 
}
pght();
