//$(function(){//  //  $("#extruderTop").buildMbExtruder({//    positionFixed:false,//    width:620,//    extruderOpacity:1,//    autoCloseTime:4000,//    onExtOpen:function(){},//    onExtContentLoad:function(){},//    onExtClose:function(){}//  });//  //});$(document).ready( function () {  sendupdaterequest();  $("#form_searchform").attr("method", "post");  $("#form_searchform").attr("action", "fahrzeugsuche.php");  $("#search_hersteller").change( function () {    sendupdaterequest();  });});function select_option (input_id, desired_option) {  $(input_id).map(function () {    if ($(this).val() == desired_option) {      $(this).attr("selected", "selected");    } else {      $(this).removeAttr("selected");    }  });}function reset_search() {  // Allgemeine Suche  select_option("#search_hersteller option","");  sendupdaterequest();  $("#search_modell").val("");  select_option("#search_aufbau option","");  select_option("#search_kategorie option","");  // Detailsuche  //select_option("#search_getriebe option","");  //select_option("#search_leistung_min option","");  //select_option("#search_leistung_max option","");  //select_option("#search_kraftstoff option","0");  //select_option("#search_preis_min option","");  //select_option("#search_preis_max option","");  //select_option("#search_tueren option","");  //select_option("#search_kilometer_min option","");  //select_option("#search_kilometer_max option","");  //$("#search_plz").val("");  //select_option("#search_umkreis option","");  //$("input[name=parameter]").removeAttr("checked");}function sendupdaterequest() {  $("#search_baureihe").attr("disabled", true);  $("#search_baureihe").html("<option value=''>Bitte warten...</option>");    id = $("#search_hersteller").val();  $.ajax({    url:      "inc/changeform.php",    type:     "POST",    data:     "id=" + id,    dataType: "html",    success:  function(data) {      if ($("#search_hersteller").val() == "") {        $("#search_baureihe").html("<option value=''>Kein Hersteller ausgewählt</option>");      } else {        $("#search_baureihe").attr("disabled", false);        $("#search_baureihe").html(data);      }    }  });}
