<script language="JavaScript" type="text/javascript">
<!--
function chkFormular() {
	if(document.post.name.value == "") {
		alert("You have to enter a name!");
		document.post.message.focus();
   		return false;
	}
	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">
          <tr align="center"> 
            <td colspan="2"><strong><font color="#CC0000">$error</font></strong></td>
          </tr>
          <tr> 
            <td width="5">Name:</td>
            <td><input name="name" type="text" value="$name" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td>E-Mail:</td>
            <td><input name="mail" type="text" value="$mail" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td>Homepage:</td>
            <td><input name="url" type="text" value="$url" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td colspan="2">Enter Security Code</td>
          </tr>
          <tr> 
            <td>$captcha</td>
            <td><input name="captcha" type="text" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'" value="" size="5"><input name="captcha_hash" type="hidden" value="$hash"></td>
          </tr>
          <tr> 
            <td> IP-Adress:</td>
            <td>$ip</td>
          </tr>
          <tr> 
            <td colspan="2"><textarea name="message" rows="5" cols="35" style="width:100%;" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></textarea></td>
          </tr>
          <tr> 
            <td colspan="2"><b>options:</b> &#8226; H<span class="small">TML 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 colspan="2"> 
			  <input type="hidden" name="referer" value="$referer"> 	
			  <input type="hidden" name="parentID" value="$parentID"> 
              <input type="hidden" name="type" value="$type"> 
			  <input type="hidden" name="ip" value="$ip"> 
              <input type="submit" name="savevisitorcomment" value="post comment"></td>
          </tr>
        </table>
</td>
    </tr>
  </table>
</form>
