// Stretch a DIV to be 100% of the window height

// replace these lines (with your value) to subtract the total height of your header and footer combined (ie 250)
// var htmlheight = (document.body.parentNode.scrollHeight -250);  
// var windowheight = (window.innerHeight -250);  

function resize(){  
var frame = document.getElementById("page");  
var htmlheight = document.body.parentNode.scrollHeight;  
var windowheight = window.innerHeight;  
if ( htmlheight < windowheight ) { document.body.style.height = windowheight + "px"; frame.style.height = windowheight + "px"; }  
else { document.body.style.height = htmlheight + "px"; frame.style.height = htmlheight + "px"; }  
} 
