function Filtern(){var e=escape(document.filter.ORT.value.toLowerCase());var g=decodeURI(document.filter.ORT.value.toLowerCase());var a=decodeURI(document.filter.PLZ.value.toLowerCase());var d=escape(document.filter.PLZ.value.toLowerCase());var f=escape(document.filter.Name.value.toLowerCase());LandIndex=((document.filter.LAND.selectedIndex));var h=document.filter.LAND.options[LandIndex].value.toLowerCase();if(document.filter.BRA!=undefined){var b=escape(document.filter.BRA.value);var j=escape(document.filter.BRA.options[document.filter.BRA.selectedIndex].text.toLowerCase())}else{b=0}f=f.replace("\n","");var c="";if(h=="d"){c="deutschland"}if(h=="f"){c="frankreich"}if(h=="gb"){c="england"}if(h=="i"){c="italien"}if(h=="a"){c="oesterreich"}if(h=="ch"){c="schweiz"}if(h=="e"){c="spanien"}if(h=="usa"){c="usa"}if(h=="cdn"){c="canada"}if(h=="nl"){c="netherlands"}if(h=="b"){c="belgien"}if(h=="dk"){c="daenemark"}if(h=="aus"){c="australien"}if(h=="fin"){c="finnland"}if(h=="f"){c="frankreich"}if(h=="i"){c="italien"}if(h=="ind"){c="indien"}if(h=="pl"){c="polen"}if(h=="p"){c="portugal"}if(h=="ro"){c="rumänien"}if(h=="s"){c="schweden"}if(h=="za"){c="suedafrika"}if(h=="hu"){c="ungarn"}if(c==""){c="allelaender"}f=f.replace(/-/," ");g=g.replace(/ü/,"ue");g=g.replace(/ö/,"oe");g=g.replace(/ä/,"ae");g=g.replace(/&szlig;/,"ss");g=g.replace(/'/,"");g=g.replace(/""/,"");g=g.replace(/""/,"");g=g.replace(/&uuml;/,"ue");g=g.replace(/&ouml;/,"oe");g=g.replace(/&auml;/,"ae");g=g.replace(/ß/,"ss");g=g.replace(/,/,"");g=g.replace(/;/,"");g=g.replace(/:/,"");g=g.replace(/!/,"");g=g.replace(/&/,"");g=g.replace(/#/,"");g=g.replace(/|/,"");g=g.replace(/</,"");g=g.replace(/>/,"");g=g.replace(/@/,"");g=g.replace(/ +/g," ").replace(/^\s+/g,"").replace(/\s+$/g,"");a=a.replace(/ü/,"ue");a=a.replace(/ö/,"oe");a=a.replace(/ä/,"ae");a=a.replace(/&szlig;/,"ss");a=a.replace(/'/,"");a=a.replace(/""/,"");a=a.replace(/""/,"");a=a.replace(/&uuml;/,"ue");a=a.replace(/&ouml;/,"oe");a=a.replace(/&auml;/,"ae");a=a.replace(/ß/,"ss");a=a.replace(/,/,"");a=a.replace(/;/,"");a=a.replace(/:/,"");a=a.replace(/!/,"");a=a.replace(/&/,"");a=a.replace(/#/,"");a=a.replace(/|/,"");a=a.replace(/</,"");a=a.replace(/>/,"");a=a.replace(/@/,"");a=a.replace(/ +/g," ").replace(/^\s+/g,"").replace(/\s+$/g,"");if(h=="gb"||h=="usa"||h=="cdn"||h=="aus"||h=="ind"||h=="za"||h=="hu"||h=="ro"||h=="pl"||h=="dk"||h=="nl"||h=="a"||h=="ch"||h=="b"||h=="fin"||h=="f"||h=="i"){var f=encodeURIComponent(Trim(document.filter.Name.value.toLowerCase())).toLowerCase();var g=encodeURIComponent(Trim(document.filter.ORT.value.toLowerCase())).toLowerCase();var a="";var i="";if(h=="gb"||h=="usa"||h=="cdn"||h=="aus"||h=="ind"||h=="za"){if(h=="ind"){spaceCode="+"}else{spaceCode="%20"}form_buildURL_search="search"}if(h=="hu"||h=="ro"||h=="pl"||h=="dk"||h=="nl"||h=="a"){spaceCode="+";form_buildURL_search=""}if(h=="ch"){spaceCode="+";form_buildURL_search="suchen"}if(h=="b"){spaceCode="+";form_buildURL_search="zoeken"}if(h=="fin"){spaceCode="%20";form_buildURL_search="hae"}if(h=="f"){spaceCode="+";form_buildURL_search="recherche"}if(h=="i"){spaceCode="+";form_buildURL_search="cerca"}f=f.replace("\n","");f=f.replace(/%20/g,spaceCode);g=g.replace("\n","");g=g.replace(/%20/g,spaceCode);a=a.replace("\n","");if(f==""&&g!=""&&i==""){href="/"+g+"/"}else{if(f!=""&&g!=""&&i==""){href="/"+g+"/"+f+".html"}else{if(f!=""&&g==""&&i==""){if(form_buildURL_search==""){href="/"+f+".html"}else{href="/"+form_buildURL_search+"/"+f+".html"}}else{href="/"}}}if(h=="gb"){parent.location.href="http://www.cylex-uk.co.uk"+href}if(h=="usa"){parent.location.href="http://www.cylex-usa.com"+href}if(h=="cdn"){parent.location.href="http://www.cylex.ca"+href}if(h=="aus"){parent.location.href="http://www.cylex.com.au"+href}if(h=="ind"){parent.location.href="http://www.cylex.in"+href}if(h=="za"){parent.location.href="http://www.cylex.co.za"+href}if(h=="hu"){parent.location.href="http://www.cylex-tudakozo.hu"+href}if(h=="ro"){parent.location.href="http://www.firmania.ro"+href}if(h=="pl"){parent.location.href="http://www.cylex.pl"+href}if(h=="dk"){parent.location.href="http://www.cylex.dk"+href}if(h=="nl"){parent.location.href="http://www.cylex-bedrijvengids.nl"+href}if(h=="a"){parent.location.href="http://www.cylex-oesterreich.at"+href}if(h=="ch"){parent.location.href="http://www.cylex.ch"+href}if(h=="b"){parent.location.href="http://www.cylex.be"+href}if(h=="fin"){parent.location.href="http://www.cylex.fi"+href}if(h=="f"){parent.location.href="http://www.cylex-france.fr"+href}if(h=="i"){parent.location.href="http://www.cylex.it"+href}}if(h=="s"){if(f==""&&g==""&&i==""){location.replace("http://www.foeretag-sverige.se/")}else{location.replace("http://www.foeretag-sverige.se/soeka/sverige/land-/stad-"+g+"/postnummer-"+a+"/l1cy1-s_land1cy1-_stad1cy1-"+g+"-postnummer1cy1-"+a+"_namn1cy1-"+f+"-s1.html")}}if(h=="p"){if(f==""&&g==""&&i==""){location.replace("http://www.cylex.pt")}else{location.replace("http://www.cylex.pt/pesquisar/portugal/regiao-/localidade-"+g+"/cp-"+a+"/l1cy1-p_regiao1cy1-_localidade1cy1-"+g+"-cp1cy1-"+a+"_nome1cy1-"+f+"-s1.html")}}if(h=="e"){if(f==""&&g==""&&i==""){location.replace("http://www.business-directory-spain.com")}else{location.replace("http://www.business-directory-spain.com/search/spain/state-/city-"+g+"/zip-"+a+"/l1cy1-e_state1cy1-_city1cy1-"+e+"-zip1cy1-"+d+"_name1cy1-"+f+"-s1.html")}}if(h=="d"){if(b!=0){parent.location.href="/suche/"+c+"/ort-"+g+"/plz-"+a+"/l1cy1-"+h+"_ort1cy1-"+e+"-plz1cy1-"+d+"_name1cy1-"+f+"-s"+b+"--"+j+"--0----0----0----1.html"}else{parent.location.href="/suche/"+c+"/ort-"+g+"/plz-"+a+"/l1cy1-"+h+"_ort1cy1-"+e+"-plz1cy1-"+d+"_name1cy1-"+f+"-s1.html"}}if(h==""||h=="d"&&b==0){location.replace("/suche/"+c+"/ort-"+g+"/plz-"+a+"/l1cy1-"+h+"_ort1cy1-"+e+"-plz1cy1-"+d+"_name1cy1-"+f+"-s1.html")}}function Trim(a){if(a.length<1){return""}a=RTrim(a);a=LTrim(a);if(a==""){return""}else{return a}}function RTrim(c){var d=String.fromCharCode(32);var e=c.length;var b="";if(e<0){return""}var a=e-1;while(a>-1){if(c.charAt(a)==d){}else{b=c.substring(0,a+1);break}a=a-1}return b}function LTrim(c){var d=String.fromCharCode(32);if(e<1){return""}var e=c.length;var b="";var a=0;while(a<e){if(c.charAt(a)==d){}else{b=c.substring(a,e);break}a=a+1}return b};
