n4 = (document.layers)? true : false;
i4 = (document.all)? true : false;
n6 = false;

function showImage(pathName, winW, winH, winTitle) 
{
	if (n4 || i4 || n6) {
		posX = Math.round((screen.width - winW) / 2);
		posY = Math.round((screen.height - winH) / 2);
		posCode = (n4 || n6)? 'screenX='+posX+',screenY='+posY : 'left='+posX+',top='+posY;
	} else { 
		posCode = ''; 
	}
	cardWindow = window.open('about:blank','_blank','menubar=no,toolbar=no,scrollbars=no,status=no,width='+winW+',height='+winH+','+posCode);
	cardWindow.document.write('<html><head><title>'+winTitle+'<\/title><\/head>');
	cardWindow.document.write('<body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0>');
	cardWindow.document.write('<img ondblClick="window.close();" src="'+pathName+'" width="'+winW+'" height="'+winH+'" /><\/body><\/html>');
	cardWindow.document.close();
	cardWindow.focus();
}