function autocompletar(a,f,c,g,d,b){var e=new Ajax.Autocompleter(a,b,f,{parameters:c,minChars:3,frequency:0.2,autoSelect:false,indicator:"indicator_"+a,afterUpdateElement:function(i,h){if(g!=""){$(g).value=h.id
}if(d!=""){$(d).value=i.value
}}})
}Ajax.Autocompleter.prototype.oldUpdateChoices=Ajax.Autocompleter.prototype.updateChoices;
Ajax.Autocompleter.prototype.updateChoices=function(a){this.oldUpdateChoices(a);
if(!this.changed&&this.hasFocus){this.index=-1;
this.render()
}};
