function which_browser() {
	return browser=navigator.appName;
}
function ie_ver() {
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ 
	var ieversion=new Number(RegExp.$1);
	return ieversion;
	}
}
function check_it() {
	var total_height = document.body.parentNode.clientHeight;
	var total_width = document.body.parentNode.clientWidth;
	var maincontent = $('maincontent');
	//This is for IE
	maincontent.setStyle('height',total_height - 80);
	var _ver = ie_ver();
	if (which_browser().indexOf('Internet Explorer') != -1) {
		if (_ver >7) {
			//Do nothing, I know that this works - JET	
		} else {
			maincontent.setStyle('width',total_width + 18);
		}
	} else {
		maincontent.setStyle('width',total_width);
	}		
	maincontent.setStyle('overflow-y','scroll');
}
window.addEvent("resize",check_it);
window.addEvent("load",check_it);
