anchor.diff:    }
   }
   
  +function addRepresentative(id, name){
  +  $( "#representative" ).replaceWith( "<div id=\"representative\"><li>"+name+"</li><input type=\"hidden\" name=\"representative\" value=\""+id+"\" /></div>" );
  +  $('#search-box-representative').val("");
  +  $("#search-results-representative").hide();
  +}
   
     
   $("#search-box-admin").bind("keyup", function() {
  
positive.code: var adminDiv = $( "#admins" );
  
  function addAdmin(id, name){
    //alert($.inArray(id,adminArray));
    if($.inArray(id,adminArray) == -1) {
      adminDiv.append("<div id=\"admin_"+id+"\"><p>"+name+" <a onClick=\"removeAdmin("+id+")\">entfernen</a></p><input type=\"hidden\" name=\"admins["+id+"]\" value=\""+id+"\" /></div>");
      adminArray.push(id);
    }
    $('#search-box-admin').val("");
  
negative.code: 
      <div class="control-group">
        <!-- Representative -->
        <%= f.label :chair_representative, class: 'control-label' %><br>
        <div id="representative">
          <p>no representative selected</p>
        </div>
  
        <input id="search-box-representative" name="q" type="text" class="form-control" autocomplete="off"/>
        <div class="dropdown">
          <ul id="search-results-representative" class="dropdown-menu">
          </ul>
  