anchor.diff:  
   }
   
  -function make_autocomplete(jQueryObject, searchUrl, categoryIdVal, msg) {
  +function make_autocomplete(jQueryObject, searchUrl, msg) {
       jQueryObject.autocomplete({
   	source: function(request, response) {
  +            var cat = $("#public_entity_category_id").val();
   	    $.ajax({
   		url: searchUrl,
   		dataType: "json",
   		data: {
   		    term: request.term,
  -		    category_id: categoryIdVal,
  +		    category_id: cat,
   		},
   		success: function(data) {
   		    response($.map(data, function(item) {
  
positive.code: 	    return false; 
  	},
  	change: function(event, ui) {
  	    if (ui.item == null) {
  		$.ajax({
      	    	    url: searchUrl,
      	    	    dataType: "json",
      	    	    data: {
      	    		term: $(this).val(),
      	    		category_id: categoryIdVal,
      	    		exact: 1
      	    	    },
      	    	    success: function(data) {
  
negative.code:     var categoryIdVal = "";
  
      $("#public_entity_category_id").change(function() {
  	var categoryIdVal = $(this).val();
      });
  
      make_autocomplete($("#place_name"),
                        "../places/index",
          	      <%= "'#{I18n.translate(:area_city)}'" %>);
  
      make_autocomplete($("#public_entity_name"),
                        "../public_entities/search?form=short",
          	      <%= "'#{I18n.translate(:public_entity_name)}'" %>);
  
      make_autocomplete($("#public_entity_name_filter"),
          	      "../public_entities/search?form=short",
          	      <%= "'#{I18n.translate(:public_entity_name)}'" %>);
      
      if ($('#map_canvas').length > 0) {
  	initialize_map();
  