<script language="JavaScript" type="text/javascript" src="{$server}{$template_root}/js/comments.js"></script>
<div class="comments_cont">
	<div class="comments">
		<div id="post_form_div_{$unique_form_id}" class="content_alloc classfields" style="overflow: hidden;">
			<div>
				<textarea rows="2" style="width:99%;" name="comment" id="comment_{$unique_form_id}" onkeypress="" onkeyup="javascript: BadWords('comment_{$unique_form_id}'); comment.CommentChange('comment_{$unique_form_id}')"></textarea>
				<input type="hidden" id="com_count" value="{$comments_data.count}">
				<div class="float_left" style="margin-top:9px;margin-left:7px;">
					<input type="button" onclick="javascript: comment.post_form('{$unique_form_id}', '{$object_id}', '{$object_type_gid}', '{$comments_data.items.type.moderation_admin}');" value="{$lang.button.add}">
				</div>
				<div style="margin: 15px 2px;" class="float_right">
					<div class="float_right count_sum" style="margin-top:9px;" id="count_sum_{$unique_form_id}">256</div>
				</div>
				<div id="bad_div_comment_{$unique_form_id}" class="bad_div"></div>
			</div>
		</div>
		<div id="comment_block_{$object_id}">
		{if $comments_data.items}{include file="$gentemplates/comment_block.tpl"}{/if}
		</div>
		<div class="search_form_hide_show" {if $comments_data.items|@count<5} style="display:none;"{/if} id="update_comment" onclick="javascript: comment.updateComment('{$object_id}', '{$object_type_gid}' );"><div style="height:20px; padding:11px;cursor:pointer;"><a>{$lang.section.comments}</a></div></div>	
	</div>
</div>
<script type="text/javascript">
var comment;
comment =  new Comment;			
</script>