anchor.diff:              
               $("select#organizations").change(function() {
                   if (this.value != "") {
  -                	if ($("#loadingroles").length == 0) {
  -                		  $(this).after(" <img src='img/ajax-loader-arrow.gif' class='smallicon' id='loadingroles'/>");
  -                	}
  +                    if ($("#loadingroles").length == 0) {
  +                        $(this).after(" <img src='img/ajax-loader-arrow.gif' class='smallicon' id='loadingroles'/>");
  +                    }
                       getOrgGroupsForSelect(this.value, $("select#groups"));
                       
                       $.getJSON("User.action?findRoles=",{userOrganization: this.value, ajax: 'true'}, function(roles){
  
positive.code: 	        </div>
  	        <div id="tabs_content_container" class="admin-tabs_content_container">
  	            <div id="users" class="tab_content">
  	               <h2 class="largeheader">
  		               <c:if test="${user.getHighestAccessRight() != 200}">
  			               <fmt:message key="admin.users.long"><fmt:param value="${user.organization.name}"/></fmt:message>
  		               </c:if>
  		               <c:if test="${user.getHighestAccessRight() == 200}">
  		                   <fmt:message key="admin.users"/>
  		               </c:if>
  	               </h2>
                     <div class="datatable-tools users">
  				        <input type="checkbox" class="select" title="<fmt:message key="button.select.all"/>">
  						<button id="delete-users" disabled><fmt:message key="button.selected.delete.users"/></button>
  						<button id="addUserBtn"><fmt:message key="admin.adduser"/></button>
  						
  				   </div>
                     <img id="usertable-loader" src="img/ajax-loader-blue.gif"/>
  	               <table id="usertable" class="admin-datatable">
  	                   <thead>
  	                       <tr>
  	                           <th><fmt:message key="headerkey.user"/></th>
  	                           <th><fmt:message key="user.group"/></th>
                            <%-- <th><fmt:message key="user.role"/></th> --%>
  	                           <th><fmt:message key="user.fedorarole"/></th>
  	                       </tr>
  	                   </thead>
  	               </table>
  	            </div> <%-- Users tab --%>
  	            
  	            <div id="organizationroles" class="tab_content">
  	               <h2 class="largeheader">
  	                   <c:if test="${user.getHighestAccessRight() != 200}">
                             <fmt:message key="admin.organizationroles.long"><fmt:param value="${user.organization.name}"/></fmt:message>
                         </c:if>
                         <c:if test="${user.getHighestAccessRight() == 200}">
                             <fmt:message key="admin.organizationroles"/>
                         </c:if>
  	               </h2>
  	               <div class="datatable-tools roles">
                          <input type="checkbox" class="select" title="<fmt:message key="button.select.all"/>">
                          <button id="delete-roles" disabled><fmt:message key="button.selected.delete.roles"/></button>
                          <button id="addOrganizationRoleBtn" class="topopup" ><fmt:message key="admin.addorganizationrole"/></button>                       
                     </div>
  	               <table id="roletable" class="admin-datatable">
                         <thead>
                             <tr>
                                 <th><fmt:message key="role.name"/></th>
  
negative.code:             });
              
              $("#roletable").on("click", ".edit-role", function(e){
                  var $edit_button = $(this);
                  $(".errortext").remove();
                  if ($("#loadingroledata").length == 0) {
                      $edit_button.after(" <img src='img/ajax-loader-arrow.gif' class='smallicon' id='loadingroledata'/>");
                  }
                  
                  var roleDn = encodeURI(JSON.stringify($(this.parentNode).find(".select-role").data("dn")));
                  $.ajax({
                      url: "Role.action?getRoleForUpdating=",
                      data: {roleDn: roleDn},
                      dataType: "json",
                      success: function(role){
                      	showUpdateRoleWindow(role);
                      }, // success
                      error: function(error) {
                          $("#loadingroledata, .errortext").remove();
                          $edit_button.after(" <span class='errortext'>"+error.status+" - "+error.statusText+"</span>");
                      }
  