<div id="my2" style="display:none;">Тип ЛС: <select name="add_account2" id="add_account_list2"></select><p>№ ЛС*: <input type="text" name="client_account_field_number" value="" /></p><cite>* Номер ЛС формируется вручную</cite></div>

	<div class="sidebar_menu">

            <div class="box-head">Лицевые счета</div>
            <div class="box-content" id="account_div">
            <table border="0" cellspacing="0" cellpadding="0">
                <?php 
$n = 1;
foreach ($client as $clients_account) {
    echo '<tr>';
    echo '<td style="padding-right:15px;">';
    print anchor("", $clients_account->accounts, array('id' => 'add_menu', 'onclick' => "getCustomerGroup('{$clients_account->id}','{$clients_account->id_service}','{$clients_account->id_client}'); return false;"));
    echo '</td><td>';
    $counter = new Clients();
    if ($counter->countAccount($clients_account->id_client) > 1) {
        print '<button style="font-size:8px;float:left;margin:4px;" onclick="copyOptions(' . $clients_account->id . ',' . $clients_account->id_client . ')" class="copy_account_button">Копировать</button>';
    }
    print '<button style="font-size:8px;margin:4px;" onclick="deleteAccount(' . $clients_account->id . ',' . $clients_account->id_client . ')" class="delete_account_button">Удалить</button></td>';
    echo '</tr>';
}
?>
    </table>
		<button style="font-size:10px;margin:10px;" id="add_account_button" class="add_account_button"> Новый</button>
		<button style="font-size:10px;margin:10px;" id="add_account_button2" class="add_account_button"> Другой.№</button>
            </div>
        </div>
	
	<div id="addAccrual" style="display: none;">