				<!--category level {$level} -->
				<table id="123" cellpadding="0" cellspacing="0">
				<tr>
					<td colspan="2" style="padding:5px 0px 5px 0px;">
						<b>{if $level==0}{$lang.answers.categories}{else}{$lang.answers.subcategories}{/if}</b>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<select id="cat{$level}" name="categories" onchange="javascript: initButtons({$level});" size="2" style="width:250px; height:150px;">
							{foreach name=category from=$categories item=item}
							<option value="{$item.id}" onclick="javascript: initButtons({$level});" >{$item.name}</option>
							{/foreach}
						</select>
					</td>
				</tr>
				<tr>
					<td align="right">
						<table cellpadding="0" cellspacing="0" class="answ_cats_butts">
						<tr>
							<td style="padding:0px;"><input id="add_text{$level}" type="text" style="display:none;" class="input_text"/></td>
							<td align="right" style="padding-top: 0px;">
                                <a class="admin_button_major" id="add_button{$level}" onclick="javadcript: showField('add',{$level});" >{$lang.button.add}<span>&nbsp;</span></a>								
                                <a class="admin_button_major" id="save_added_button{$level}" onclick="javascript: addCat({$level});" style="display:none;" >{$lang.button.save}<span>&nbsp;</span></a>
                            </td>
						</tr>
						<tr>
							<td style="padding:0px;"><input id="edit_text{$level}" type="text" value="" style="display:none;" class="input_text"/></td>
							<td align="right" style="padding-top: 0px;">
                                <a class="admin_button_major" id="edit_button{$level}" onclick="javascript: showField('edit',{$level});" style="display:none;" >{$lang.button.edit}<span>&nbsp;</span></a>
								<a class="admin_button_major" id="save_edited_button{$level}" onclick="javascript: saveCat({$level});" style="display:none;" >{$lang.button.save}<span>&nbsp;</span></a>   
							</td>
						</tr>
						<tr>
							<td></td>
							<td align="right" style="padding-top: 0px;">
                                <a class="admin_button_major" id="del_button{$level}" onclick="javascript: delCat({$level});" style="display:none;" >{$lang.button.delete}<span>&nbsp;</span></a>								
							</td>
						</tr>
						</table>
					</td>
				</tr>
				</table>
				<!--/category level {$level} -->