function adjustHeight(){
	var height = document.getElementById("container").clientHeight
	if(GetHeight() > height + 123){
		if(navigator.appVersion.indexOf("MSIE 6.0") > 0){
			document.getElementById("container").style.height = GetHeight() - 250 + "px";
		}else{
			document.getElementById("container").style.minHeight = GetHeight() - 250 + "px";
		}
	}
}    	
function GetHeight(){
	if (self.innerHeight){
		return self.innerHeight;
	}
	if (document.documentElement && document.documentElement.clientHeight){
		return document.documentElement.clientHeight;
	}
	if (document.body){
		return document.body.clientHeight;
	}
}
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}
}
addLoadEvent(adjustHeight)
