<!-- start of JS
var win = null;
var np = null;
var np2 = null;
var pageTitle = 1;

function winOpen(url, w, h)
{
   var params = "width=" + w + ",height=" + h + '"';
   win = window.open("images/" + url, "new", params);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function makeNewText(message, url, w, h)
{
   ww = w + 30;  // Give extra space for "Close Window" button.
   hh = h + 110;  // Give extra space for "Close Window" button.

   var topHor = (screen.width - w) / 2;
   var topVer = (screen.height - h) / 2 - 50;

   var params = "left=" + topHor + ",top=" + topVer;
   params += ",width=" + ww + ",height=" + hh + '"';

   var page = '<html><head><title>Full Size Image: ' + url + '</title></head>';
   page += '\n<body bgcolor="white">';
   page += '\n<table align="center" border="0" cellspacing="3" cellpadding="0">';
   page += '\n<tr><td align="center">';
   page += '\n<form method="post" ';
   page += '\nonSubmit="window.close(); return false;">';
   page += '\n<input type="submit" value="Close Window"></form>';
   page += '\n<tr><td align="center" valign="top">';
   page += '\n<img width="' + w + '" height="' + h + '" src="images/' + url + '">';
   page += '\n</td</tr>';

   if ((makeNewText.length > 3) && (message != ""))
   {
       page += '\n<tr><td align="center">' + message + '</tr></td>';
   }
   page += '\n</table>';

   page += "\n</body></html>";

   pageTitle++;

   np = window.open("", pageTitle, params);
   np.document.open();
   np.document.write(page);
   np.document.close();

   if (parseInt(navigator.appVersion) >= 4) { np.window.focus(); }
}

function makeNew(url, w, h)
{
   ww = w + 30;  // Give extra space for "Close Window" button.
   hh = h + 70;  // Give extra space for "Close Window" button.

   var topHor = (screen.width - w) / 2;
   var topVer = (screen.height - h) / 2 - 30;

   var params = "left=" + topHor + ",top=" + topVer;
   params += ",width=" + ww + ",height=" + hh + '"';

   var page = '<html><head><title>Full Size Image: ' + url + '</title></head>';
   page += '\n<body bgcolor="white">';
   page += '\n<table align="center" border="0" cellspacing="0" cellpadding="0">';
   page += '\n<tr><td align="center">';
   page += '\n<form method="post" ';
   page += '\nonSubmit="window.close(); return false;">';
   page += '\n<input type="submit" value="Close Window"></form>';
   page += '\n<tr><td align="center" valign="top">';
   page += '\n<img width="' + w + '" height="' + h + '" src="images/' + url + '">';
   page += '\n</td</tr>';
   page += '\n</table>';
   page += "\n</body></html>";

   pageTitle++;

   np = window.open("", pageTitle, params);
   np.document.open();
   np.document.write(page);
   np.document.close();

   if (parseInt(navigator.appVersion) >= 4) { np.window.focus(); }
}
// -->
