function CheckInput() {

    // Variablen auslesen
    var fromcity = escape(document.routenplaner.fromcity.value)
    if (fromcity == 'Ort') {fromcity='';}
    var fromstreet = escape(document.routenplaner.fromstreet.value)
    if (fromstreet == 'Stra%DFe') {fromstreet='';}
    var fromplz = escape(document.routenplaner.fromplz.value)
    if (fromplz == 'PLZ') {fromplz='';}
    var toplz = "50968"
    var tocity = "Köln"
    var tostreet = "Goltsteinstr. 185"
    var fromcountry = document.routenplaner.fromcountry[document.routenplaner.fromcountry.selectedIndex].value
    var tocountry = "DEU"
    var planer = ""
    var planer = document.routenplaner.planer.value
    
    // Pflicht-Eingaben prüfen
    if (fromplz == '' && fromcity =='')
    { 
        document.routenplaner.fromplz.focus();
        alert ("Sie müssen für den Start entweder PLZ oder Ort ausfüllen!");
        return false;
    }
    else {
        if (toplz == '' && tocity =='')
        { 
            document.routenplaner.toplz.focus();
            alert ("Sie müssen für das Ziel entweder PLZ oder Ort ausfüllen!");
            return false;
        }
    }
    if (fromcountry == '---')
    { 
        document.routenplaner.fromcountry.focus();
        alert ("Bitte wählen Sie ein Land aus!");
        return false;
    }

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

    // Wir zählen mit ;-)
    if (planer != "")
    {
        IVWImage     = new Image();
        IVWImage.src = "http://img.web.de/ivw/SP/channel/routenplaner/partner/"+planer.toLowerCase()+"?ts="+ new Date().getTime()
    }
    
    // Redirecten zum entsprechenden Routenplaner...
    var url = "http://"
    switch (planer) {
        case "Map24":
        {
            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="le";
                    break;
                case "LUX": 
                    fromcountry="lu";
                    break;
                case "NLD": 
                    fromcountry="nl";
                    break;
                case "NOR": 
                    fromcountry="no";
                    break;
                case "AUT": 
                    fromcountry="at";
                    break;
                case "PRT": 
                    fromcountry="pt";
                    break;
                case "CHE": 
                    fromcountry="ch";
                    break;
                case "ESP": 
                    fromcountry="es";
                    break;
                case "SWE": 
                    fromcountry="se";
                    break;
                default: 
                    fromcountry="";
                    break;
            }
            switch (tocountry) {
                case "BEL": 
                    tocountry="be";
                    break;
                case "DNK": 
                    tocountry="dk";
                    break;
                case "DEU": 
                    tocountry="de";
                    break;
                case "FRA": 
                    tocountry="fr";
                    break;
                case "GBR": 
                    tocountry="gb";
                    break;
                case "ITA": 
                    tocountry="it";
                    break;
                case "LIE": 
                    tocountry="le";
                    break;
                case "LUX": 
                    tocountry="lu";
                    break;
                case "NLD": 
                    tocountry="nl";
                    break;
                case "NOR": 
                    tocountry="no";
                    break;
                case "AUT": 
                    tocountry="at";
                    break;
                case "PRT": 
                    tocountry="pt";
                    break;
                case "CHE": 
                    tocountry="ch";
                    break;
                case "ESP": 
                    tocountry="es";
                    break;
                case "SWE": 
                    tocountry="se";
                    break;
                default: 
                    tocountry="";
                    break;
            }
            url = url+"www.map24.de/map24/routing.php3?newroute=1"
            url = url+"&sstreet="+fromstreet+"&szip="+fromplz+"&scity="+fromcity+"&scountry="+fromcountry+"&dstreet="+tostreet+"&dzip="+toplz+"&dcity="+tocity+"&dcountry="+tocountry
            url = url+"&rtype=fast&desctype=standard&maptype=JAVA"
            
            window.open(url,"Map24")
            break;
        }

        case "ViaMichelin":
        {
            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;
            }
            switch (tocountry) {
                case "BEL": 
                    tocountry="000000311";
                    break;
                case "DNK": 
                    tocountry="000001473";
                    break;
                case "DEU": 
                    tocountry="000000240";
                    break;
                case "FRA": 
                    tocountry="000001424";
                    break;
                case "ITA": 
                    tocountry="000000612";
                    break;
                case "LIE": 
                    tocountry="000000108";
                    break;
                case "LUX": 
                    tocountry="000000247";
                    break;
                case "NLD": 
                    tocountry="000000285";
                    break;
                case "NOR": 
                    tocountry="000001574";
                    break;
                case "AUT": 
                    tocountry="000000106";
                    break;
                case "PRT": 
                    tocountry="000000669";
                    break;
                case "CHE": 
                    tocountry="000000185";
                    break;
                case "ESP": 
                    tocountry="000000844";
                    break;
                case "SWE": 
                    tocountry="000001507";
                    break;
                default: 
                    tocountry="EUR";
                    break;
            }
            url = url+"www.viamichelin.com/viamichelin/deu/dyn/controller/CityToCityDisplayShort?from=700&act="
            url = url+"&strStartStreet="+fromstreet+"&strStartZipCode="+fromplz+"&strStartCity="+fromcity+"&strStartCityCountry="+fromcountry+"&strDestinationStreet="+tostreet+"&strDestinationZipCode="+toplz+"&strDestinationCity="+tocity+"&strDestinationCityCountry="+tocountry
            url = url+"&intItineraryType=1"
            
            window.open(url,"ViaMichelin")
            break;
        }

    case ("Shell"):
    {
            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="UK";
                    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="AT";
                    break;
                case "PRT": 
                    fromcountry="PT";
                    break;
                case "CHE": 
                    fromcountry="CH";
                    break;
                case "ESP": 
                    fromcountry="ES";
                    break;
                case "SWE": 
                    fromcountry="SE";
                    break;
                default: 
                    fromcountry="";
                    break;
            }
            switch (tocountry) {
                case "BEL": 
                    tocountry="BE";
                    break;
                case "DNK": 
                    tocountry="DK";
                    break;
                case "DEU": 
                    tocountry="DE";
                    break;
                case "FRA": 
                    tocountry="FR";
                    break;
                case "GBR": 
                    tocountry="UK";
                    break;
                case "ITA": 
                    tocountry="IT";
                    break;
                case "LIE": 
                    tocountry="LI";
                    break;
                case "LUX": 
                    tocountry="LU";
                    break;
                case "NLD": 
                    tocountry="NL";
                    break;
                case "NOR": 
                    tocountry="NO";
                    break;
                case "AUT": 
                    tocountry="AT";
                    break;
                case "PRT": 
                    tocountry="PT";
                    break;
                case "CHE": 
                    tocountry="CH";
                    break;
                case "ESP": 
                    tocountry="ES";
                    break;
                case "SWE": 
                    tocountry="SE";
                    break;
                default: 
                    tocountry="";
                    break;
            }
            url=url+"www.shellgeostar.de/share/iti.asp?";
            url=url+"ITI_MODE=vehicule&ITI_MODE_OPTION_vehicule=Time";
            url=url+"&ITI_START_ADDRESS=&ITI_END_ADDRESS=&ITI_START_ZIPCODE="+fromplz+"&ITI_END_ZIPCODE="+toplz+"&ITI_START_COUNTRYCODE="+fromcountry+"&ITI_END_COUNTRYCODE="+tocountry+"&SEARCH_ITI.x=0&VN=Export&VV=&ITIERRORCITYSTART=&ITIERRORCITYEND=&ITI_START_CITYNAME="+fromcity+"&ITI_END_CITYNAME="+tocity;
            window.open(url,"Shell");
            break;
        }
        case "DEA":
        {
            switch (fromcountry) {
                case "DEU":
                    fromcountry='';
                    break;
                default:
                    document.routenplaner.fromcountry.focus();
                    alert ("DEA unterstützt nur Deutschland!");
                    return false;
                    break;
            }
            switch (tocountry) {
                case "DEU":
                    tocountry='';
                    break;
                default:
                    document.routenplaner.tocountry.focus();
                    alert ("DEA unterstützt nur Deutschland!");
                    return false;
                    break;
            }
            url=url+"dea.mapandguide.com/relaunch/geocode_routing.asp?";
            url=url+"BCASE=Ts&PLZ_START="+fromplz+"&PLZ_ZIEL="+toplz+"&HAUPTORT_START="+fromcity+"&HAUPTORT_ZIEL="+tocity+"&TEILORT_START=&TEILORT_ZIEL=&STRASSE_START="+fromstreet+"&STRASSE_ZIEL="+tostreet+"&KORRI=1000&OPTIM=70&FAHRZ=1";
            window.open(url,"DEA");
            break;
        }
 
        case "Falk":
        {
             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");
             break;
        }
 
        case "Teleinfo":
        {
            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;
            }
            switch (tocountry) {
                case "BEL": 
                    tocountry="B";
                    break;
                case "DNK": 
                    tocountry="DK";
                    break;
                case "DEU": 
                    tocountry="D";
                    break;
                case "FRA": 
                    tocountry="F";
                    break;
                case "GBR": 
                    tocountry="GB";
                    break;
                case "ITA": 
                    tocountry="I";
                    break;
                case "LIE": 
                    tocountry="CH";
                    break;
                case "LUX": 
                    tocountry="L";
                    break;
                case "NLD": 
                    tocountry="NL";
                    break;
                case "NOR": 
                    tocountry="N";
                    break;
                case "AUT": 
                    tocountry="A";
                    break;
                case "PRT": 
                    tocountry="P";
                    break;
                case "CHE": 
                    tocountry="CH";
                    break;
                case "ESP": 
                    tocountry="E";
                    break;
                case "SWE": 
                    tocountry="S";
                    break;
                default: 
                    tocountry="";
                    break;
            }
            url=url+"premium.telemap.de/basis/teleroute_zwischaus.asp?";
            url=url+"startplz="+fromplz+"&startort="+fromcity+"&startot=&startstr="+fromstreet+"&startland="+fromcountry+"&zielplz="+toplz+"&zielort="+tocity+"&zielot=&zielstr="+tostreet+"&zielland="+tocountry;
            url=url+"&kurzschnell=0&autobahn=0&anab=1&stunde=14&minuten=10&pkw=2";
            window.open(url,"Teleinfo");
            break;
            
        }
        
        case "Opel":
        {
            document.forms["opel"].elements[0].value=fromstreet;
            document.forms["opel"].elements[1].value=fromplz+" "+fromcity;
            document.forms["opel"].elements[2].value=fromcountry;
            document.forms["opel"].elements[4].value=tostreet;
            document.forms["opel"].elements[5].value=toplz+" "+tocity;
            document.forms["opel"].elements[6].value=tocountry;
            document.forms["opel"].submit();
            break;
        }

        case "Reiseplanung":
        {
            url=url+"reiseplanung.de/routing/controller_routing.jsp?";
            url=url+"routeEntry_start_country="+fromcountry+"&routeEntry_start_zip="+fromplz+"&routeEntry_start_city="+fromcity+"&routeEntry_dest_country="+tocountry+"&routeEntry_dest_zip="+toplz+"&routeEntry_dest_city="+tocity+"&rpcalcroute=Go";
            window.open(url,"Reiseplanung");
            break;
        }
    }
    return false;
}
