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

<form action="forum_topic.php?board=$dr[boardID]&topic=$topic&page=$page" method="post" name="post" onSubmit="return chkFormular()">
  <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="$border">
    <tr> 
      <td class="title" align="center" bgcolor="$bghead">edit reply</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 colspan="2">$addbbcode</td>
          </tr>
          <tr> 
            <td colspan="2"><b>Message:</b></td>
					<tr>
						<td colspan="2"><textarea name="message" rows="10" cols="50" style="width:100%;" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">$dr[message]</textarea></td>
          </tr>
          <tr> 
            <td><b>Options:</b></td>
						<td align="right"><input class="input" type="checkbox" name="notify" value="1" $checked> Notify me when a reply is posted $chk_sticky</td>
					</tr>
					<tr>
						<td>
							<span class="small"><b>HTML</b> is OFF -
							<a href="javascript:MM_openBrWindow('code.php','BBCode Guide','scrollbars=yes,width=600,height=500')"><b>BBCode</b></a> is ON -
              <a href="javascript:MM_openBrWindow('smileys.php','Smileys','scrollbars=yes,width=340,height=500')"><b>Smilies</b></a> are ON</span>
						</td>
            <td align="right">
							<input type="hidden" name="page" value="$page"> 
              <input type="hidden" name="id" value="$id"> <input type="submit" name="editreply" value="edit reply">
						</td>
          </tr>
        </table>
			</td>
    </tr>
  </table>
</form>
