{*<div id="datacollection_projectssearchform" class="searchform ui-corner-all" style="margin-bottom: 10px;">
    {$basic_filter=array()}
    {$basic_filter.print=true}
    {include file="r_forms/filter_main_topbtns.tpl" update_action='datacollection_addresses.load_new()' basic_filter=$basic_filter}
    {include file='r/ajaxselect.tpl' name='filter_addresses' title="addresses_address"
        class="addressselect fulltext_search t-long"}
</div>*}

<div id="datacollection_addresses" style="display:none" class="ui-accordion ui-widget ui-helper-reset ui-accordion-icons">
    {if $has_right_address_groups}    
        <h3>
            <a href="#datacollection_addresses_address_groups">
                <span title="" class="dialog_make_btn16 address_group smallbtns ui-corner-all"></span>
                {$i.datacollection_address_groups}
                <span id="datacollection_addresses_address_groups_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_address_groups">...</div>    
    {/if}
    {if $has_right_projects}    
        <h3>
            <a href="#datacollection_addresses_projects">
                <span title="" class="dialog_make_btn16 project smallbtns ui-corner-all"></span>
                {$i.datacollection_projects}
                <span id="datacollection_addresses_projects_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_projects">...</div>
    {/if}
    {if $has_right_opentasks}      
        <h3><a href="#datacollection_addresses_opentasks">
                <span title="" class="dialog_make_btn16 opentasks smallbtns ui-corner-all"></span>
                {$i.datacollection_tasks}
                <span id="datacollection_addresses_opentasks_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_opentasks">...</div>    
    {/if}
    {if $has_right_externalexpenses}      
        <h3><a href="#datacollection_addresses_externalexpenses">
                <span title="" class="dialog_make_btn16 externalexpenses smallbtns ui-corner-all"></span>
                {$i.datacollection_externalexpenses}
                <span id="datacollection_addresses_externalexpenses_count" class="dc_counter"></span>
            </a>
        </h3>    
        <div id="datacollection_addresses_externalexpenses">...</div>       
    {/if}
    {if $has_right_fees}      
        <h3><a href="#datacollection_addresses_fees">
                <span title="" class="dialog_make_btn16 fees smallbtns ui-corner-all"></span>
                {$i.datacollection_fees}
                <span id="datacollection_addresses_fees_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_fees">...</div>    
    {/if}
    {if $has_right_personalappointments}      
        <h3><a href="#datacollection_addresses_personalappointments">
                <span title="" class="dialog_make_btn16 personalappointmentplaner smallbtns ui-corner-all"></span>
                {$i.datacollection_personalappointments}
                <span id="datacollection_addresses_personalappointments_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_personalappointments">...</div>   
    {/if}
    {if $has_right_drawings}     
        <h3><a href="#datacollection_addresses_drawings">
                <span title="" class="dialog_make_btn16 drawings smallbtns ui-corner-all"></span>
                {$i.datacollection_drawings}
                <span id="datacollection_addresses_drawings_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_drawings">...</div>     
    {/if}    
    {if $has_right_drawings_outbox}
        <h3><a href="#datacollection_addresses_drawings_outbox">
                <span title="" class="dialog_make_btn16 drawings_inout smallbtns ui-corner-all"></span>
                {$i.datacollection_drawings_outbox}
                <span id="datacollection_addresses_drawings_outbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_drawings_outbox">...</div>     
    {/if}  
    {if $has_right_outbox}     
        <h3><a href="#datacollection_addresses_outbox">
                <span title="" class="dialog_make_btn16 inoutbox smallbtns ui-corner-all"></span>
                {$i.datacollection_outbox}
                <span id="datacollection_addresses_outbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_outbox">...</div>     
    {/if}     
    {if $has_right_inbox}     
        <h3><a href="#datacollection_addresses_inbox">
                <span title="" class="dialog_make_btn16 inoutbox smallbtns ui-corner-all"></span>
                {$i.datacollection_inbox}
                <span id="datacollection_addresses_inbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_inbox">...</div>     
    {/if}    
    {if $has_right_mailinbox}     
        <h3><a href="#datacollection_addresses_mailinbox">
                <span title="" class="dialog_make_btn16 mailinbox smallbtns ui-corner-all"></span>
                {$i.datacollection_mailinbox}
                <span id="datacollection_addresses_mailinbox_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_mailinbox">...</div>     
    {/if}      
    {if $has_right_correspondence}     
        <h3><a href="#datacollection_addresses_correspondence">
                <span title="" class="dialog_make_btn16 correspondence smallbtns ui-corner-all"></span>
                {$i.datacollection_correspondence}
                <span id="datacollection_addresses_correspondence_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_correspondence">...</div>     
    {/if}   
    {if $has_right_calls}     
        <h3><a href="#datacollection_addresses_calls">
                <span title="" class="dialog_make_btn16 call smallbtns ui-corner-all"></span>
                {$i.datacollection_calls}
                <span id="datacollection_addresses_calls_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_calls">...</div>     
    {/if}      
    {if $has_right_addressfiles}     
        <h3><a href="#datacollection_addresses_addressfiles">
                <span title="" class="dialog_make_btn16 files smallbtns ui-corner-all"></span>
                {$i.datacollection_files}
                <span id="datacollection_addresses_addressfiles_count" class="dc_counter"></span>
            </a>
        </h3>
        <div id="datacollection_addresses_addressfiles">...</div>     
    {/if}       
</div>    
    {if $has_right_address_groups}         
        {include file='r/hidden.tpl' name="datacollection_addresses_address_groups_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_address_groups_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_address_groups_page" default="1"}  
    {/if}
    {if $has_right_projects}            
        {include file='r/hidden.tpl' name="datacollection_addresses_projects_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_projects_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_projects_page" default="1"}
    {/if}
    {if $has_right_opentasks}            
        {include file='r/hidden.tpl' name="datacollection_addresses_opentasks_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_opentasks_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_opentasks_page" default="1"}     
    {/if}
    {if $has_right_externalexpenses}            
        {include file='r/hidden.tpl' name="datacollection_addresses_externalexpenses_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_externalexpenses_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_externalexpenses_page" default="1"}       
    {/if}
    {if $has_right_fees}            
        {include file='r/hidden.tpl' name="datacollection_addresses_fees_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_fees_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_fees_page" default="1"}          
    {/if}
    {if $has_right_personalappointments}          
        {include file='r/hidden.tpl' name="datacollection_addresses_personalappointments_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_personalappointments_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_personalappointments_page" default="1"}        
    {/if}
    {if $has_right_drawings}    
        {include file='r/hidden.tpl' name="datacollection_addresses_drawings_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_drawings_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_drawings_page" default="1"}         
    {/if}     
    {if $has_right_drawings_outbox} 
        {include file='r/hidden.tpl' name="datacollection_addresses_drawings_outbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_drawings_outbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_drawings_outbox_page" default="1"}         
    {/if}    
    {if $has_right_outbox}    
        {include file='r/hidden.tpl' name="datacollection_addresses_outbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_outbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_outbox_page" default="1"}         
    {/if}    
    {if $has_right_inbox}    
        {include file='r/hidden.tpl' name="datacollection_addresses_inbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_inbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_inbox_page" default="1"}         
    {/if}    
    {if $has_right_mailinbox}    
        {include file='r/hidden.tpl' name="datacollection_addresses_mailinbox_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_mailinbox_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_mailinbox_page" default="1"}         
    {/if}    
    {if $has_right_correspondence}    
        {include file='r/hidden.tpl' name="datacollection_addresses_correspondence_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_correspondence_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_correspondence_page" default="1"}         
    {/if}     
    {if $has_right_calls}    
        {include file='r/hidden.tpl' name="datacollection_addresses_calls_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_calls_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_calls_page" default="1"}         
    {/if}        
    {if $has_right_addressfiles}    
        {include file='r/hidden.tpl' name="datacollection_addresses_addressfiles_order_by"}
        {include file='r/hidden.tpl' name="datacollection_addresses_addressfiles_order_by_dir"}
        {include file='r/hidden.tpl' name="datacollection_addresses_addressfiles_page" default="1"}         
    {/if}    