// <!--
var popupWin = null;
function openWin(page,width,height) {
	if (x && y) {
		var posX = x;
		var posY = y;
	} else {
		if (browserName == 'MZ') {
			var posX = window.screenX+window.outerWidth/2-width/2;
			var posY = window.screenY+window.outerHeight/2-height/2;
		} else {
			var posX = screen.width/2-width/2;
			var posY = screen.height/2-height/2;
		}
	}
	popupWin = window.open(page,'winPopup',
		'dependent=yes,resizable=yes,toolbar=no,menubar=no,directories=no,scrollbars=no,status=no,location=no,width='+width+',height='+height+',screenX='+posX+',screenY='+posY+',left='+posX+',top='+posY);
	popupWin.focus();
}

var popupWinScroll = null;
function openWinScroll(page,width,height,x,y) {
	if (x && y) {
		var posX = x;
		var posY = y;
	} else {
		if (browserName == 'MZ') {
			var posX = window.screenX+window.outerWidth/2-width/2;
			var posY = window.screenY+window.outerHeight/2-height/2;
		} else {
			var posX = screen.width/2-width/2;
			var posY = screen.height/2-height/2;
		}
	}
	popupWinScroll = window.open(page,'winPopup',
		'dependent=yes,resizable=yes,toolbar=no,menubar=no,directories=no,scrollbars=yes,status=no,location=no,width='+width+',height='+height+',screenX='+posX+',screenY='+posY+',left='+posX+',top='+posY);
	popupWinScroll.focus();
}
// -->