function MakeNewWindow(imageName,Wide,Tall,msg) {
    Wide += 100;
    Tall += 100;  //add room for title etc
	newWindow = window.open(imageName,"Images","resizeable='yes',status="+msg+",height="+Tall+",width="+Wide)

// form the page to be seen
var newContent = "<HTML><HEAD><Title>" + msg + "</Title></Head>"
    newContent += "<Body><H1><Center>" + msg + "</Center></H1>"
    newContent += "<form>"
    newContent += "<Center>"
    newContent += "<A HREF='';>"
   	newContent += "<IMG SRC='" + imageName + "';,Border=0></a>"
  	newContent += "<input type='Button' Name='New' value='Close window'"
	newContent += "    onClick='self.close()';>"
	newContent += "</center>"
	newContent += "</form>"
	newContent += "</body>"
	newContent += "</html>"
	newWindow.document.write(newContent)
	newWindow.document.close()  //close layout stream
	 }

function CloseNewWindow() {
   if (newWindow) {
     newWindow.close()
     }   //end of window statement

  }   //end of function CloseNewWindow
  //-->