// Script to open a popup window with four parameters

var PicWin;
var newPicHeight;
var truePicHeight;
var _caption;
function picture(picname,picheight,picwidth,pictitle) {
	if(PicWin && !PicWin.closed) { PicWin.close();}
  _winName = "BigPicWindow";
  newPicHeight = picheight *1;
  truePicHeight = newPicHeight
  newPicHeight = newPicHeight + 25;
  _extended_height = "height=" + newPicHeight;
  _extended_width = "width=" + picwidth;
  _extended_urlLoc = picname;
  _caption = pictitle;

  PicWin=window.open

("",_winName,'status=0,scrollbars=0,resizable=0,' + _extended_height + ',' + _extended_width + ',screenX=50,screenY=50,top=150,left=150');

  PicWin.document.open();
  PicWin.document.writeln('<html>');
  PicWin.document.writeln('<head>');
  PicWin.document.writeln('<title>Carol Rowlands</title>');
  PicWin.document.writeln('</head>');
  PicWin.document.writeln('<body topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">');

// Firefox rejected "text-align : center;" as a style attribute for either table cell or p, although Explorer accepted it in td.

PicWin.document.writeln('<table border="0" margin = "0" cellspacing="0" padding="0" style="border-collapse:collapse; height:25px; width: ' + (picwidth +5 ) + 'px;"><tr><td width="' + picwidth + '" border="0" margin = "0" style = "background-color: #9E2A36; color: white;vertical-align: middle; font-family:Arial,Helvetica,Geneva,Sans-serif,sans-serif; font-size:9pt";><p align="center" style = "width: ' + picwidth + 'px;"><b>' + _caption + '</p></b></td></tr></table>');

  PicWin.document.writeln('<img src="' + picname + '" width = "' + picwidth + '">');

  PicWin.document.writeln('</body>');
  PicWin.document.writeln('</html>');
  PicWin.document.close();
}