// This function creates the array; do not modify
function initArray() {
 for (var i = 0; i < initArray.arguments.length; i++)
  this[i] = initArray.arguments[i];
 this.length = initArray.arguments.length;
}

// This is the array for the chrome variations. You may
// modify or add to these options. The fourth entry, "",
// is for no chrome.
var chrome = new initArray(
 "menubar",
 "menubar,toolbar",
 "menubar,status,resizable,scrollbars",
 "");

var popUpWin = '';
var describeIt = '';
var picture = '';
var winFeatures = '';

// This function makes the pop up window. Modify the
// tall and side variables as needed. See the script
// explanation on the Cut and Paste JavaScript site for
// a detailed explanation of this function:
// http://www.infohiway.com/javascript/popup/index.htm
function makePopUpWin(pic,high,wide,text,features) {
 var tall = high + 60  // adjust for spacing to border above and below picture
 var side = wide + 20  // adjust for spacing to border on sides of picture
 describeIt = text
 picture = pic
 winFeatures = features
if (popUpWin && !popUpWin.closed) {
  popUpWin.close();
 }
   popUpWin = eval("window.open('blank.html','newWin','"+chrome[winFeatures]+",height="+tall+",width="+side+"')");
   if (!popUpWin.opener) popUpWin.opener = self;
}

// ** This function writes the content to the new window. Modify as
// ** needed to suit your purposes. Be sure to include the variables
// ** describeIt and picture to capture the content passed from the
// ** links on your pages.

function update() {
   popUpWin.document.open();
   // content for the popup window is defined here
   popUpWin.document.write("<html><head><title>Galerie Heinz-Martin Weigand</title></head>");
   popUpWin.document.write("<body>");
   popUpWin.document.write("<img src=" + picture + "><br><br>");
   popUpWin.document.write("<a href='#' onClick='self.close()'>");
   popUpWin.document.write("<center><font face=Verdana,Arial,Helvetica,sans-serif size=-2>Close this window</a></font</center></body></html>");
   popUpWin.document.close();
}