function show_photo(pFileName, pTitle, pWidth, pHeight) {

	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></head>');	
	photoWin.document.write('<body style="overflow: auto; margin-top: 10px; margin-left: 0px; margin-right:0px; margin-bottom:0px; background-color: #000000;">');
	photoWin.document.write('<center>');
	photoWin.document.write('<a href="javascript:window.close();"><img style="border: solid 1px #A0A0A0;" src="' + pFileName + '" title="click to close the window" border="0"></a>');
	photoWin.document.write('</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();

}