var MPImgWinHTML = "";
var MPPopWinHandle = "";
var MPLimitWrites = 0;
function MPImagePopup(image, width, height, title,id) {
	var url = "/include/ImageWinTemp.php";
	url += "?title="+escape(title)+"&image="+image+"&width="+width+"&height="+height;
	var xpos = (Math.round(screen.availWidth/2)-(width/2));
	var ypos = (Math.round(screen.availHeight/2)-(height/2));
	var windowOptions = "";
	windowOptions += "width="+width;
	windowOptions += ",height="+height;
	windowOptions += ",resizable=no";
	windowOptions += ",scrollbars=no";
	windowOptions += ",menubar=no";
	windowOptions += ",toolbar=no";
	windowOptions += ",directories=no";
	windowOptions += ",location=no";
	windowOptions += ",status=no";
	windowOptions += ",left="+xpos;
	windowOptions += ",top="+ypos;
	MPPopWinHandle = window.open(url, "popUpWin"+id, windowOptions);
	if (MPPopWinHandle && typeof MPPopWinHandle == "object") {
		if (!MPPopWinHandle.closed) MPPopWinHandle.focus();
		}
	return false;
	}