//	'trialphoto' denotes the name of the pop-up window. This can be renamed.

function photoWindow(pic) {
	trialphoto=open('','trialphoto','status=no,width=500,height=415');
	trialphoto.document.write('<html><head><title>Photo</title>')
	trialphoto.document.write('</head>')
	trialphoto.document.write('<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" text="#333333" bgcolor="#666699" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="window.focus(\'self\');">')	
	trialphoto.document.write('<a href="javascript:window.close();">')
	trialphoto.document.write('<img src="' + pic + '" alt="Click on photo to close window &amp; return to previous page" border="0">')
	trialphoto.document.write('</a><table border="0" cellspacing="8" cellpadding="0" width="100%" bgcolor="#666699"><tr><td>')
	trialphoto.document.write('</td></tr><tr>')
	trialphoto.document.write('<td align="right"><a href="javascript:window.close();"><img src="images/close.gif" width="78" height="19" alt="Close window" border="0"></a></td>')
	trialphoto.document.write('</tr></table></body></html>')
	trialphoto.document.close()
}