<tmpl_var header_template escape="none">

<center>
<table cellpadding="0" cellspacing="0" border="0" align="center" width="95%">
<tr>
  <td nowrap class="titlebar">Day View</td>
  <td align="right" class="titlebar"><tmpl_var offset>&nbsp;</td>
</tr>
<form action="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl" method="post" name="dateselform" enctype="multipart/form-data">
<input type="hidden" name="action" value="calday">
<input type="hidden" name="folder" value="<tmpl_var folder escape="html">">
<input type="hidden" name="message_id" value="<tmpl_var message_id escape="html">">
<input type="hidden" name="sessionid" value="<tmpl_var sessionid escape="html">">

<tr>
  <td nowrap class="menubar">
    <a href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=calyear&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>" title="Yearview Year <tmpl_var year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/yearview.gif" border="0" align="absmiddle" alt="Yearview Year <tmpl_var year>"></a>
    <a href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=calmonth&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>&amp;month=<tmpl_var month>" title="Monthview <tmpl_var monthname escape="html"> <tmpl_var year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/monthview.gif" border="0" align="absmiddle" alt="Monthview <tmpl_var monthname> <tmpl_var year>"></a>
    <a href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=calweek&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>&amp;month=<tmpl_var month>&amp;day=<tmpl_var day>" title="Weekview <tmpl_var monthname escape="html"> <tmpl_var day> <tmpl_var year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/weekview.gif" border="0" align="absmiddle" alt="Weekview <tmpl_var monthname escape="html"> <tmpl_var day> <tmpl_var year>"></a>
    <a href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=calday&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>&amp;month=<tmpl_var month>&amp;day=<tmpl_var day>" title="Dayview <tmpl_var monthname escape="html"> <tmpl_var day> <tmpl_var year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/dayview.gif" border="0" align="absmiddle" alt="Dayview <tmpl_var monthname escape="html"> <tmpl_var day> <tmpl_var year>"></a>
    <a href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=callist&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;action=callist&amp;year=<tmpl_var year>" title="Listview Year <tmpl_var year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/listview.gif" border="0" align="absmiddle" alt="Listview Year <tmpl_var year>"></a>
    <tmpl_if not_current>
    &nbsp;
    <a href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=calday&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var current_year>&amp;month=<tmpl_var current_month>&amp;day=<tmpl_var current_day>" title="Return to <tmpl_var current_monthname escape="html"> <tmpl_var current_day> <tmpl_var current_year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/refresh.gif" border="0" align="absmiddle" alt="Return to <tmpl_var current_monthname escape="html"> <tmpl_var current_day> <tmpl_var current_year>"></a>
    </tmpl_if>
    &nbsp;
    <tmpl_if enable_webmail><a href="<tmpl_var url_cgi escape="none">/openwebmail-main.pl?action=listmessages&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;sort=<tmpl_var sort escape="url">&amp;msgdatetype=<tmpl_var msgdatetype escape="url">&amp;page=<tmpl_var page escape="url">&amp;longpage=<tmpl_var longpage escape="url">&amp;searchtype=<tmpl_var searchtype escape="url">&amp;keyword=<tmpl_var keyword escape="url">&amp;message_id=<tmpl_var message_id escape="url">" accesskey="M" class="icon"><tmpl_if use_texticon>webmail<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/owm.gif" title="webmail" alt="webmail" border="0" align="absmiddle"></tmpl_if></a></tmpl_if>

    <tmpl_if enable_addressbook><a href="<tmpl_var url_cgi escape="none">/openwebmail-abook.pl?action=addrlistview&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;sort=<tmpl_var sort escape="url">&amp;msgdatetype=<tmpl_var msgdatetype escape="url">&amp;page=<tmpl_var page escape="url">&amp;longpage=<tmpl_var longpage escape="url">&amp;searchtype=<tmpl_var searchtype escape="url">&amp;keyword=<tmpl_var keyword escape="url">&amp;message_id=<tmpl_var message_id escape="url">" accesskey="A" class="icon"><tmpl_if use_texticon>addressbook<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/addrbook.gif" title="addressbook" alt="addressbook" border="0" align="absmiddle"></tmpl_if></a></tmpl_if>

    <tmpl_if enable_webdisk><a href="<tmpl_var url_cgi escape="none">/openwebmail-webdisk.pl?action=showdir&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;sort=<tmpl_var sort escape="url">&amp;msgdatetype=<tmpl_var msgdatetype escape="url">&amp;page=<tmpl_var page escape="url">&amp;longpage=<tmpl_var longpage escape="url">&amp;searchtype=<tmpl_var searchtype escape="url">&amp;keyword=<tmpl_var keyword escape="url">&amp;message_id=<tmpl_var message_id escape="url">" accesskey="E" class="icon"><tmpl_if use_texticon>webdisk<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/webdisk.gif" title="webdisk" alt="webdisk" border="0" align="absmiddle"></tmpl_if></a></tmpl_if>

    <tmpl_if enable_sshterm><tmpl_if use_ssh2><a href="#" onclick="window.open('<tmpl_var url_html escape="none">/applet/mindterm2/ssh2.html', '_applet', 'width=400,height=100,top=2000,left=2000,resizable=no,menubar=no,scrollbars=no');" accesskey="T" class="icon"><tmpl_if use_texticon>ssh terminal<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/sshterm.gif" title="ssh terminal" alt="ssh terminal" border="0" align="absmiddle"></tmpl_if></a><tmpl_else><tmpl_if use_ssh1><a href="#" onclick="window.open('<tmpl_var url_html escape="none">/applet/mindterm/ssh.html', '_applet', 'width=400,height=100,top=2000,left=2000,resizable=no,menubar=no,scrollbars=no');" accesskey="T" class="icon"><tmpl_if use_texticon>ssh terminal<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/sshterm.gif" title="ssh terminal" alt="ssh terminal" border="0" align="absmiddle"></tmpl_if></a></tmpl_if></tmpl_if></tmpl_if>

    <tmpl_if enable_preference><a href="<tmpl_var url_cgi escape="none">/openwebmail-prefs.pl?action=editprefs&amp;prefs_caller=cal&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;sort=<tmpl_var sort escape="url">&amp;msgdatetype=<tmpl_var msgdatetype escape="url">&amp;page=<tmpl_var page escape="url">&amp;longpage=<tmpl_var longpage escape="url">&amp;searchtype=<tmpl_var searchtype escape="url">&amp;keyword=<tmpl_var keyword escape="url">&amp;message_id=<tmpl_var message_id escape="url">" accesskey="O" class="icon"><tmpl_if use_texticon>user preferences<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/prefs.gif" title="user preferences" alt="user preferences" border="0" align="absmiddle"></tmpl_if></a></tmpl_if>

    <a href="<tmpl_var url_cgi escape="none">/openwebmail-main.pl?action=logout&amp;sessionid=<tmpl_var sessionid escape="url">" accesskey="Q" class="icon"><tmpl_if use_texticon>logout<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/logout.gif" title="logout" alt="logout" border="0" align="absmiddle"></tmpl_if></a>
  </td>
  <td nowrap class="menubar" align="right">
    <a href="#" onClick="calPopup(this,'mypopupCal',-175,15,'dateselform','submit_changed_dateselform');" title="Calendar"><IMG SRC="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/cal-popup.gif" border="0" align="absmiddle" alt="Calendar"></a>&nbsp;
    <select name="month"  accesskey="G" onchange="submit()">
    <tmpl_loop monthselectloop>
      <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
    </tmpl_loop>
    </select>
    <select name="day"  accesskey="G" onchange="submit()">
    <tmpl_loop dayselectloop>
      <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
    </tmpl_loop>
    </select>
    <select name="year"  accesskey="G" onchange="submit()">
    <tmpl_loop yearselectloop>
      <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
    </tmpl_loop>
  </td>

</tr>
</form>
<tr>
  <td colspan="2">&nbsp;</td>
</tr>
</table>

<table cellpadding="1" cellspacing="0" border="0" align="center" width="95%">
<tr class="rowdark">
  <td nowrap align="center">
  <a accesskey="U" href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=calday&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var prev_year>&amp;month=<tmpl_var prev_month>&amp;day=<tmpl_var prev_day>" title="Weekview <tmpl_var prev_monthname escape="html"> <tmpl_var prev_day> <tmpl_var prev_year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/left.gif" border="0" align="absmiddle" alt="<tmpl_var prev_monthname escape="html"> <tmpl_var prev_day> <tmpl_var prev_year>"></a> 
  <b><tmpl_var monthname escape="html"> <tmpl_var day> <tmpl_var year escape="html"> <font <tmpl_if sunday>color=#cc0000</tmpl_if><tmpl_if saturday>color=#008800</tmpl_if>><tmpl_var weekday></font></b> 
  <tmpl_if lunar><font class="<tmpl_if lunarnew>smalltext<tmpl_else>smalllighttext</tmpl_if>"><tmpl_var lunar escape="html"></font></tmpl_if>
  <a accesskey="D" href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=calday&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var next_year>&amp;month=<tmpl_var next_month>&amp;day=<tmpl_var next_day>" title="Weekview <tmpl_var next_monthname escape="html"> <tmpl_var next_day> <tmpl_var next_year>"><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/right.gif" border="0" align="absmiddle" alt="<tmpl_var next_monthname escape="html"> <tmpl_var next_day> <tmpl_var next_year>"></a> 
  </td>
</tr>
</table>
&nbsp;

<table border="0" width="95%">
<tr>
<td align="right" valign="top" width="85%">
 <table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr>
  <td colspan="2">
   <table width="100%" cellpadding="0" cellspacing="1" border="0">
    <tr>
    <td width="10%" class="columnheadercolor" align="center" nowrap>All day</td>
    <td width="90%" class="columnheadercolor" colspan="<tmpl_var colspan>">
     <table width="100%" cellpadding="0" cellspacing="0">
<tmpl_if noitems>
      <tr>
      <td class="columnheadercolor" align="center" colspan="<tmpl_var colspan>">
 <tmpl_if noalldayitems>No items for this day<tmpl_else>&nbsp;</tmpl_if>
      </td>
      </tr>
<tmpl_else>
<tmpl_loop alldayloop>
      <tr> 
      <td class="<tmpl_if alterrow>windowdark<tmpl_else>windowlight</tmpl_if>" valign="top" colspan="<tmpl_var colspan>">
       <table width="100%" cellpadding="2" cellspacing="0">
        <tr>
        <td <tmpl_if eventcolor>bgcolor="<tmpl_var eventcolor escape="html">"<tmpl_else>class="columnheadercolor"</tmpl_if> valign="top" align="left">
        <tmpl_if notglobal>
        <a accesskey="E" title="Edit" href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=caledit&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>&amp;month=<tmpl_var month>&amp;day=<tmpl_var day>&amp;index=<tmpl_var eventindex>"<tmpl_if eventmult> onclick="return confirm('This item was added for multiple dates.\nEditing it will change the item for all dates.\nContinue with Edit?')"</tmpl_if>>
        </tmpl_if>
        <font color="#c00000"><tmpl_var eventtime escape="html"></font>&nbsp;<tmpl_var eventtxt escape="html">
        <tmpl_if notglobal></a></tmpl_if>
        <tmpl_if eventlink>
        <a href="<tmpl_var eventlinktxt escape="html">" target="_blank" title="<tmpl_var eventlinktxt escape="html">">
        <tmpl_if use_texticon>link<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/cal-link.gif" border="0" align="absmiddle" alt="<tmpl_var eventlinktxt escape="html">"></tmpl_if></a>
        </tmpl_if>
        <tmpl_if eventemail>
        <a title="<tmpl_var eventemail escape="html">">
        <tmpl_if use_texticon>email<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/email.gif" border="0" align="absmiddle" alt="<tmpl_var eventemail escape="html">"></tmpl_if></a>
        </tmpl_if>
        <tmpl_if notglobal>
        &nbsp;&nbsp;
        <a title="Delete" href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=caldel&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>&amp;month=<tmpl_var month>&amp;day=<tmpl_var day>&amp;index=<tmpl_var eventindex>" onclick="return confirm(<tmpl_if eventmult>'This item was added for multiple dates.\nDeleting it will delete the item for all dates.\nContinue with Delete?'<tmpl_else>'Are you sure you want to delete this item?'</tmpl_if>)">
        <tmpl_if use_texticon>delete<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/cal-delete.gif" border="0" align="absmiddle" alt="delete"></tmpl_if></a>
        </tmpl_if>
        </td>
        </tr>
       </table>
      </td>
      </tr>
</tmpl_loop>
</tmpl_if>
     </table>
    </td>
    </tr>
<tmpl_loop slotsloop>
    <tr>
    <td width="10%" class="<tmpl_if alterrow>windowdark<tmpl_else>windowlight</tmpl_if>" align="right" valign="top" <tmpl_if fullrow>nowrap</tmpl_if>>
<tmpl_if fullrow>
     <tmpl_var rowtimestr escape="html">
<tmpl_else>
 <tmpl_if rowminstr>
   <font color="#c0c0c0"><tmpl_var rowminstr></font>
 <tmpl_else>
   &nbsp;
 </tmpl_if>
</tmpl_if>
    </td>
<tmpl_loop colsloop>
<tmpl_if starteventcell>
    <td valign="top" align="left" <tmpl_if eventcolor>bgcolor="<tmpl_var eventcolor escape="html">"<tmpl_else>class="<tmpl_if alterrow>windowdark<tmpl_else>windowlight</tmpl_if>"</tmpl_if> width="<tmpl_var width>%" rowspan="<tmpl_var rowspan>" colspan="<tmpl_var colspan>" <tmpl_if endhourmin>style="border-width: 1px; border-style: solid; border-color: <tmpl_var bordercolor escape="html">;"</tmpl_if>>
    <tmpl_if notglobal>
    <a accesskey="E" title="Edit" href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=caledit&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>&amp;month=<tmpl_var month>&amp;day=<tmpl_var day>&amp;index=<tmpl_var eventindex>"<tmpl_if eventmult> onclick="return confirm('This item was added for multiple dates.\nEditing it will change the item for all dates.\nContinue with Edit?')"</tmpl_if>>
    </tmpl_if>
    <font color="#c00000"><tmpl_var eventtime escape="html"></font>&nbsp;<tmpl_var eventtxt escape="html">
    <tmpl_if notglobal></a></tmpl_if>
    <tmpl_if eventlink>
    <a href="<tmpl_var eventlinktxt escape="html">" target="_blank" title="<tmpl_var eventlinktxt escape="html">">
    <tmpl_if use_texticon>link<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/cal-link.gif" border="0" align="absmiddle" alt="<tmpl_var eventlinktxt escape="html">"></tmpl_if></a>
    </tmpl_if>
    <tmpl_if eventemail>
    <a title="<tmpl_var eventemail escape="html">">
    <tmpl_if use_texticon>email<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/email.gif" border="0" align="absmiddle" alt="<tmpl_var eventemail escape="html">"></tmpl_if></a>
    </tmpl_if>
    <tmpl_if notglobal>
    &nbsp;&nbsp;
    <a title="Delete" href="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl?action=caldel&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;year=<tmpl_var year>&amp;month=<tmpl_var month>&amp;day=<tmpl_var day>&amp;index=<tmpl_var eventindex>" onclick="return confirm(<tmpl_if eventmult>'This item was added for multiple dates.\nDeleting it will delete the item for all dates.\nContinue with Delete?'<tmpl_else>'Are you sure you want to delete this item?'</tmpl_if>)">
    <tmpl_if use_texticon>delete<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/cal-delete.gif" border="0" align="absmiddle" alt="delete"></tmpl_if></a>
    </tmpl_if>
    </td>
<tmpl_else>
<tmpl_unless overlappedcell>
    <td <tmpl_if eventcolor>bgcolor="<tmpl_var eventcolor escape="html">"<tmpl_else>class="<tmpl_if alterrow>windowdark<tmpl_else>windowlight</tmpl_if>"</tmpl_if>>&nbsp;</td>
</tmpl_unless>
</tmpl_if>
</tmpl_loop>
    </tr>
</tmpl_loop>
   </table>
  </td>
  </tr>
 </table>
</td>
<td class="rowdark" align="center" valign="top" width="15%">
 <table border="0" cellspacing="2" width="100%">
  <form action="<tmpl_var url_cgi escape="none">/openwebmail-cal.pl" method="post" name="additemform" enctype="multipart/form-data" override="1">
  <input type="hidden" name="action" value="caladd">
  <input type="hidden" name="folder" value="<tmpl_var folder escape="html">">
  <input type="hidden" name="message_id" value="<tmpl_var message_id escape="html">">
  <input type="hidden" name="sessionid" value="<tmpl_var sessionid escape="html">">
  <tr>
  <td colspan="2" align="center"><b>Add Calendar Entry</b></td>
  </tr>
  <tr>
  <td colspan="2" nowrap>
  <a href="#" onClick="calPopup(this,'mypopupCal',-175,15,'additemform','valiDate');" title="Calendar"><IMG SRC="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/cal-popup.gif" border="0" align="absmiddle" alt="Calendar"></a>&nbsp;
  <select name="month" onchange="valiDate('additemform')">
  <tmpl_loop monthselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  <select name="day" onchange="valiDate('additemform')">
  <tmpl_loop dayselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  <select name="year" onchange="valiDate('additemform')">
  <tmpl_loop yearselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  </td>
  </tr>
  <tr>
  <td colspan="2" nowrap><input type="text" name="string"  size="32" accesskey="I" /></td>
  </tr>
  <tr>
  <td width="25%" nowrap>Start time</td>
  <td nowrap>
  <select name="starthour">
  <tmpl_loop starthourselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  <b>:</b>
  <select name="startmin">
  <tmpl_loop startminselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  <tmpl_if format12>
  <select name="startampm" >
   <option <tmpl_if startam>selected="selected" </tmpl_if>value="am">am</option>
   <option <tmpl_unless startam>selected="selected" </tmpl_unless>value="pm">pm</option>
  </select>
  </tmpl_if>
  </td>
  </tr>
  <tr>
  <td width="25%" nowrap>End time</td>
  <td nowrap>
  <select name="endhour">
  <tmpl_loop endhourselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  <b>:</b>
  <select name="endmin">
  <tmpl_loop endminselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  <tmpl_if format12>
  <select name="endampm" >
   <option <tmpl_if endam>selected="selected" </tmpl_if>value="am">am</option>
   <option <tmpl_unless endam>selected="selected" </tmpl_unless>value="pm">pm</option>
  </select>
  </tmpl_if>
  </td>
  </tr>
  <tr>
  <td colspan="2" nowrap>
  <select name="dayfreq">
  <tmpl_loop dayfreqselectloop>
    <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  </td>
  </tr>
  <tr>
  <td colspan="2" nowrap><label><input type="checkbox" name="thisandnextndays" value="1" /></label> This day and next <input type="text" name="ndays"  size="2" /> days</td>
  </tr>
  <tr>
  <td colspan="2" nowrap>
  <select name="monthfreq">
  <tmpl_loop monthfreqselectloop>
   <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  </td>
  </tr>
  <tr>
  <td colspan="2" nowrap><label><input type="checkbox" name="everyyear" value="1" /></label> Every year</td>
  
  </tr>
  <tr>
  <td colspan="2" nowrap>Make this item a hyperlink to</td>
  </tr>
  <tr>
  <td colspan="2" nowrap><input type="text" name="link" value="http://" size="32" /></td>
  </tr>
  <tr>
  
  <td colspan="2" nowrap>Send notification email to</td>
  </tr>
  <tr>
  <td colspan="2" nowrap><input type="text" name="email"  size="32" /></td>
  </tr>
  <tr>
  <td nowrap>Event reminder</td>
  <td><select name="eventreminder" >
  
  <option selected="selected" value="1">Yes</option>
  <option value="0">No</option>
  </select></td>
  </tr>
  <tr>
  <td nowrap>Event Color</td>
  <td nowrap>
  <select name="eventcolor" >
  <tmpl_loop eventcolorselectloop>
   <option value="<tmpl_var option escape="html">" <tmpl_if selected>selected</tmpl_if>><tmpl_var label escape="html"></option>
  </tmpl_loop>
  </select>
  </td>
  </tr>
  <tr>
  <td colspan="2">
  <table align="center" height="25">
  <tr>
  <tmpl_loop eventcolorlistloop>
   <td width="14" align="center" bgcolor="#<tmpl_var eventcolor>"><a href="#" onClick='javascript:document.additemform.eventcolor.selectedIndex="<tmpl_var eventcolornum>"'><tmpl_var eventcolorkey></a></td>
  </tmpl_loop>
  </tr>
  </table>
  </td>
  </tr>
  <tr>
  <td colspan="2" align="center"><input type="submit" name="savebutton" value="Save" accesskey="I" /></td>
  </tr>
  </form>
  </table>
  </td>
  </tr>
</table>
</center>

<style type="text/css">
<!--
#mypopupCal{ position: absolute;
             visibility: hidden; }
//-->
</style>

<div id="mypopupCal"></div>
<script language="javascript">
<!--
   function submit_changed_dateselform() {
      document.dateselform.submit();
   }
//-->
</script>

<script src="<tmpl_var url_html escape="none">/javascript/validate.js" type="text/javascript"></script> 
<script src="<tmpl_var url_html escape="none">/javascript/calpopup.js" type="text/javascript"></script> 

<script type="text/javascript">//<![CDATA[
// calpopup.js tmpl vars
var wStart = <tmpl_var weekstart>;
var min_year = <tmpl_var min_year>;
// calpopup.js language and preferences
var wDay = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
var wDayAbbrev = new Array('S','M','T','W','T','F','S');
var wMonth = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var wOrder = new Array('1st','2nd','3rd','4th','last');
// validate.js language and preferences
var thisdayonlytxt = "This day's date only";
var everyoddmonththisyeartxt = "Every odd month this year";
var everyevenmonththisyeartxt = "Every even month this year";
function thewdayofthismonthtxt(wOrdn,wDayn) { return "The "+wOrder[(wOrdn-1)]+" "+wDay[(wDayn)]+" of the month"; }
function everywdaythismonthtxt(wDayn) { return "Every "+wDay[(wDayn)]+" this month"; }
function alerttxt(selectedmonth,daysinmonth,formYear,daysinmonth) { return "Sorry, "+selectedmonth+" only has "+daysinmonth+" days in "+formYear+".\n"+"Changing the day to "+daysinmonth+"."; }
//]]></script> 

<!-- calpopup specific styles -->
<style type="text/css">
.stylecal { font-size: 9pt; color: #000000; }
A.notmonth:link { font-size: 9pt; color: #cccccc; }
A.notmonth:visited { font-size: 9pt; color: #cccccc; }
A.notmonth:hover { font-size: 9pt; color: #ff0000; }
A.stylecal:link { font-size: 9pt; color: #000000; }
A.stylecal:visited { font-size: 9pt; color: #000000; }
A.stylecal:hover { font-size: 9pt; color: #ff0000; }
</style>
<tmpl_var footer_template escape="none">
