function getWindowHeight(){
	var windowHeight=0;
	if (typeof(window.innerHeight)=='number') {
		windowHeight=window.innerHeight;
	} else {
		if (document.documentElement&&document.documentElement.clientHeight) {
			windowHeight=document.documentElement.clientHeight;
		} else {
			if (document.body&&document.body.clientHeight) {
				windowHeight=document.body.clientHeight;
			}
		}
	}
	return windowHeight;
}
	
function setsize(){
	var obj = document.getElementById('main_content');
	obj.style.height = '';
	contentHeight = obj.offsetHeight + 200;
	if(contentHeight < getWindowHeight()){
		obj.style.height = (getWindowHeight() - 225) + 'px';
	}
}
	

window.onresize = function() {
	setTimeout("setsize()",500);
}

window.onload = function(){
	setsize();
}