function displayImage (sTitle, sURL, sName, iWidth, iHeight, sCapt, sDate, sCopy)
{
  m = Math.round(122 + (18 * sCapt.length / 100));
  w = iWidth + 20;
  h = iHeight + m;
  s = 0;
  screenW = (screen.availWidth-15);
  screenH = (screen.availHeight-30);
  if ((w > screenW)||(h > screenH)) s = 1;
  if (s==1) {
    w = Math.min(screenW, (w + 16));
    h = Math.min(screenH, (h + 16));
  }
  features = "width="+w+",height="+h+",left=0,top=0,screenX=0,screenY=0";
  features += ",scrollbars="+s+",resizable=1,location=0,menubar=0,toolbar=0,status=0";
  newWindow=window.open("",sName,features);
  newWindow.document.open ();
  newWindow.document.writeln ('<html>');
  newWindow.document.writeln ('<head><title>' + sTitle + '</title></head>');
  newWindow.document.writeln ('<body bgcolor=\"#FFFFFF\" link=\"#0000FF\" vlink=\"#800080\" text=\"#000000\" alink=\"#FF0000\">');
  newWindow.document.writeln ('<img src=\"' + sURL + '\" alt="' + sTitle + '\" border=\"0\" width=\"' + iWidth + '"\ height=\"' + iHeight + '\">');
  if (sCapt) {
	newWindow.document.write ('<p align=\"center\"><font face=\"Comic Sans MS\" size=\"2\">' + sCapt + '<br>' + sDate +'</font></p>');
  }
  newWindow.document.writeln ('<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr>');
  if ((sCopy == "") || (sCopy == null)) sCopy = "2003";
  newWindow.document.writeln ('<td><font face=\"Comic Sans MS\" size=\"1\">&copy; Peter Oates ' + sCopy + '. The image on this page may <b>not</b> be reproduced without<br>the express permission of the <a href=\"mailto:scs@whitenap.plus.com\">Web Site manager</a>.</font></td>');
  newWindow.document.writeln ('<td align=\"right\"><font face=\"Comic Sans MS\" size=\"2\"><a href=\"#\" onclick=\"window.close()\">Close window</a></font></td></tr></table>');
  newWindow.document.writeln ('</body>');
  newWindow.document.writeln ('</html>');
  newWindow.document.close ();
}
//-->
