function getSelectVal(select) {
	return select.options[select.selectedIndex].value;
}
function go_filter(){
	var brand = getSelectVal(document.getElementById('filter_brand'));
	var category = getSelectVal(document.getElementById('filter_category'));
	var type = getSelectVal(document.getElementById('filter_type'));
	var url = '';
	//console.log(url);
	if (type) {
		url += 'type/'+type+'/';
	}
	///console.log(url);
	if (category) {
		url += 'c/'+category+'/';
	}
	//console.log(url);
	if (brand) {
		url += 'br/'+brand+'/';
	}
	//console.log(url);
	if (url) {
		//console.log(url);
		document.location = '/catalog/'+url;
	}
}