
	function calculateHeight() {
		var spaceTop = 220;
		var spaceBottom = 35;
		var spaceLeft = 300;
		var spaceRight = 50;
		var contentElement = document.getElementById("contentBox");
		var contentHeight = getBodyDimension(false) - spaceTop - spaceBottom;
		contentElement.style.height = contentHeight + "px";

		var contentWidth = getBodyDimension(true) - spaceLeft - spaceRight;
		contentElement.style.width = contentWidth + "px";
		contentElement.style.display = "";

		var scrollContentElement = document.getElementById("scrollspacer");
		scrollContentElement.style.width = (contentWidth - 20) + "px";

	}

	function getBodyDimension(width) {
		var x,y;
		if (self.innerHeight) { // all except Explorer
			x = self.innerWidth;
			y = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) {	// Explorer 6 Strict Mode
			x = document.documentElement.clientWidth;
			y = document.documentElement.clientHeight;
		}	else if (document.body) { // other Explorers
			x = document.body.clientWidth;
			y = document.body.clientHeight;
		}
		if (width == true) return x;
		return y;
	}


