var EnableSizeReport = false;
var oldwidth = 0;
var oldheight = 0;
var moved = false;
var manualReport = false;

function PopupSizeReport() {
	getWindowSize();
	if ((moved) && (windowWidth == oldwidth) && (windowHeight == oldheight)) {
		moved = false;
		alert("width: " + windowWidth + "; height: " + windowHeight);
	}
	else if (manualReport) {
		manualReport = false;
		alert("width: " + windowWidth + "; height: " + windowHeight);
	}
	oldwidth = windowWidth;
	oldheight = windowHeight;
	reportTimer = setTimeout('PopupSizeReport()',500);
}

function popupsOnload() {
	
	sessioncounter = history.length;
	if (ie56) sessioncounter = 1+sessioncounter;
	backbutton = new getObj('backbutton');
	if (sessioncounter > 1) backbutton.style.display = "inline";
	if (EnableSizeReport) reportTimer = setTimeout('PopupSizeReport()',500); // sizing
}
womAdd('popupsOnload()');

window.onresize = function () {
	moved = true; // PopupSizeReport auto-alert
}

