function popup(url,breite,hoehe,pos)
{
    if(isNaN(breite))breite=400;
    if(isNaN(hoehe))hoehe=400;

    if(pos=="right"){
        oben=24;
        links=window.screenLeft+document.body.offsetWidth;
        if(links+breite>screen.width)links=screen.width-breite-12;
    }
    else{
        if(pos=="left"){
            oben=0;
            links=0;
        }
        else{
            oben=screen.height/2-hoehe/2;
            links=screen.width/2-breite/2 - 12;
        }
    }
    windowprops = "height="+hoehe+",width="+breite+",left="+links+",top="+oben
                + "location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes,status=no";

    gastro_popup = window.open(url, "gastro_popup", windowprops);
    gastro_popup.focus();
    return false;
}


Protokoll = self.location.protocol;
Pfad = self.location.pathname;
Basis = Protokoll + '//' + Pfad.substring(1,Pfad.length-11)
neues_Fenster = null;

function errorTrap() {return true;}
window.onerror = errorTrap;

function Zeigen(Bild0,Titel0,Breite0,Hoehe0)
{
   Bild = Bild0;
   Titel = Titel0;
   Breite = Breite0;
   Hoehe = Hoehe0;
   zu();
   setTimeout("sichtbar()",1000);
}

function sichtbar()
{
   Fenster_Hoehe = Hoehe + 30;
   Fenster_Breite = Breite + 40;
   Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,height='+Fenster_Hoehe+',width='+Fenster_Breite;
   neues_Fenster = window.open('','',Optionen)
   with (neues_Fenster)
   {
      document.writeln('<HTML><HEAD><TITLE>' + Titel + '</TITLE></HEAD>');
      document.writeln('<BODY BGCOLOR="#000000" TEXT="#FFFFFF"><DIV ALIGN=CENTER><TABLE BORDER=1 CELLSPACING=0 CELLPADDING=0 VALIGN="MIDDLE"><TR><TD>');
      document.writeln('<IMG SRC="'+Bild+'" WIDTH='+Breite+' HEIGHT='+Hoehe+' BORDER=0 ALT="'+Titel+'"></TD>');
      document.writeln('</TR></TABLE></DIV></BODY></HTML>');
   }
}

function zu()
{
   if (neues_Fenster != null)
     if (!neues_Fenster.closed)
        if (neues_Fenster.close)
           neues_Fenster.close();
}