var boolTestsystem=false;if(document.URL.indexOf(":88")!=-1){boolTestsystem=true;}var objAjax=null;jQuery(document).ready(function(){if(typeof(ajaxModule)!="undefined"){objAjax=new ajaxModule();}if(jQuery("#id_customer_feedback").length){var hashXtraParams={};objAjax.setShowWaiting(false);objAjax.setTarget("id_customer_feedback",null,null,true);objAjax.sendRequest(hashXtraParams,"/cgi-bin/ajax_get_customer_feedback.pl",true);}setCarManufaturerFromCookie();jQuery("#pkwmarke").bind("newcontent",function(){setCarManufaturerFromCookie();});});function setCarManufaturerFromCookie(){if(false==jQuery("#pkwmarke").attr("disabled")&&"undefined"==typeof(strFormPKW)){for(var intCounter=1;intCounter<=22;intCounter++){var strCookieValue;try{if("number"==typeof(intCarChooseList)&&intCarChooseList>0){if(strCookieValue=jQuery.cookie('FZG_'+intCarChooseList)){if(jQuery("#pkwmarke > option:findExactNoCase('"+strCookieValue.split('|')[1]+"')").attr("selected","selected").length>0){jQuery("#pkwmarke").change();hide_kfz_auswahl();break;}else if(jQuery("#pkwmarke > option:containsNoCase('"+strCookieValue.split('|')[1]+"')").attr("selected","selected").length>0){jQuery("#pkwmarke").change();hide_kfz_auswahl();break;}}else if(strCookieValue=jQuery.cookie('FZG_'+intCounter)){if(jQuery("#pkwmarke > option:findExactNoCase('"+strCookieValue.split('|')[1]+"')").attr("selected","selected").length>0){jQuery("#pkwmarke").change();break;}else if(jQuery("#pkwmarke > option:containsNoCase('"+strCookieValue.split('|')[1]+"')").attr("selected","selected").length>0){jQuery("#pkwmarke").change();break;}}}}catch(e){for(var intCounter=1;intCounter<=22;intCounter++){jQuery.cookie('FZG_'+intCounter,null);}}}}}function get_Modell(in_objForm,in_objSelect,in_strTIdName,in_strXtraParams){var hashXtraParams=splitUrlParams(in_strXtraParams);if(jQuery(in_objSelect).val()!=''){hashXtraParams.sondersuche=in_objForm.sondersuche?in_objForm.sondersuche.value:'';hashXtraParams[in_objSelect.id]=jQuery(in_objSelect).val();setAttrVals(in_objForm,in_strTIdName,hashXtraParams);}else{in_objForm.fahrzeugtyp.length=1;jQuery("#fahrzeugtyp").attr("disabled","disabled");}in_objForm.fahrzeugtyp2.length=1;jQuery("#fahrzeugtyp2").attr("disabled","disabled");}function get_Modell2(in_objForm,in_objSelect,in_strTIdName,in_strXtraParams){var hashXtraParams=splitUrlParams(in_strXtraParams);if(jQuery(in_objSelect).val()!=''&&typeof in_objForm=="object"){hashXtraParams.pkwmarke=(in_objForm.pkwmarke)?in_objForm.pkwmarke.value:'';hashXtraParams.sondersuche=(in_objForm.sondersuche)?in_objForm.sondersuche.value:'';hashXtraParams[in_objSelect.id]=jQuery(in_objSelect).val();setAttrVals(in_objForm,in_strTIdName,hashXtraParams);}else{in_objForm.fahrzeugtyp2.length=1;jQuery("#fahrzeugtyp2").attr("disabled","disabled");}jQuery("#fahrzeugtyp2").change(function(){in_objForm.submit();});}function get_Year(in_objForm,in_objSelect,in_strTIdName,in_strXtraParams){var hashXtraParams=splitUrlParams(in_strXtraParams);if(jQuery(in_objSelect).val()!=''){hashXtraParams.sondersuche=in_objForm.sondersuche.value;hashXtraParams[in_objSelect.id]=jQuery(in_objSelect).val();setAttrVals(in_objForm,in_strTIdName,hashXtraParams);}else{in_objForm.baujahr.length=1;jQuery("#baujahr").attr("disabled","disabled");}in_objForm.fahrzeugtyp.length=1;jQuery("#fahrzeugtyp").attr("disabled","disabled");}function get_Year2(in_objForm,in_objSelect,in_strTIdName,in_strXtraParams){var hashXtraParams=splitUrlParams(in_strXtraParams);if(jQuery(in_objSelect).val()!=''){hashXtraParams.pkwmarke=in_objForm.pkwmarke.value;hashXtraParams.sondersuche=in_objForm.sondersuche.value;hashXtraParams[in_objSelect.id]=jQuery(in_objSelect).val();setAttrVals(in_objForm,in_strTIdName,hashXtraParams);}else{in_objForm.fahrzeugtyp.length=1;jQuery("#fahrzeugtyp").attr("disabled","disabled");}jQuery("#fahrzeugtyp").change(function(){in_objForm.submit();});}function get_Marke(in_objForm,in_objSelect,in_strTIdName,in_strXtraParams){var hashXtraParams=splitUrlParams(in_strXtraParams);if(jQuery(in_objSelect).val()!=''){hashXtraParams[in_objSelect.id]=jQuery(in_objSelect).val();setAttrVals(in_objForm,in_strTIdName,hashXtraParams);if(in_objForm.baujahr){in_objForm.baujahr.length=1;jQuery("#baujahr").attr("disabled","disabled");}if(in_objForm.fahrzeugtyp){in_objForm.fahrzeugtyp.length=1;jQuery("#fahrzeugtyp").attr("disabled","disabled");}if(in_objForm.fahrzeugtyp2){in_objForm.fahrzeugtyp2.length=1;jQuery("#fahrzeugtyp2").attr("disabled","disabled");}jQuery("#pkwmarke").trigger("newcontent");}else{if(in_objForm.pkwmarke){in_objForm.pkwmarke.length=1;jQuery("#pkwmarke").attr("disabled","disabled");}if(in_objForm.baujahr){in_objForm.baujahr.length=1;jQuery("#baujahr").attr("disabled","disabled");}if(in_objForm.fahrzeugtyp){in_objForm.fahrzeugtyp.length=1;jQuery("#fahrzeugtyp").attr("disabled","disabled");}if(in_objForm.fahrzeugtyp2){in_objForm.fahrzeugtyp2.length=1;jQuery("#fahrzeugtyp2").attr("disabled","disabled");}}}function splitUrlParams(in_strUrlParams){var hashXtraParams={};var strRegexPattern=/([^&=%]+)(?:(?:=|%3d)([^&=%]+)(?:%26)?)?/ig;var strMatchResult="";while(strMatchResult=strRegexPattern.exec(in_strUrlParams)){hashXtraParams[RegExp.$1]=RegExp.$2;}return hashXtraParams;}function createURL(objSelect,xtraParms){var strURL="/cgi-bin/ajax_get_car_manufacturer.pl?"+objSelect.id+"="+objSelect.options[objSelect.options.selectedIndex].value;if(xtraParms){strURL=strURL+"&"+xtraParms;}return strURL;}function setAttrVals(in_strSelectName,in_tId,in_xtraParms,in_strAjaxUrl){if("undefined"==typeof(in_strAjaxUrl)){in_strAjaxUrl="/cgi-bin/ajax_get_car_manufacturer.pl";}objAjax.setTarget(in_tId);objAjax.sendRequest(in_xtraParms,in_strAjaxUrl,true);}function show_kfz_auswahl(){jQuery('#div_kfz_auswahl_1').show();jQuery('#div_kfz_auswahl_2').show();jQuery('#div_kfz_auswahl_link').hide();}function hide_kfz_auswahl(){jQuery('#div_kfz_auswahl_1').hide();jQuery('#div_kfz_auswahl_2').hide();jQuery('#div_kfz_auswahl_link').show();}
