
function markSelectedProducer(selectId, selectedProducer){
	var select = document.getElementById(selectId);
	var found = false;
	//alert('select='+select);
	//alert('producer='+selectedProducer);
	if (select && selectedProducer != ''){
		for(i=0; i< select.options.length; i++){
			var option = select.options[i];
			if (option.value == selectedProducer){
				select.selectedIndex = i;
				option.className="selectedFilter";
				select.className="selectedFilter";
				found = true;
				break;
			}
		}
		if (!found ){
			//alert('adding');
			var newoption = document.createElement('option');
			newoption.value = selectedProducer;
			newoption.innerText = selectedProducer;
			newoption.text = selectedProducer;
			select.options.add(newoption,1);
			select.selectedIndex = 1;
			select.options[1].className="selectedFilter";
			select.className="selectedFilter";
		}
	}
}