// This script opens a new browser window and writes
// HTML to display an image with a title and caption

function show_photo( pFileName, pTitle, pCaption) {

// specify window parameters
  photoWin = window.open( "", "photo", "width=840,height=760,status,scrollbars,resizable,screenX=20,screenY=40,left=20,top=40");

// wrote content to window
  photoWin.document.write('<html><head><title>' + pTitle + '</title></head>');	
  photoWin.document.write('<BODY BGCOLOR=#E4E8ED TEXT=#B68D55 LINK=#FF9900 VLINK=#FF9900>');
  photoWin.document.write('<center>');
  photoWin.document.write('<font size=+1 face="arial,helvetica">' + pCaption + '</font><br>');
  photoWin.document.write('<img src="' + pFileName + '"><p>');
  photoWin.document.write('<font face="arial,helvetica" font size=-1 font color="000000">');	
  photoWin.document.write( '"' + pTitle + '" photo &copy; Qualital<br>');
  photoWin.document.write('<p></font></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();

}
// done hiding from old browsers -->