<!-- $Id: edit.tpl,v 1.1.1.2.8.1 2004/09/26 10:15:02 kazuyan Exp $ -->
<!-- BEGIN edit_entry -->
<script language="JavaScript">
	self.name="first_Window";
	function accounts_popup()
	{
		Window1=window.open('{accounts_link}',"Search","width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes");
	}
	function onclick_allday(val)
	{
		if (document.app_form.elements["end[ampm]"])
		{
			if (val)
			{
				document.app_form.elements["start[hour]"].value = "12";
				document.app_form.elements["end[hour]"].value = "11";
				document.app_form.elements["start[ampm]"][0].checked = true;
				document.app_form.elements["end[ampm]"][1].checked = true;
			}
			else
			{
				if (document.app_form.elements["start[ampm]"][0].defaultChecked)
					document.app_form.elements["start[ampm]"][0].checked = true;
				else
					document.app_form.elements["start[ampm]"][1].checked = true;
				if (document.app_form.elements["end[ampm]"][0].defaultChecked)
					document.app_form.elements["end[ampm]"][0].checked = true;
				else
					document.app_form.elements["end[ampm]"][1].checked = true;	
			}		
		}
		else
		{
			if (val)
			{
				document.app_form.elements["start[hour]"].value = "00";
				document.app_form.elements["end[hour]"].value = "23";
			}
		}
		if (val)
		{
			document.app_form.elements["start[min]"].value = "00";
			document.app_form.elements["end[min]"].value = "59";			
		}
		else
		{
			document.app_form.elements["start[hour]"].value = document.app_form.elements["start[hour]"].defaultValue;
			document.app_form.elements["start[min]"].value = document.app_form.elements["start[min]"].defaultValue;
			document.app_form.elements["end[hour]"].value = document.app_form.elements["end[hour]"].defaultValue;
			document.app_form.elements["end[min]"].value = document.app_form.elements["end[min]"].defaultValue;
			document.app_form.elements["start[str]"].value = document.app_form.elements["start[str]"].defaultValue;
			document.app_form.elements["end[str]"].value = document.app_form.elements["end[str]"].defaultValue;		
		}
	}
</script>
<center>
<font color="#000000" face="{font}">

<form action="{action_url}" method="post" name="app_form">
{common_hidden}
<table border="0" width="90%">
 <tr>
  <td colspan="2">
   <center><font size="+1"><b>{errormsg}</b></font></center>
  </td>
 </tr>
{row}
 <tr>
  <td>
   <table><tr>
    <td><input type="submit" value="{submit_button}">&nbsp;</form></td>
    <td>{cancel_button}</td>
   </tr></table>
  </td>
  <td align="right">{delete_button}</td>
 </tr>
</table>
</font>
</center>
<!-- END edit_entry -->
<!-- BEGIN list -->
 <tr bgcolor="{tr_color}">
  <td valign="top" width="35%">&nbsp;<b>{field}:</b></td>
  <td valign="top" width="65%">{data}</td>
 </tr>
<!-- END list -->
<!-- BEGIN hr -->
 <tr bgcolor="{tr_color}">
  <td colspan="2">
   {hr_text}
  </td>
 </tr>
<!-- END hr -->
