<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>

<a name="addcomment"></a>
<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">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="50" style="width:100%;" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></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="userID" value="$userID"> 
			  <input type="hidden" name="referer" value="$referer"> 	
			  <input type="hidden" name="parentID" value="$parentID"> 
              <input type="hidden" name="type" value="$type"> 
              <input type="submit" name="saveusercomment" value="post comment"></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
