<SCRIPT LANGUAGE="javascript">
{literal}
function perform_choice(){
	if (document.details.new_calendarid.options[document.details.new_calendarid.selectedIndex].value == 'all') {
		document.details.action="calendar_all.php";
		document.details.parts.value="all";
	}
	document.details.submit();
}
{/literal}
</SCRIPT>

<form name="details" action="{$phpself}" method="POST">
<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">			
<table border="0" cellpadding="0" cellspacing="0" width="180">
  <tr>
    <td class="lines" height="1" colspan="6"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr class="stand" align="left">
    <td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="subnavback" height="22" width="10" align="center" valign="middle">&nbsp;</td>
    <td class="subnavback" colspan=2><div class="subnavlinkon"><strong>{$viewcalendarof}</strong></div></td>
    <td class="subnavback" height="22" width="10" align="center" valign="middle">&nbsp;</td>
    <td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="lines" height="1" colspan="6"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" colspan="4"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="4" /></td>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr align="left">
    <td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="22" width="10" align="center" valign="middle">&nbsp;</td>
    <td class="stand" colspan=2>
      <select class="selectinh" name="new_calendarid" onchange="perform_choice();">
	<option value="0">&nbsp;</option>
	<option value="all">{$calendarownerall}</option>
	  {section name=pt loop=$td2}
	<option value="{$td2[pt].id}">{$td2[pt].name}</option>
	  {/section}	    
      </select>
    </td>
    <td class="stand" height="22" width="10" align="center" valign="middle">&nbsp;</td>
    <td class="lines" height="1" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
    <td class="stand" height="1" colspan="4"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="4" /></td>
    <td class="lines" height="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
  <tr>
    <td class="lines" height="1" colspan="6"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1" /></td>
  </tr>
</table>	
<input type="hidden" name="date" value="{$date}" />
<input type="hidden" name="date_str" value="{$date_str}" />
<input type="hidden" name="parts" value="" />
</form>