<div id="wc"><div id="wcc">
<script type="text/javascript">
var cajax = new sack();
function add_comment(){
	var form = document.getElementById('comment');
	cajax.whattodo = 'append';
	cajax.onShow("");[not-logged]
	cajax.setVar("name", form.name.value);
	cajax.setVar("password", form.password.value);
	cajax.setVar("mail", form.mail.value);[captcha]
	cajax.setVar("vcode", form.vcode.value); [/captcha][/not-logged]
	cajax.setVar("content", form.content.value);
	cajax.setVar("newsid", form.newsid.value);
	cajax.requestFile = "{zz_url}/includes/comments.add.php";
	cajax.method = 'POST';
	cajax.element = 'new_comments';
	cajax.runAJAX();
}
</script>

<div id="new_comments"></div>
<form id="comment" method="post" action="" name="form" onSubmit="add_comment(); return false;">
<input type="hidden" name="newsid" value="{newsid}" />

<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td>
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td>
				<img border="0" src="{tpl_url}/images/2z_40.gif" width="7" height="36" /></td>
				<td style="background-image:url('{tpl_url}/images/2z_41.gif');" width="100%">&nbsp;<b><font color="#FFFFFF">{l_addcomment}</font></b></td>
				<td>
				<img border="0" src="{tpl_url}/images/2z_44.gif" width="7" height="36" /></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td style="background-image:url('{tpl_url}/images/2z_54.gif');" width="7">&nbsp;</td>
				
				
[not-logged]
<tr>
<td width="200" style="padding-left: 15px;">{l_name}</td>
<td style="padding: 5px;"><input type="text" size="30" name="name" value="{savedname}"  /></td>
</tr>
<tr>
<td style="padding-left: 15px;">{l_password} <small>{l_ifreg}</small></td>
<td style="padding: 5px;"><input class="password" type="password" maxlength="16" size="30" name="password" value="" /></td>
</tr>
<tr>
<td style="padding-left: 15px;">{l_email}  <small>{l_necessary}</small></td>
<td style="padding: 5px;"><input class="email" type="text" size="30" maxlength="70" name="mail" value="{savedmail}"  /></label></td>
</tr>
[captcha]
<tr>
<td style="padding-left: 15px;"><img src="{zz_url}/trash/captcha.php" alt="" /></td>
<td style="padding: 5px;"><input class="important" type="text" name="vcode" maxlength="5" size="30" /></td>
</tr>
[/captcha]
[/not-logged]
<tr>
<td width="200" valign="top" style="padding-left: 5px;"><br />
<a href="javascript:ShowOrHide('bbcodes');"><img src="{tpl_url}/images/arr_bot.gif" border="0" />{l_bbcodes}</a><br />
<div id="bbcodes" style="display : none;"><br />{bbcodes}</div></td>

<td valign="top"><br />
<a href="javascript:ShowOrHide('smilies');"><img src="{tpl_url}/images/arr_bot.gif" border="0" />{l_smilies}</a><br /> <div style="display:none;">Скачать бесплатно <a href="http://topshablons.ru/2z-project"> шаблоны 2z-project</a></div> <div style="display:none;"><a href="http://wlna.info" title="Свежие новости">Свежие новости</a>.</div><div style="display:none;"> <a href="http://opolicii.ru/" title="Новости">Новости</a> </div>


<div id="smilies" style="display : none;"><br />{smilies}</div></td>
</tr>
<tr>
<td colspan="2" style="padding: 15px;">
<textarea name="content" style="width: 95%;" rows="8"></textarea>
</td>
</tr>
<tr>
<td style="padding: 15px;" align="left" colspan="2"><input type="submit" class="button" value="{l_add}"/>&nbsp; <input type="reset" class="button" value="{l_clear}" /></td>
</tr>

				<td style="background-image:url('{tpl_url}/images/2z_59.gif');" width="7">&nbsp;</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td>
				<img border="0" src="{tpl_url}/images/2z_68.gif" width="7" height="4" /></td>
				<td style="background-image:url('{tpl_url}/images/2z_69.gif');" width="100%"></td>
				<td>
				<img border="0" src="{tpl_url}/images/2z_70.gif" width="7" height="4" /></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</form>
</div></div>