	
function resize(){  
	var frame = document.getElementById("insidebg");  
	var htmlheight = document.body.parentNode.scrollHeight;  
	var windowheight = window.innerHeight;  
	if (dontresize != 1) {
		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";
		}  
	}
} 


window.onload = function() { 
resize(); 
} 
window.onresize = function() { 
resize();
} 
