/* 
 * Funktion zum oeffnen eines eigenen Fensters fuer ein Bild
 */

function openPic(path, title, width, height) {
  if (navigator.picwindow && (navigator.picwindow != null) &&
      (navigator.picwindow != "null")) {
    if (navigator.picwinstatus && (navigator.picwinstatus == "open")) {
      if ((navigator.picwindow.closed != true) && (navigator.picwinstatus == "open")) {
        navigator.picwindow.close();
      };
      navigator.picwindow = null;
      navigator.picwinstatus = "closed";
    };
  };
  navigator.picwindow = window.open(path, title, 'scrollbars=yes,width=' + width + ',height=' + height);  
  navigator.picwinstatus = "open";
};

/*
 * schliesst das Fenster
 */

function closeWindow() {
  navigator.picwinstatus = "closed";
  window.close();
};

/*
 * Ende
 */

