$(document).ready(function(){

	function liFormat (row, i, num) {
		var result = row[0];
		return result;
	}

	var str_mobileType = $("#mobileType").val();
	var str_brand = $("#brand").val();
	
	$("#search_input").autocomplete("/inter_search.php", {
		delay:10,
		minChars:2,
		matchSubset:1,
		autoFill:false,
		matchContains:1,
		cacheLength:1,
		selectFirst:false,
		formatItem:liFormat,
		maxItemsToShow:10,
		extraParams:{mobiletype:str_mobileType, brand:str_brand}
	}); 
});
