 function makeFenster()
{
        var newWindow =
window.open("danfoss/danfoss.htm","Danfoss Deutschland","width=1000,height=650,scrollbars=0,resizable=0");
        newWindow.focus();
}



// Parkhausbelegung: Quartierzuordnung anzeigen
// Selektiertes Quartier mit blinkender Markierung darstellen
// Quartierzuordnung
// q_1 = Altstadt, q_2 = Koenigsallee, q_3 = Schadowstrasse
// q_4 = Hauptbahnhof, q_5 = Friedrichstadt, q_6 = Nordstrasse
function aktiv(Wo)
{
  deaktiv();
  neu = new Image();
  neu.src = "/lib_neu/grafik/icons/service/bullet_black.gif";
  if (Wo == "q_1" && document.q_1) document.q_1.src = neu.src;
  if (Wo == "q_2" && document.q_2) document.q_2.src = neu.src;
  if (Wo == "q_3" && document.q_3) document.q_3.src = neu.src;
  if (Wo == "q_4" && document.q_4) document.q_4.src = neu.src;
  if (Wo == "q_5" && document.q_5) document.q_5.src = neu.src;
  if (Wo == "q_6" && document.q_6) document.q_6.src = neu.src;
}

// Parkhausbelegung: Quartierzuordnung anzeigen
// Selektiertes Parkhaus mit blinkender Markierung darstellen
function aktiv1(Wo)
{
  deaktiv();
  if (Wo == "PH_01" || Wo == "PH_02" || Wo == "PH_03" ||
      Wo == "PH_04" || Wo == "PH_04" || Wo == "PH_08" ||
      Wo == "PH_42" || Wo == "PH_47") aktiv("q_1");
  if (Wo == "PH_06" || Wo == "PH_07" || Wo == "PH_21" ||
      Wo == "PH_22" || Wo == "PH_23" || Wo == "PH_24" ||
      Wo == "PH_39" || Wo == "PH_40" || Wo == "PH_46" ||
      Wo == "PH48"  || Wo == "PH_50"  || Wo == "PH_51") aktiv("q_2");
  if (Wo == "PH_09" || Wo == "PH_10" || Wo == "PH_11" ||
      Wo == "PH_12" || Wo == "PH_13" || Wo == "PH_14" ||
      Wo == "PH_35" || Wo == "PH_43" || Wo == "PH_45") aktiv("q_3");
  if (Wo == "PH_15" || Wo == "PH_16" || Wo == "PH_17" ||
      Wo == "PH_18" || Wo == "PH_20" || Wo == "PH_37") aktiv("q_4");
  if (Wo == "PH_25" || Wo == "PH_26" || Wo == "PH_29" ||
      Wo == "PH_44" || Wo == "PH_52") aktiv("q_5");
  if (Wo == "PH_33" || Wo == "PH_34" || Wo == "PH_41") aktiv("q_6");
  neu = new Image();
  neu.src = "/lib_neu/grafik/icons/service/bullet_black.gif";
  if (Wo == "PH_01" && document.PH_01) document.PH_01.src = neu.src;
  if (Wo == "PH_02" && document.PH_02) document.PH_02.src = neu.src;
  if (Wo == "PH_03" && document.PH_03) document.PH_03.src = neu.src;
  if (Wo == "PH_04" && document.PH_04) document.PH_04.src = neu.src;
  if (Wo == "PH_05" && document.PH_05) document.PH_05.src = neu.src;
  if (Wo == "PH_06" && document.PH_06) document.PH_06.src = neu.src;
  if (Wo == "PH_07" && document.PH_07) document.PH_07.src = neu.src;
  if (Wo == "PH_08" && document.PH_08) document.PH_08.src = neu.src;
  if (Wo == "PH_09" && document.PH_09) document.PH_09.src = neu.src;
  if (Wo == "PH_10" && document.PH_10) document.PH_10.src = neu.src;
  if (Wo == "PH_11" && document.PH_11) document.PH_11.src = neu.src;
  if (Wo == "PH_12" && document.PH_12) document.PH_12.src = neu.src;
  if (Wo == "PH_13" && document.PH_13) document.PH_13.src = neu.src;
  if (Wo == "PH_14" && document.PH_14) document.PH_14.src = neu.src;
  if (Wo == "PH_15" && document.PH_15) document.PH_15.src = neu.src;
  if (Wo == "PH_16" && document.PH_16) document.PH_16.src = neu.src;
  if (Wo == "PH_17" && document.PH_17) document.PH_17.src = neu.src;
  if (Wo == "PH_18" && document.PH_18) document.PH_18.src = neu.src;
  if (Wo == "PH_20" && document.PH_20) document.PH_20.src = neu.src;
  if (Wo == "PH_21" && document.PH_21) document.PH_21.src = neu.src;
  if (Wo == "PH_22" && document.PH_22) document.PH_22.src = neu.src;
  if (Wo == "PH_23" && document.PH_23) document.PH_23.src = neu.src;
  if (Wo == "PH_24" && document.PH_24) document.PH_24.src = neu.src;
  if (Wo == "PH_25" && document.PH_25) document.PH_25.src = neu.src;
  if (Wo == "PH_26" && document.PH_26) document.PH_26.src = neu.src;
  if (Wo == "PH_29" && document.PH_29) document.PH_29.src = neu.src;
  if (Wo == "PH_33" && document.PH_33) document.PH_33.src = neu.src;
  if (Wo == "PH_34" && document.PH_34) document.PH_34.src = neu.src;
  if (Wo == "PH_35" && document.PH_35) document.PH_35.src = neu.src;
  if (Wo == "PH_36" && document.PH_36) document.PH_36.src = neu.src;
  if (Wo == "PH_37" && document.PH_37) document.PH_37.src = neu.src;
  if (Wo == "PH_39" && document.PH_39) document.PH_39.src = neu.src;
  if (Wo == "PH_40" && document.PH_40) document.PH_40.src = neu.src;
  if (Wo == "PH_41" && document.PH_41) document.PH_41.src = neu.src;
  if (Wo == "PH_42" && document.PH_42) document.PH_42.src = neu.src;
  if (Wo == "PH_43" && document.PH_43) document.PH_43.src = neu.src;
  if (Wo == "PH_44" && document.PH_44) document.PH_44.src = neu.src;
  if (Wo == "PH_45" && document.PH_45) document.PH_45.src = neu.src;
  if (Wo == "PH_46" && document.PH_46) document.PH_46.src = neu.src;
  if (Wo == "PH_47" && document.PH_47) document.PH_47.src = neu.src;
  if (Wo == "PH48" && document.PH48) document.PH48.src = neu.src;
  if (Wo == "PH_50" && document.PH_50) document.PH_50.src = neu.src;
  if (Wo == "PH_51" && document.PH_51) document.PH_51.src = neu.src;
  if (Wo == "PH_52" && document.PH_52) document.PH_52.src = neu.src;
}

// Parkhausbelegung: Quartierzuordnung grundstellen
// Reset auf alle Quartier und Parkhaeuser durch Setzen der nix.gif
function deaktiv()
{
  alt = new Image();
  alt.src = "/lib/grafik/nix.gif";
  if (document.q_1) document.q_1.src = alt.src;
  if (document.q_2) document.q_2.src = alt.src;
  if (document.q_3) document.q_3.src = alt.src;
  if (document.q_4) document.q_4.src = alt.src;
  if (document.q_5) document.q_5.src = alt.src;
  if (document.q_6) document.q_6.src = alt.src;
  if (document.PH_01) document.PH_01.src = alt.src;
  if (document.PH_02) document.PH_02.src = alt.src;
  if (document.PH_03) document.PH_03.src = alt.src;
  if (document.PH_04) document.PH_04.src = alt.src;
  if (document.PH_05) document.PH_05.src = alt.src;
  if (document.PH_06) document.PH_06.src = alt.src;
  if (document.PH_07) document.PH_07.src = alt.src;
  if (document.PH_08) document.PH_08.src = alt.src;
  if (document.PH_09) document.PH_09.src = alt.src;
  if (document.PH_10) document.PH_10.src = alt.src;
  if (document.PH_11) document.PH_11.src = alt.src;
  if (document.PH_12) document.PH_12.src = alt.src;
  if (document.PH_13) document.PH_13.src = alt.src;
  if (document.PH_14) document.PH_14.src = alt.src;
  if (document.PH_15) document.PH_15.src = alt.src;
  if (document.PH_16) document.PH_16.src = alt.src;
  if (document.PH_17) document.PH_17.src = alt.src;
  if (document.PH_18) document.PH_18.src = alt.src;
  if (document.PH_20) document.PH_20.src = alt.src;
  if (document.PH_21) document.PH_21.src = alt.src;
  if (document.PH_22) document.PH_22.src = alt.src;
  if (document.PH_23) document.PH_23.src = alt.src;
  if (document.PH_24) document.PH_24.src = alt.src;
  if (document.PH_25) document.PH_25.src = alt.src;
  if (document.PH_26) document.PH_26.src = alt.src;
  if (document.PH_29) document.PH_29.src = alt.src;
  if (document.PH_33) document.PH_33.src = alt.src;
  if (document.PH_34) document.PH_34.src = alt.src;
  if (document.PH_35) document.PH_35.src = alt.src;
  if (document.PH_36) document.PH_36.src = alt.src;
  if (document.PH_37) document.PH_37.src = alt.src;
  if (document.PH_39) document.PH_39.src = alt.src;
  if (document.PH_40) document.PH_40.src = alt.src;
  if (document.PH_41) document.PH_41.src = alt.src;
  if (document.PH_42) document.PH_42.src = alt.src;
  if (document.PH_43) document.PH_43.src = alt.src;
  if (document.PH_44) document.PH_44.src = alt.src;
  if (document.PH_45) document.PH_45.src = alt.src;
  if (document.PH_46) document.PH_46.src = alt.src;
  if (document.PH_47) document.PH_47.src = alt.src;
  if (document.PH48) document.PH48.src = alt.src;
  if (document.PH_50) document.PH_50.src = alt.src;
  if (document.PH_51) document.PH_51.src = alt.src;
  if (document.PH_52) document.PH_52.src = alt.src;
}

//Kulturnavigator: Verwaltung der DIV-Bloecke
//Ausblenden von Ebenen
function hide(name)
{
if (document.layers)
     {
           document.layers[name].visibility = "hide";
     }
    else
     {
        document.getElementById(name).style.visibility="hidden";
     }
}

//Diverses: PDF-Datei im PopUp anzeigen
function infopdf(Datei)
{
        pdf(Datei);
}

//Diverses: Stringwert nummerisch ?
function isANumber(n)
{
        var s = "" + n;
        var ziffern = "0123456789";
        for (var i=0; i<s.length; i++)
            if (ziffern.indexOf(s.charAt(i))==-1)
                return false;
        return true;
}

// Stadtplan: Koordinatenaufruf
// Stadtplanausschnitt mit Koordinatenvorgabe anzeigen
function KarteAnzeigen(x,y,Icon,Sprache)
{
        if (x.length>9 || isANumber(x) != true || isANumber(y) != true)
           {
           x = 2555530;
           y = 5676396;
           }
        if (x > 99999999)
           {
           x = Math.round(x/100);
           }
        if (y > 99999999)
           {
           y = Math.round(y/100);
           }
        if (x > 2570000 || y > 5697000 || x < 2533000 || y < 5657000)
           {
           x = 2555530;
           y = 5676396;
           }

        if (Sprache == 1)
           {
           Sprache = "Stadtplan";
           }
          else if (Sprache == 2)
                  {
                  Sprache = "Stadtplan-Englisch";
                  }
                 else if (Sprache == 3)
                         {
                         Sprache = "Luftbild";
                         }
                        else if (Sprache == 4)
                                {
                                Sprache = "Luftbild-Englisch";
                                }
                               else
                                Sprache = "Stadtplan";

        var url = "http://stadtplan.duesseldorf.de/Duesseldorf/" + Sprache + "/cgi-bin/perl/extern/index.pl?GKx=" + x + "&GKy=" + y + "&Icon=" + Icon + "&vonWo=GKLink";
        Fenster = window.open(url, "Stadtplan", "width=790,height=542,screenX=1,screenY=1,menubar=no,status=no");
        Fenster.focus();
}

// Stadtplan: Koordinatenaufruf NUR FÜR GEWERBEMIETSPIEGEL
// Stadtplanausschnitt mit Koordinatenvorgabe anzeigen
function KarteAnzeigenT(x,y,Icon,Sprache)
{
        if (x.length>9 || isANumber(x) != true || isANumber(y) != true)
           {
           x = 2555530;
           y = 5676396;
           }
        if (x > 99999999)
           {
           x = Math.round(x/100);
           }
        if (y > 99999999)
           {
           y = Math.round(y/100);
           }
        if (x > 2570000 || y > 5697000 || x < 2533000 || y < 5657000)
           {
           x = 2555530;
           y = 5676396;
           }

        if (Sprache == 1)
           {
           Sprache = "Stadtplan";
           }
          else if (Sprache == 2)
                  {
                  Sprache = "Stadtplan-Englisch";
                  }
                 else if (Sprache == 3)
                         {
                         Sprache = "Luftbild";
                         }
                        else if (Sprache == 4)
                                {
                                Sprache = "Luftbild-Englisch";
                                }
		                        else if (Sprache == 5)
                                {
                                Sprache = "Gewerbe";
                                }
			                        else if (Sprache == 6)
	                                {
	                                Sprache = "Gewerbe-Englisch";
	                                }
	                               else
	                                Sprache = "Stadtplan";
        var url = "http://stadtplan.duesseldorf.de/Duesseldorf/" + Sprache + "/cgi-bin/perl/index_umschalten.pl?Wohin=Gewerbe&amp;Was=InternLink&amp;GK=" + x + "," + y;
        Fenster = window.open(url, "Stadtplan", "width=790,height=542,screenX=1,screenY=1,menubar=no,status=no");
        Fenster.focus();
}


// Diverses:  Bildwechsler
// Liste der relevanten Bilden fuer Mouseover ermitteln
function MM_findObj(n, d)
{
        var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
        if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
        for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
        if(!x && d.getElementById) x=d.getElementById(n); return x;
}

// Diverses:  Bildwechsler
// Laden der Bilder beim Seitenaufruf
function MM_preloadImages()
{
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// Diverses:  Bildwechsler
// Bild im Mouseover austauschen
function MM_swapImage()
{
        var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
        if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Diverses:  Bildwechsler
// Altes Bild nach Mouseover wiederherstellen
function MM_swapImgRestore()
{
        var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function neuFenster1(source,name,size)
{
        var newWindow =
        window.open(source,name,size);
        if (parseInt(navigator.appVersion) >= 4)
           {
           newWindow.window.focus();
           }
}

function open_window(URL,NAME,OPTIONS)
{
        if (OPTIONS.search(/height/i) == -1)
           OPTIONS = OPTIONS + ",height=" + (screen.height-80);
        Fenster=window.open(URL,NAME,OPTIONS);
        Fenster.focus();
}

// Diverses:  Panoramafenster fuer Cinemascope und Grossbilder
function panoFenster(source,size)
{
        if (panoFenster.arguments.length == "1")
           {
           var Groesse = "width=590,height=400";
           var Bildname = "Cinemascope";
           }
          else
           {
           var Groesse = size;
           var Bildname = "Grossbild";
           }

        var Option = "screenX=20,screenY=20,resizable=yes,dependent=yes,status=yes,scrollbars=no," + Groesse;

        document.pmvr.set('auto','0');
        document.pmvr.set('vauto','0');
        var newWindow = window.open(source,Bildname,Option);
        if (parseInt(navigator.appVersion) >= 4)
           {
           newWindow.window.focus();
           }
}

function pdf(Datei)
{
        if (!(Datei.match(/\.pdf/))) Datei = "/formular/pdf/" + Datei + ".pdf";
        var Hoehe = 700;
        var Breite = 500;
        if (screen) Hoehe = screen.availHeight - 70;
        if (screen) Breite = screen.availWidth - 30;

        var Option = "width=" + Breite + ",height=" + Hoehe +
        ",screenX=20,screenY=20,resizable=yes,dependent=yes,status=yes";
        open_window(Datei,'Formularservice',Option);
}

// Funktion PFensterResize
function PFensterResize()
{
        var BreiteNeu = eval(document.images[0].width+50);
        var HoeheNeu = eval(document.images[0].height+150);
        if (BreiteNeu < 315)
           {
           BreiteNeu = 315;
           }
        if (HoeheNeu < 195)
           {
           HoeheNeu = 195;
           }
        window.resizeTo(BreiteNeu,HoeheNeu);
}

// Funktion PGrafikFenster
function PGrafikFenster(Datei, Br, Ho)
{
        PGrafikFenster1(Datei, Br, Ho);
}

// Funktion PGrafikFenster1 - Anzeige von Grafiken im PopUp-Fenster
// - Fenstergroesse wird anhand der Groesse der Grafik angepasst,
// - siehe /lib_neu/html/grafik.shtml
function PGrafikFenster1(Datei, Br, Ho)
{
        if (window.location.pathname.substr(window.location.pathname.length-1,1) == "/")
           {
           var Pfad = window.location.pathname;
           }
          else
           {
           var Teile = window.location.pathname.split("/");
           var Name = window.location.pathname.search(Teile[Teile.length -1]);
           var Pfad = window.location.pathname.slice(0,Name);
           }
        var Servername0 = "http://" + window.location.host;

        var Servername = Servername0;
        jetzt = new Date();
        Zufall = "a" + jetzt.getSeconds();
        if (Datei.substr(0,1) != '/') Datei = Pfad + Datei;

        // Wenn NPS-Voschau, dann http://xxx vor den Dateinamen einfuegen
        if (Datei.substr(0,9) == '/Preview/') Datei = Servername0.concat(Datei);
        if (Datei.substr(0,10) == '/nps6prod/') Datei = Servername0.concat(Datei);

        var Params = "left=150,top=0,resizable=yes,scrollbars=yes,menubar=no,status=yes";
			if (Servername == "http://lxnps6.stv-ddorf.de:8080")
			  {
			  Servername = "http://lxnps6.stv-ddorf.de"
			  }
        var Wert = Servername + "/lib_neu/html/grafik.shtml" + "?" + Datei;
        Fenster = window.open(Wert, Zufall , Params);
        Fenster.focus();
}

// Funktion PGrafikFenster2 - Anzeige von Grafiken plus Titel im PopUp-Fenster
// - Fenstergroesse wird anhand der Groesse der Grafik angepasst,
// - siehe /lib_neu/html/grafik.shtml
function PGrafikFenster2(Datei, Titel)
{
        if (window.location.pathname.substr(window.location.pathname.length-1,1) == "/")
           {
           var Pfad = window.location.pathname;
           }
          else
           {
           var Teile = window.location.pathname.split("/");
           var Name = window.location.pathname.search(Teile[Teile.length -1]);
           var Pfad = window.location.pathname.slice(0,Name);
           }
        var Servername0 = "http://" + window.location.host;
        var Servername = Servername0;
        jetzt = new Date();
        Zufall = "a" + jetzt.getSeconds();

        if (Datei.substr(0,1) != '/') Datei = Pfad + Datei;

        // Wenn NPS-Voschau, dann http://xxx vor den Dateinamen einfuegen
        if (Datei.substr(0,9) == '/Preview/') Datei = Servername0.concat(Datei);
        if (Datei.substr(0,10) == '/nps6prod/') Datei = Servername0.concat(Datei);

        var Params = "left=150,top=0,resizable=yes,scrollbars=yes,menubar=no,status=yes";
			if (Servername == "http://lxnps6.stv-ddorf.de:8080")
			  {
			  Servername = "http://lxnps6.stv-ddorf.de"
			  }
        var Wert = Servername + "/lib_neu/html/grafik.shtml" + "?" + Datei;

        if (Titel) Wert = Wert + "+" + Titel;
        Fenster = window.open(Wert, Zufall , Params);
        Fenster.focus();
}

// Funktion PGrafikFenster2e - Anzeige von Grafiken plus Titel im PopUp-Fenster
// - Fenstergroesse wird anhand der Groesse der Grafik angepasst,
// - siehe /lib_neu/html/grafik_e.shtml
// Kopie von PGrafikFenster2 fuer ENGLISCHE VERSION
function PGrafikFenster2e(Datei, Titel)
{
        if (window.location.pathname.substr(window.location.pathname.length-1,1) == "/")
           {
           var Pfad = window.location.pathname;
           }
          else
           {
           var Teile = window.location.pathname.split("/");
           var Name = window.location.pathname.search(Teile[Teile.length -1]);
           var Pfad = window.location.pathname.slice(0,Name);
           }
        var Servername0 = "http://" + window.location.host;
        var Servername = Servername0;
        jetzt = new Date();
        Zufall = "a" + jetzt.getSeconds();

        if (Datei.substr(0,1) != '/') Datei = Pfad + Datei;

        // Wenn NPS-Voschau, dann http://xxx vor den Dateinamen einfuegen
        if (Datei.substr(0,9) == '/Preview/') Datei = Servername0.concat(Datei);
        if (Datei.substr(0,10) == '/nps6prod/') Datei = Servername0.concat(Datei);

        var Params = "left=150,top=0,resizable=yes,scrollbars=yes,menubar=no,status=yes";
			if (Servername == "http://lxnps6.stv-ddorf.de:8080")
			  {
			  Servername = "http://lxnps6.stv-ddorf.de"
			  }
        var Wert = Servername + "/lib_neu/html/grafik_e.shtml" + "?" + Datei;
        if (Titel) Wert = Wert + "+" + Titel;
        Fenster = window.open(Wert, Zufall , Params);
        Fenster.focus();
}

// VHS-Programm
function reset_values()
{
        window.document.suchen.searchitem.value = '';
        window.document.suchen.s_kursort.value = '';
        window.document.suchen.s_kursdozent.value = '';
        window.document.suchen.s_kurskennzeichennr.selectedIndex  = 0;
        window.document.suchen.t_von.selectedIndex = $AUSWAHLLISTE_t_von_DEFAULT$;
        window.document.suchen.m_von.selectedIndex = $AUSWAHLLISTE_m_von_DEFAULT$;
        window.document.suchen.j_von.selectedIndex = $AUSWAHLLISTE_j_von_DEFAULT$;
        window.document.suchen.t_bis.selectedIndex = $AUSWAHLLISTE_t_bis_DEFAULT$;
        window.document.suchen.m_bis.selectedIndex = $AUSWAHLLISTE_m_bis_DEFAULT$;
        window.document.suchen.j_bis.selectedIndex = $AUSWAHLLISTE_j_bis_DEFAULT$;
        return false;
}

// Behinderteninfo

//Kulturnavigator: Verwaltung der DIV-Bloecke
//Einblenden von Ebenen
function show(name)
{
if (document.layers)
     {
           document.layers[name].visibility = "show";
     }
    else
     {
        document.getElementById(name).style.visibility="visible";
     }
}

// Funktion ssl_big
// Aufruf von HTML-Formularen im grossen Fenster
function ssl_big(Datei)
{
        var Option = "width=800" + ",height=" + (screen.height-80) +
        ",screenX=0,screenY=0,left=0,top=0,scrollbars=yes,status=yes,resizable=yes";
        open_window(Datei,'HTMLFormularBIG',Option);
}

// Funktion ssl_formular
// Aufruf von HTML-Formularen
function ssl_formular(Datei)
{
        var Option = "width=492" + ",height=" + (screen.height-80) +
        ",screenX=0,screenY=0,left=0,top=0,scrollbars=yes,status=yes,resizable=yes";
        open_window(Datei,'HTMLFormular',Option);
}

// Stadtplan: Direktaufruf
// ohne icon und ohne Position (Hbf.) in englisch oder deutsch
// fuer deutsch  s=1 oder kein wert [Stadtplan()]
// fuer englisch s=2 [Stadtplan(2)]
function Stadtplan(s)
{
        if (s == 1)
           {
           s = "start.html";
           }
          else if (s == 2)
                  {
                  s = "start_englisch.html";
                  }
                 else
                  s = "start.html";
        var url = "http://stadtplan.duesseldorf.de/" + s;
        Fenster = window.open(url, "Stadtplan", "width=790,height=542,screenX=1,screenY=1,menubar=no,status=no");
        Fenster.focus();
}


//Stadtplan
function strasse(s,n)
{
        s = escape(s);
        n = n.replace(/ /,"");
	url = "http://stadtplan.duesseldorf.de/Duesseldorf/Stadtplan/cgi-bin/perl/extern/strasse.pl?Strasse=" + s + "&Nr=" + n;
        Fenster = window.open(url, "Stadtplan", "width=790,height=542,screenX=1,screenY=1,menubar=no,status=no");
        Fenster.focus();
}


// Suchmaschine
// In Abhaengigkeit von der Eingabe im Formularfeld "Suchwert" wird entweder
// 1. der zentrale Suchdialog angezeigt (WENN Suchwert="suchen...") oder
// 2. die Suche mit dem in Suchwert uebergebenen Wert ausgefuehrt.
function SucheStarten()
{
    var iform = 0;
    while (iform < document.forms.length)
      {
       if (document.forms[iform].Suchwert) break;
       iform++;
      }

    if ((document.forms[iform].Suchwert.value == "suchen...") || (document.forms[iform].Suchwert.value == "search..."))
       {
        if (parent.frames.length > 0)
           {
            parent.main.location.href = "http://search.duesseldorf.de/index.html";
           }
          else
           {
            window.location.href = "http://search.duesseldorf.de/index.html";
           }
        return false;
       }
    var suchbeg = document.forms[iform].Suchwert.value;
    var param = "http://search.duesseldorf.de/query.html?col=ddfall&ht=0&qp=&qt="+escape(suchbeg)+"&qs=&qc=&pw=100%25&ws=1&la=&qm=0&st=1&nh=10&lk=1&rf=0&oq=&rq=0&si=0";

    if (parent.frames.length > 0)
       {
        parent.main.location.href = param;
       }
      else
       {
        window.location.href = param;
       }
    return false;
}

// Detail-Anzeige fuer Veranstaltungen in den Buergerhaeusern
function veranstaltung(zAdr)
{
        Fenster = window.open(zAdr,"Details","width=420,height=300,left=200,top=200,resizable=yes,menubar=no,status=no,scrollbars=no");
        Fenster.focus();
}

// VRR-Fahrplanauskunft
function vrr(zAdr)
{
        var zAdr  = zAdr.replace(/ /,"+");
        var url = "http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2?language=de&place_destination=Duesseldorf&name_destination='" + escape(zAdr) + "'&type_destination=address&sessionID=0&itdLPxx_background=A6C5F7&itdLPxx_linecolor=C0C0C0";
        Fenster = window.open(url,"vrr","width=820,height=500,screenX=1,screenY=1,left=0,top=0,resizable=yes,menubar=no,status=yes,scrollbars=yes");
        Fenster.focus();
}

// Terminvereinbarung beim Buergerbuero im DLZ
function ZumTermin()
{
        x = window.open("http://82.139.196.163/andere/termine/index.php?anlagennr=1", "OnlineTerminvereinbarung", "screenX=0, screenY=0, left=0, top=0, width=600, height=750, location=no, menubar=no, status=no, toolbar=no, resizable=yes, scrollbars=yes")
}

// Aufruf zur Dokumentabholung in den Buergerbueros
function ZurAbholung()
{
        x = window.open("http://82.139.196.163/andere/ava/duesseldorf/duesseldorf.php", "Dokumentabholung", "screenX=0, screenY=0, left=0, top=0, width=600, height=750, location=no, menubar=no, status=no, toolbar=no, resizable=yes, scrollbars=yes")
}

// Diverses: Ein-/Aus-/Umschalten von Elementen als Blätterfunktion
function textwechsler(id)
{
	if(document.getElementById(id).style.display == "none") {
			document.getElementById(id).style.display = "inline"
		} else {
			document.getElementById(id).style.display = "none"
		}
}
