<!--

var popupHandleI;

function popupI(picUrlString, windowWidth, windowHeight)
{

  // Always close the old one, so only one at a time is open
  if(popupHandleI || popupHandleI!=null)
  {
    if (!popupHandleI.closed) popupHandleI.close();
  }
  popupHandleI=null;

  // create a feature string for the popup
  var x=(screen.width-windowWidth)/2
  var y=(screen.height-windowHeight)/2
  var featureString = "toolbar=no,scrollbars=no,resizable=no"
  featureString = ',left='+x + ',top='+y
  featureString += ',width='+windowWidth+',height='+windowHeight

  // html content of the popup
  var htmlString = "<html><head><title>Click to close.</title></head>"
  htmlString += "<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor=black text=\"white\" onclick=\"self.close()\">"
  htmlString += "<A HREF=\"javascript:window.close();\" title=\"Close.\" >"
  htmlString += "<IMG SRC=\"" + picUrlString + "\" BORDER=\"0\" WIDTH=" + windowWidth + " HEIGHT=" + windowHeight + "></A>"
  htmlString += "</body></html>"

  popupHandleI = window.open("" ,"popup",featureString)
  popupHandleI = window.open("" ,"popup")
  popupHandleI.document.clear();
  popupHandleI.document.writeln(htmlString);
  popupHandleI.focus();
  popupHandleI.document.close(); // should trigger the picture loading.
  return popupHandleI;

}

function winclose()
{
  if (window.popupHandleI!=null && !window.popupHandleI.closed)
  {
    window.popupHandleI.close();
  }
}

function doNothingI(){} // does nothing but required by JavaScript in this case
//-->