function resetSearch() {
    showHideDependentQS('srch_id_vehicle_type');

    $('select#id_fuel_type option:selected,#id_gear_type option:selected,#id_domicile option:selected,#pfrom option:selected,#pto option:selected,#yfrom option:selected,#yto option:selected,#enginefrom option:selected,#engineto option:selected,#mileagefrom option:selected,#mileageto option:selected').removeAttr("selected");
    changeDropDownValue(document.srch.pfrom,document.srch.pto,'€','');
    changeDropDownValue(document.srch.yfrom,document.srch.yto,'','');
    changeDropDownValue(document.srch.enginefrom,document.srch.engineto,'','');
    changeDropDownValue(document.srch.mileagefrom,document.srch.mileageto,'km','');

    var srchResetField=['id_fuel_type','id_gear_type','pfrom','pto','yfrom','yto','enginefrom','engineto','mileagefrom','mileageto','id_domicile'];
    setCustomSelectText(srchResetField);
    removeSelectedHighlight(srchResetField);

    $('.customCheckLabel').removeClass('select_checkbox');
    $('.custom_cb').attr('checked', false);
}
function cleanUrl(qs) {
    var u=_su,mk = qs.elements.id_make.options[qs.elements.id_make.selectedIndex],md = qs.elements.id_model.options[qs.elements.id_model.selectedIndex];

    u=u.replace(/\s/g,'-').toLowerCase();

    if (mk.value && md.value)
        u +='/' + mk.title+ '/' + md.title+'?';
    else if (mk.value && !md.value)
        u +='/' + mk.title + '/kaikki?';
    else
        u +='/haku?';

    u = u.replace(/\s/g, '-').toLowerCase();
    mk.value = md.value = '';

    cleanFrmUrl(qs,u);

    return false;
}
