var options = {
	script:"/api/json/locations/?",
	varname:"location",
	minchars:2,
	cache:false,
	json:true,
	callback: function (obj) { document.getElementById('gotourl').value = obj.id; searchForm.submit()}
};
var as_json = new AutoSuggest('location', options);


var options_xml = {
	script:"test2.php?",
	varname:"input"
};
var as_xml = new AutoSuggest('testinput_xml', options_xml);