function _OpenPopup(address, title, width, height) {
  OpenWin = this.open(address, title, "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",top=10,left=10");
}
function OpenPopup(address, title, width, height) {
	var wSpace = width;
	var hSpace = height;
	var width = (screen.availWidth - wSpace)/2;
	var height = (screen.availHeight - hSpace)/2;
	
	windowprops = 'left=' + width + ',top=' + height + ',width=' + wSpace + ',height=' + hSpace + ',menubar=0,toolbar=0,status=0,location=0,scrollbars=1,resizable=1';
	popupWindow = open(address, title, windowprops);
	if (popupWindow.opener == null) 
			popupWindow.opener = self;
} 