function resize() {
	var mainTable = document.getElementById("mainTable");
	var content = document.getElementById('content');
	if (mainTable && content) {
		var sizeObj = getSize();
		var h = sizeObj.h - 140;
		mainTable.style.height = h;
		if (typeof (window.innerWidth) == 'number' ) {
			h = h - 33;
		}
		content.style.height = h +5;
	}
}
function getSize() {
	var obj = new Object();
	if (typeof (window.innerWidth) == 'number' ) {
		//Non-IE
		obj.w=window.innerWidth;
		obj.h=window.innerHeight;
	}
	else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
		//IE 6+ in 'standards compliant mode'
		obj.w=document.documentElement.clientWidth;
		obj.h=document.documentElement.clientHeight;
	}
	else if (document.body && ( document.body.clientWidth || document.body.clientHeight) ) {
		//IE 4 compatible
		obj.w=document.body.clientWidth;
		obj.h=document.body.clientHeight;
	}
	return obj;
}
function initJS() {
	resize();
	window.onresize = resize;
}