$sql = "select DISTINCT IdBud from $table_db where locate('$q', $find_field) > 0 and id ='$_GET[xxxx]' order by locate('$q', $find_field), $find_field limit $pagesize";
function make_autocom(autoObj,showObj){
var mkAutoObj=autoObj;
var mkSerValObj=showObj;
new Autocomplete(mkAutoObj, function() {
this.setValue = function(id) {
document.getElementById(mkSerValObj).value = id;
}
if ( this.isModified )
this.setValue("");
if ( this.value.length < 1 && this.isNotClick )
return ;
return "data.php?xxx=<?=$_GET['xxx']?>&q=" +encodeURIComponent(this.value);
});