vOldHeight = null;

DoPrint = function() {
	if(mainScrollArea) {
		mainScrollArea.text.style.marginTop = '0px';
		//mainScrollArea.SetScrollPosition();
		vOldHeight = mainScrollArea.container.style.height
		mainScrollArea.container.style.height='auto';
	}
	window.print();
	if(mainScrollArea) {
		setTimeout('mainScrollArea.container.style.height=vOldHeight',2000);
	}
}

CenterContent = function() {
	vInnerHeight = (document.documentElement.clientHeight) ? document.documentElement.clientHeight : (window.innerHeight) ? window.innerHeight : 0;
	vContentHeight = 596;
	vMarginTop = (vInnerHeight-vContentHeight)/2;
	document.getElementById('divMainContainer').style.marginTop = ((vMarginTop > 0) ? vMarginTop : 0)+'px';
	document.getElementById('divMainContainer').style.visibility = 'visible';
}

onresize = CenterContent;
