function windowLoad () {
setWindowHeight();}
function windowResized () {
setWindowHeight();}
function setWindowHeight () {
var htmlheight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
htmlheight = window.innerHeight; }
else if( document.documentElement && document.documentElement.clientHeight ) {
htmlheight = document.documentElement.clientHeight; }
else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
htmlheight = document.body.clientHeight; }
var frame = document.getElementById("theContent");
var sizeTo = "0px";
var scrollHeight = document.documentElement.scrollHeight;
if (!scrollHeight || scrollHeight == 0 || scrollHeight == 'undefined'){scrollHeight = document.height ;}
if (htmlheight > scrollHeight){sizeTo = htmlheight}
else{sizeTo = scrollHeight;}
frame.style.height = (sizeTo-227)+"px"; //}}
window.onresize = windowResized;
