<script language="JavaScript" type="text/javascript">
<!--
function chkFormular() {
	if(document.post.message.value == "") {
		alert("You have to enter a message!");
		document.post.message.focus();
   		return false;
	}
	
}
-->
</script>

<form name="post" action="comments.php" method="post" onSubmit="return chkFormular()">
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="$border">
	<tr>
		<td class="title" align="center" bgcolor="$bghead">edit your comment</td>
	</tr>
	<tr>
		<td bgcolor="$pagebg"></td>
	</tr>
	<tr>
		<td bgcolor="$bg1">
			<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="formtable">
				<tr>
					<td>$addbbcode</td>
				</tr>
				<tr>
					<td>
						<textarea name="message" rows="5" cols="35" style="width:100%;" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">$message</textarea>
					</td>
				</tr>
				<tr>
					<td>
						<b>options:</b> <span class="small"> &#8226; HTML is OFF &#8226; <a href="javascript:MM_openBrWindow('code.php','BBCode','scrollbars=yes,width=600,height=500')">BBCode</a> 
						is ON &#8226; <a href="javascript:MM_openBrWindow('smileys.php','Smileys','scrollbars=yes,width=340,height=500')">Smilies</a> 
						are ON</span>
					</td>
				</tr>
				<tr>
					<td>
						<input type="hidden" name="authorID" value="$ds[userID]">
						<input type="hidden" name="commentID" value="$id">
						<input type="hidden" name="editcounter" value="$editcounter">
						<input type="hidden" name="referer" value="$referer">
						<input type="hidden" name="userID" value="$userID">
						<input type="submit" name="saveeditcomment" value="edit comment">
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</form>
