<%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%>
<jato:pagelet>
<script src="../uwc/js/date_utils.js" ></script>
<script>          
//Function to submit the form.
function handleJumpToSelectedDate(){
  var form = document.forms[0].elements;
  var year = form["year_select"].value;
  var month = parseInt(form["month_select"].value) - 1;
  var day = form["day_select"].value;
  
  var valid = isValidDate(day, month, year);
  if(valid == false)
    alert('<jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-mail-error-invalid-date" defaultValue="Invalid Date Selection !"/>');
    
  return valid;
}
</script>
<!--  

-->
<div class="JumpToDiv">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="Table that contains the Jump To and Type selections">
      <jato:hidden name="tz"/>
      <tr> 
        <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""><a name="jumptomenus"></a></td>
		<td bgcolor="#999999" colspan="2"><img src="../uwc/images/spacer.gif" width="1" height="1" alt=""></td>
        <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
      </tr>
      <tr> 
        <td colspan="4"><img src="../uwc/images/spacer.gif" width="1" height="10" alt=""></td>
      </tr>
      <tr>
        <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
        <td nowrap width="60%"> <label for="month_select"><span class="Lbl2">
        <jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-toolbar-JumpToLabel" defaultValue="Jump to:"/></span></label> 
          <jato:combobox name="QuickNavigateMonth" elementId="month_select"/>      
          <label for="day_select"></label>    
          <jato:combobox name="QuickNavigateDay" elementId="day_select"/> 
          <label for="year_select"></label>         
          <jato:combobox name="QuickNavigateYear" elementId="year_select"/>         
           <jato:button defaultValue="<jato:getModelFieldValue modelClass='com.sun.uwc.common.model.UWCResourceBundleModel' modelName='i18nModel' lookInSession='true' name='uwc-calclient-toolbar-JumpToGo' defaultValue='Go'/>" styleClass="Btn1" name="go" elementId="go" onClick="return handleJumpToSelectedDate()" onKeyPress="return handleJumpToSelectedDate()"/>          
          
          <jato:button defaultValue="<jato:getModelFieldValue modelClass='com.sun.uwc.common.model.UWCResourceBundleModel' modelName='i18nModel' lookInSession='true' name='uwc-calclient-toolbar-JumpToToday' defaultValue='Today'/>" styleClass="Btn1" name="today" elementId="today"/>
        </td>
        <jato:content name="showCategory">
<td align="right" nowrap width="40%"> <label for="type_select"><span class="Lbl2"><jato:getModelFieldValue modelClass="com.sun.uwc.common.model.UWCResourceBundleModel" modelName="i18nModel" lookInSession="true" name="uwc-calclient-Type" defaultValue="Type"/>:</span></label> 
  <jato:combobox name="QuickNavigateType" elementId="type_select"/>
          <jato:button defaultValue=" <jato:getModelFieldValue modelClass='com.sun.uwc.common.model.UWCResourceBundleModel' modelName='i18nModel' lookInSession='true' name='uwc-calclient-toolbar-JumpToGo' defaultValue='Go'/> " styleClass="Btn1" name="select" elementId="select" />
        </td>
        </jato:content>
        <jato:content name="noCategoryDisplay">
          <td align="right" width="40%"></td>
        </jato:content>
        <td><img src="../uwc/images/spacer.gif" width="10" height="1" alt=""></td>
      </tr>
      <tr> 
        <td colspan="4"><img src="../uwc/images/spacer.gif" width="1" height="13" alt=""><a name="calendargrid"></a></td>
      </tr>
    </table>
</div>

</jato:pagelet>
