function imgWindow(newFile,newWidth,newHeight,newTitle) {
  picFile = newFile          
  picWidth = newWidth
  picHeight = newHeight
  picTitle = newTitle
  winWidth = picWidth + 35
  winHeight = picHeight + 45

// Default BG color is black
var winBG = '080808'

  if (document.images) {

  // Netscape:  display photo in new window with title
  if (screen && winWidth > screen.width-10) {
    winWidth = screen.width - 10
  }

  // Position new window at top right corner
  leftPos = 0
  if (screen) {
    leftPos = screen.width - winWidth - 10
  }

  topPos = 20
  if (screen && winHeight > screen.height-60) {
    winHeight = screen.height - 60; topPos = 0
  }

  if (firstPhoto == true) {firstPhoto = false}
   else {
     if (picWindow && !picWindow.closed) {picWindow.close()}
  }

  picWindow=window.open(picFile,'picWin',
        'width='+winWidth+',height='+winHeight+',left='+leftPos+',top='+topPos+',scrollbars=yes,location=no')

  picWindow.document.write("<HTML><HEAD><TITLE>"+picTitle+"<\/TITLE><\/HEAD><BODY BGCOLOR="+winBG+"><IMG SRC='"+picFile+"' WIDTH="+picWidth+
    " HEIGHT="+picHeight+"><\/BODY><\/HTML>")

  picWindow.focus() 
 }
 
}

