sizeAdjust = function() {
	var totalHeight, contentHeight, pageHeight, colmask=document.getElementById('colmask'), colright=document.getElementById('colright');
	if (navigator.appName.indexOf("Microsoft")!=-1) {
		pageHeight = document.body.offsetHeight+3;
	} else {
		pageHeight = window.innerHeight;
	} 
	if (colmask) {
		contentHeight = colmask.offsetHeight;
		totalHeight = contentHeight+221;
		if(pageHeight>totalHeight) {
			colmask.style.height = (pageHeight-245)+'px';
			if(colright)colright.style.height = (pageHeight-245)+'px';
			return true;
		} else {
			return false;
		}
	} else {
		return false;
	}
	
}
	
if (window.addEventListener) //DOM method for binding an event
window.addEventListener("load", sizeAdjust, false);
else if (window.attachEvent) //IE exclusive method for binding an event
window.attachEvent("onload", sizeAdjust);
else if (document.getElementById) //support older modern browsers
window.onload=sizeAdjust;
