window.onload = function () {
	new Ajax.Autocompleter("location", "autocomplete_choices", base_url+"change/ajaxsearch/", {minChars:3});
	
	$('changelocationform').onsubmit = function () {
		inline_results();
		return false;	
	}
}

function inline_results() {
	new Ajax.Updater ('function_description', base_url+'change/ajaxsearch', {method:'post', postBody:'description=true&location='+$F('location')});
	new Effect.Appear('function_description');

}