<script type="text/javascript">
function change_display(formData)
{
var st = document.getElementById('share_groups_cell').style;
var ut = document.getElementById('share_users_cell').style;
if(formData.enable_sharing.checked)
{
st.display = 'block';
ut.display = 'block';
} else {
st.display = 'none';
ut.display = 'none';
}
}
</script>
<br />
<form action="{SELF}" method="post" name="add_note">
<table align="center">
<tr>
<td class="input_header" width="150">{TITLE_TEXT}</td>
<td><input type="text" name="title" value="{TITLE}" size="40"></td>
</tr>
<tr>
<td class="input_header" width="150">{CATEGORY_TEXT}</td>
<td>{CATEGORY}</td>
<td class="input_header" style="width:150px">
<input type="checkbox" name="enable_sharing" value="share" onClick="change_display(this.form)" {SHARE_ENABLED}>{SHARING}
</td>
</tr>
<tr>
<td class="input_header" valign="top">{NOTE_TEXT}</td>
<td>
<textarea name="note" cols="60" rows="15">{NOTE}</textarea>
</td>
<td class="input type=" style="width:150px;vertical-align:top;{DISPLAY}" id="share_groups_cell">{SHARE_SELECT}</td>
<td class="input type=" style="width:150px;vertical-align:top;{DISPLAY}" id="share_users_cell">{USER_SELECT}</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="save_edit_note" value="{SAVE_EDIT_TEXT}" class="button1">
<input type="submit" name="save_note" value="{SAVE_TEXT}" class="button1">
<input type="submit" name="cancel" value="{CANCEL_TEXT}" class="button1">
</td>
</tr>
</table>
<br />