function initHeight() {
	var windowHeight = 0;
	var offset = 120;
	if (typeof(window.innerHeight) == 'number') {
		document.getElementById("content").style.height = "auto";
		if (document.body.offsetHeight < window.innerHeight) {
			windowHeight = window.innerHeight - offset;
		} else {
			windowHeight = document.body.offsetHeight - offset;
		}
	}
	else if (document.documentElement && document.documentElement.clientHeight) {
		windowHeight = document.documentElement.clientHeight - offset;
	}
	else if (document.body && document.body.clientHeight) {
		windowHeight = document.body.clientHeight - offset;
	}
	if(document.getElementById("content") != null)
		document.getElementById("content").style.height = windowHeight - offset +"px";
}

window.onload=initHeight
window.onresize=initHeight