var fromcity = "" ;
var fromcountry = "start" ;
    var fromstreet = "";
    var fromplz =   "";
    var tocity =  "Bernkastel-Kues";
    var tostreet =   "Panoramastr.";
    var toplz =  "54470";
    var tocountry = "";



function  eingabe_werte_pruefen () {
    // Variablen auslesen
    fromcity = escape(document.routenplaner.fromcity.value);
    if (fromcity == 'Ort') {fromcity='';}
    fromstreet = escape(document.routenplaner.fromstreet.value)
    if (fromstreet == 'Stra%DFe') {fromstreet='';}
    fromplz = escape(document.routenplaner.fromplz.value)
    if (fromplz == 'PLZ') {fromplz='';}
    tocity = escape(document.routenplaner.tocity.value)
    if (tocity == 'Ort') {tocity='';}
    tostreet = escape(document.routenplaner.tostreet.value)
    if (tostreet == 'Stra%DFe') {tostreet='';}
    toplz = escape(document.routenplaner.toplz.value)
    if (toplz == 'PLZ') {toplz='';}

    fromcountry = document.routenplaner.fromcountry[document.routenplaner.fromcountry.selectedIndex].value;

    if (fromplz == '' && fromcity =='')
      {
        document.routenplaner.fromplz.focus();
        alert ("Sie müssen für den Start entweder PLZ oder Ort ausfüllen!");
        return false;
     }

    if (fromcountry == '---')
    {
        document.routenplaner.fromcountry.focus();
        alert ("Bitte wählen Sie ein Land aus!");
        return false;
    }
  return true;
}


function call_map24 () {


check_result = eingabe_werte_pruefen () ;
if (check_result) {} else return false ;

    var url = "http://"

            switch (fromcountry) {
                case "BEL":
                    fromcountry="BE";
                    break;
                case "DNK":
                    fromcountry="DK";
                    break;
                case "DEU":
                    fromcountry="DE";
                    break;
                case "FRA":
                    fromcountry="FR";
                    break;
                case "GBR":
                    fromcountry="GB";
                    break;
                case "ITA":
                    fromcountry="IT";
                    break;
                case "LIE":
                    fromcountry="LI";
                    break;
                case "LUX":
                    fromcountry="LU";
                    break;
                case "NLD":
                    fromcountry="NL";
                    break;
                case "NOR":
                    fromcountry="NO";
                    break;
                case "AUT":
                    fromcountry="AU";
                    break;
                case "PRT":
                    fromcountry="PR";
                    break;
                case "CHE":
                    fromcountry="CH";
                    break;
                case "ESP":
                    fromcountry="ES";
                    break;
                case "SWE":
                    fromcountry="SW";
                    break;
                default:
                    fromcountry="";
                    break;
            }
                    tocountry="DE";
                    tostreet="Panoramastr.";

            url = url+"link2.map24.com/?newroute=1"
            url = url+"&sstreet="+fromstreet+"&szip="+fromplz+"&scity="+fromcity+"&scountry="+fromcountry+"&dstreet="+tostreet+"&dzip="+toplz+"&dcity="+tocity+"&dcountry="+tocountry
            url = url+"&mid=LINK2&lid=a36ca77b"

            window.open(url,"Map24")

}


function  call_michelin () {

check_result = eingabe_werte_pruefen () ;
if (check_result) {} else return false ;

	            switch (fromcountry) {
                case "BEL":
                    fromcountry="000000311";
                    break;
                case "DNK":
                    fromcountry="000001473";
                    break;
                case "DEU":
                    fromcountry="000000240";
                    break;
                case "FRA":
                    fromcountry="000001424";
                    break;
                case "ITA":
                    fromcountry="000000612";
                    break;
                case "LIE":
                    fromcountry="000000108";
                    break;
                case "LUX":
                    fromcountry="000000247";
                    break;
                case "NLD":
                    fromcountry="000000285";
                    break;
                case "NOR":
                    fromcountry="000001574";
                    break;
                case "AUT":
                    fromcountry="000000106";
                    break;
                case "PRT":
                    fromcountry="000000669";
                    break;
                case "CHE":
                    fromcountry="000000185";
                    break;
                case "ESP":
                    fromcountry="000000844";
                    break;
                case "SWE":
                    fromcountry="000001507";
                    break;
                default:
                    fromcountry="EUR";
                    break;
            }
             tocountry="000000240";
     tocity =  "Bernkastel-Kues";
     tostreet =   "Panoramastr.";
     toplz =  "54470";

           var url = "http://"

            url = url+"www.viamichelin.com/viamichelin/deu/dyn/controller/ItiWGPerformPage?intItineraryType=1"
            url = url+"&strStartAddress="+fromstreet+"&strStartCP="+fromplz+"&strStartCity="+fromcity+"&strStartCityCountry="+fromcountry+"&strDestAddress="+tostreet+"&strDestCP="+toplz+"&strDestCity="+tocity+"&strDestCityCountry="+tocountry
            url = url+"&intItineraryType=1"

            window.open(url,"ViaMichelin");
        }



  function call_falk () {
check_result = eingabe_werte_pruefen () ;
if (check_result) {} else return false ;

  	      tocity="Bernkastel-Kues";
              tocountry="DEU";

  	       var url = "http://"

             url=url+"www.falk.de/routenplaner/controller_rp.jsp?";
             url=url+"wasHere=false&routeEntry_start_zip="+fromplz+"&routeEntry_start_city="+fromcity+"&routeEntry_start_street="+fromstreet+"&routeEntry_start_country="+fromcountry;
             url=url+"&routeEntry_dest_zip="+toplz+"&routeEntry_dest_city="+tocity+"&routeEntry_dest_street="+tostreet+"&routeEntry_dest_country="+tocountry;
             url=url+"&routeEntry_time_type=Abfahrt&routeEntry_time_hours=0&routeEntry_time_minutes=0&routeEntry_opti_route=schnell&routeEntry_opti_car=mittel&routeEntry_opti_fuel=BenzinMittel&quicksearch=true&rpcalcroute.x=1&rpcalcroute.y=1";
             window.open(url,"Falk");
        }


  function  call_tele_info ()  {
check_result = eingabe_werte_pruefen () ;
if (check_result) {} else return false ;

            switch (fromcountry) {
                case "BEL":
                    fromcountry="B";
                    break;
                case "DNK":
                    fromcountry="DK";
                    break;
                case "DEU":
                    fromcountry="D";
                    break;
                case "FRA":
                    fromcountry="F";
                    break;
                case "GBR":
                    fromcountry="GB";
                    break;
                case "ITA":
                    fromcountry="I";
                    break;
                case "LIE":
                    fromcountry="CH";
                    break;
                case "LUX":
                    fromcountry="L";
                    break;
                case "NLD":
                    fromcountry="NL";
                    break;
                case "NOR":
                    fromcountry="N";
                    break;
                case "AUT":
                    fromcountry="A";
                    break;
                case "PRT":
                    fromcountry="P";
                    break;
                case "CHE":
                    fromcountry="CH";
                    break;
                case "ESP":
                    fromcountry="E";
                    break;
                case "SWE":
                    fromcountry="S";
                    break;
                default:
                    fromcountry="";
                    break;
            }
                    tocountry="D";
                    tostreet="Panoramastr.";
                    tocity="Bernkastel-Kues";
              var   tosuburb="";

  	var url = "http://"

            url=url+"www.telemap.de/free/router.asp?id=za&";
            url=url+"startplz="+fromplz+"&startOrt="+fromcity+"&startstr="+fromstreet+"&startland="+fromcountry+"&zielplz="+toplz+"&zielort="+tocity+"&zielot="+tosuburb+"&zielstr="+tostreet+"&zielland="+tocountry;
            window.open(url,"Teleinfo");

        }



