// alle
function replaceumlaute(a_string)
{
    a_string = a_string.replace("ß", "szlig;");
    a_string = a_string.replace("ö", "ouml;");
    a_string = a_string.replace("ä", "auml;");
    a_string = a_string.replace("ü", "uuml;");
    a_string = a_string.replace("Ö", "Ouml;");
    a_string = a_string.replace("Ä", "Auml;");
    a_string = a_string.replace("Ü", "Uuml;");
    
    return a_string;
}

// info.php3, searchwinproto.php3
function openfile(a_URL)
{
   size = "width=1200, height=1200, resizable=yes, scrollbars=yes, location=yes, menubar=yes, status=yes, toolbar=yes";
   LegendFenster = open(a_URL, "Fenster", size);
   LegendFenster.focus();
}

function ShowBus(a_URL)
{
    the_bus_URL = "../k_bus/plan.php3";
    a_URL = the_bus_URL + "?" + a_URL;
    openfile (a_URL);
}

// querywin_200xxxxx.js, searchwin_200xxxxx.js
function OchangeMap()
{
   document.vars.oper.value = 2;
   var s = "./plan.php3?";
   s += "oper=" + document.vars.oper.value;
   s += "&mapS=" + document.vars.mapS.value;
   s += "&zoomC=" + document.vars.zoomC.value;
   s += "&mode=" + document.vars.mode.value;
   s += "&lubi_ganz_goe=" + document.vars.lubi_ganz_goe.value;
//   s += "&lubi_innenstadt=" + document.vars.lubi_ganz_goe.value;
   s += "&karte_0=" + document.vars.karte_0.value;
   s += "&karte_0g=" + document.vars.karte_1.value;
   s += "&karte_1=" + document.vars.karte_1.value;
   s += "&oeinr=" + document.vars.oeinr.value;
   s += "&notdienst=" + document.vars.notdienst.value;
   s += "&verkehr=" + document.vars.verkehr.value;
   s += "&kult=" + document.vars.kult.value;
//   s += "&info=" + document.vars.info.value;
   s += "&sehens=" + document.vars.sehens.value;
//   s += "&bus=" + document.vars.bus.value;  
   s += "&sna=" + document.vars.sna.value;
   s += "&snb=" + document.vars.sna.value;
   s += "&dvert=" + document.vars.dvert.value;
   s += "&dhorz=" + document.vars.dhorz.value;
   s += "&vmin=" + document.vars.vmin.value;
   s += "&hmin=" + document.vars.hmin.value;
   s += "&xref=" + document.vars.xref.value;
   s += "&yref=" + document.vars.yref.value;
   s += "&search=" + document.vars.search.value;
   s += "&searchNum=" + document.vars.searchNum.value;
   s += "&searchEbene=" + document.vars.searchEbene.value;
   var d = new Date();
   var t = d.getTime();
   s += "&Curd=" + Math.round(t / 100);
   temp_str = document.suche.strasse.value;
   temp_str = replaceumlaute(temp_str);
   s += "&abstr=" + temp_str;
   s += "&abhnr=" + document.suche.hausnr.value;
   document.getElementById("LoadingLyr").style.visibility = "visible";
   document.location = s;
   return true;
}
