function menueseite(seite)
        {
         if(parent.frames.menue)
          {
            parent.frames.menue.location.href = seite;
          }
        }
function hauptseite(seite)
        {
         if(parent.frames.main)
          {
            parent.frames.main.location.href = seite;
          }
        }

function popup_fix(bild)
        {
        if(window.wnd_ref)              // Fenster-Handle existiert schon
          if(!window.wnd_ref.closed) {  // Fenster ist noch offen
            wnd_ref.focus();
            exit(); }
        popupbild = new Image();
        popupbild.src=bild;
        //var abst_o = (screen.availHeight * 0.02);
        abst_o = 1;
        var abst_l = (screen.availWidth *0.1);
        var fensterhoehe =  (popupbild.height * 1.1);
        var fensterbreite =  (popupbild.width * 1.05);
        abst_o = Math.ceil(abst_o);
        abst_l = Math.ceil(abst_l);
        abst_o = Math.abs(abst_o);
        abst_l = Math.abs(abst_l);
        var werte = "width="+fensterbreite+",height="+fensterhoehe+",left="+abst_l+",top=1,resizable=yes,scrollbars=yes ";
        wnd_ref = window.open("","",werte);
        wnd_ref.document.open();
        wnd_ref.document.writeln("<a href='javascript:self.close()'>");
        wnd_ref.document.writeln("<img src="+bild+" alt='Fenster schliessen...'><br>Fenster schliessen...</a>");
        wnd_ref.focus();
      }

  function popup_hb2(pfad, breite, hoehe)
        {
        if(window.wnd_ref)              // Fenster-Handle existiert schon
          if(!window.wnd_ref.closed) {  // Fenster ist noch offen
            wnd_ref.focus();
            exit(); }
        var rahmenbreite = breite + 20;
        var rahmenhoehe =  hoehe + 20;
        var abst_l = Math.abs(Math.floor((screen.availWidth - breite)/2));
        var abst_o = Math.abs(Math.floor((screen.availHeight - hoehe)/3));
        var werte = "width="+rahmenbreite+",height="+rahmenhoehe+",left="+abst_l+",top="+abst_o+",resizable=yes";
    
        wnd_ref = window.open("","",werte);
        
        wnd_ref.document.writeln("<html><head><title>mehrsalz.de / Bilder</title></head><body>");
        wnd_ref.document.writeln("<a href=\"javascript:self.close()\">");
        wnd_ref.document.writeln("<img src=\""+pfad+"\" border=\"0\" alt=\"Fenster schliessen...\"></a>");
        wnd_ref.document.writeln("</body></html>");
        wnd_ref.focus();
    }
    
function popup_pano(pfad, breite, hoehe)
        {
        if(window.wnd_ref)              // Fenster-Handle existiert schon
          if(!window.wnd_ref.closed) {  // Fenster ist noch offen
            wnd_ref.focus();
            exit(); }
        var rahmenbreite = breite + 20;
        var rahmenhoehe =  hoehe + 20;
        var abst_l = Math.abs(Math.floor((screen.availWidth - breite)/2));
        var abst_o = Math.abs(Math.floor((screen.availHeight - hoehe)/3));
        var werte = "width="+rahmenbreite+",height="+rahmenhoehe+",left="+abst_l+",top="+abst_o+",resizable=yes,scrollbars=yes";
    
        wnd_ref = window.open("","",werte);
        
        wnd_ref.document.writeln("<html><head><title>mehrsalz.de / Bilder</title></head><body>");
        wnd_ref.document.writeln("<a href=\"javascript:self.close()\">");
        wnd_ref.document.writeln("<img src=\""+pfad+"\" border=\"0\" alt=\"Fenster schliessen...\"></a>");
        wnd_ref.document.writeln("</body></html>");
        wnd_ref.focus();
    }

