﻿function searchBrand(brand) {
    document.location.href = "/" + lang + '/baits/search/brand/' + brand;
}

function searchType(type, id) {
    document.location.href = "/" + lang + '/baits/search/type/' + type + '/' + id + '#advanced';
}

function searchByName(name) {
    document.location.href = "/" + lang + '/baits/search/name/' + name;
}

var timerid;
function filterBrand() {
    clearTimeout(timerid);
    timerid = setTimeout(function () { document.forms[0].submit(); }, 500);
}
