anchor.diff:    if(i != -1) {
       adminArray.splice(i, 1);
     }
  +}
  +
  +function onRepresentativeSelectChange() {
  +  if(updateSelect2_representative) {
  +    updateSelect2_representative = false;
  +    return;
  +  }
  +  
  +  var selected_option = representativeSelect.find("option");
  +  var id = selected_option.attr("value");
  +  console.log(id);
  +  var name = selected_option.text();
  +  console.log(name);
  +
  +  addRepresentative(id, name);
  +
  +  selected_option.remove();
  +  updateSelect2_representative = true;
  +  representativeSelect.val(null).trigger('change');
   }
   
   function addRepresentative(id, name){
  
positive.code:           <% end %>
          </div>
  
          <input id="search-box-admin" name="q" type="text" class="form-control" autocomplete="off"/>
          <div class="dropdown">
            <ul id="search-results-admin" class="dropdown-menu">
            </ul>
          </div>
        </div>
      </div>
    </div>
  
negative.code:           <% end %>
          </div>
  
          <select id="search_box_representative" name="q" type="text" class="form-control user-auto-complete" autocomplete="off" onchange="onRepresentativeSelectChange()"></select>
        </div>
      </div>
    </div>
  