function openEditWindow(url, dt, id) {
	$pos = (window.opera) ? ", left=100, top=100" : "";
	nw = window.open(url, "apexd" + dt + id, "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, width=800, height=600" + $pos);
	nw.focus();
	return false;
}
function showImage(url, w, h, project, prefix) {
	href = "/show/?url=" + url;
	w += 20;
	h += 10;
	sh = screen.height - 80;
	if (document.all) sh -= 40;
	sw = screen.width;
	if (h > sh) h = sh;
	if (w > sw) w = sw;
	posX = sw/2 - w/2;
	posY = sh/2 - h/2;
	if (posY < 0) posY = 0;
	if (posX < 0) posX = 0;
	posCode = (document.all) ? ",left=" + posX + ",top=" + posY : ",screenX=" + posX + ",screenY=" + posY;
	//alert("w=" + w + "\nh=" + h + "\nposX=" + posX + "\nposY=" + posY);
	moreWin = window.open (href, "apexd", "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, width=" + w + ", height=" + h + posCode);
	moreWin.focus();
}

function popupWindow(url, w, h) {
	href = url;
	sh = screen.height - 80;
	if (document.all) sh -= 40;
	sw = screen.width;
	if (h > sh) h = sh;
	if (w > sw) w = sw;
	posX = sw/2 - w/2;
	posY = sh/2 - h/2;
	if (posY < 0) posY = 0;
	if (posX < 0) posX = 0;
	posCode = (document.all) ? ",left=" + posX + ",top=" + posY : ",screenX=" + posX + ",screenY=" + posY;
	moreWin = window.open (href, "idm_popup", "status=no, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, width=" + w + ", height=" + h + posCode);
	moreWin.focus();
}