function show_photo(pFileName, pTitle, pWidth, pHeight, pNote) {

	sW=screen.availWidth;
	sH=screen.availHeight;
	  
  vPos=(sH-pHeight-32)/2;
  hPos=(sW-pWidth)/2;

// specify window paramaters
	photoWin = window.open( '', 'Photo', 'width=' + pWidth +',height=' + pHeight + ',screenX=' +hPos + ',screenY=' +hPos + ',left=' + hPos +',top=' + vPos + ',scrollbars=1,resizable=1');

// wrote content to window
	photoWin.document.write('<html><head><title>' + pTitle + '</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1250"></head>');	
	photoWin.document.write('<body style="overflow: auto; margin: 10px; background-color: #000000;">');
	photoWin.document.write('<center>');
	photoWin.document.write('<a href="javascript:window.close();"><img style="border: solid 1px #606060;" src="' + pFileName + '" title="' + pNote + '" border="0"></a>');
	photoWin.document.write('</center></body></html>');
	photoWin.document.close();	
	
// If we are on NetScape, we can bring the window to the front
	if (navigator.appName.substring(0,8) == "Netscape") photoWin.focus();

}
