<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/enrgise-html.tld" prefix="enrgise" %>

<html:html>
<html:base />
<head>
  <TITLE><bean:message  key="hrm.title" /></TITLE>
  <jsp:include page="GenIncludes.jsp" flush="true" />
</head>
<BODY  onkeydown="hotKeys(event);" scroll=auto>
<html:form name="HrmAdvMstForm" action="HrmAdvMstBaseAction" type="wenrgise.hrms.webtier.form.HrmAdvMstForm">
<bean:define id="ParentForm" name="HrmAdvMstForm" toScope="request" />
<jsp:include page="GenMenu.jsp" flush="true" />
<bean:define id="left" name="ParentForm" property="positionRequested"/>
<bean:define id="right" name="ParentForm" property="totalCount"/>
<table cellSpacing=0 bgColor=#bdd0ef>
<tr height=27>
  <td colSpan=11></td>
</tr>
  <TR > 
    <TD ><enrgise:img name="ParentForm" property="butQuery" onmouseover='this.src="../includes/images/query_act.jpg"' onmouseout='this.src="../includes/images/query.jpg"' alt="Query (Ctrl+Q)" src="../includes/images/query.jpg" onclick="doBaseQueryMode()" /><enrgise:img name="ParentForm" property="butInsert" onmouseover='this.src="../includes/images/insert_act.jpg"' onmouseout='this.src="../includes/images/insert.jpg"' alt="Insert (Alt+N)" src="../includes/images/insert.jpg"  onclick="doBaseInsertMode()"/></TD>
    <TD width="2%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butExecute" onmouseover='this.src="../includes/images/execute_act.jpg"' onmouseout='this.src="../includes/images/execute.jpg"' alt="Execute (Ctrl+U)" src="../includes/images/execute.jpg" onclick="doBaseExecute()" /><enrgise:img name="ParentForm" property="butSave" onmouseover='this.src="../includes/images/save_act.jpg"' onmouseout='this.src="../includes/images/save.jpg"' alt="Save (Ctrl+S)" src="../includes/images/save.jpg" onclick="doBaseSave()" />
    <img name="ParentForm" property="butDelete" src="../includes/images/delete_dis.jpg" /><enrgise:img name="ParentForm" property="butRefresh" onmouseover='this.src="../includes/images/refresh_act.jpg"' onmouseout='this.src="../includes/images/refresh.jpg"' alt="Refresh (Ctrl+R)"  src="../includes/images/refresh.jpg" onclick="doBaseRefresh()" />
    <enrgise:img name="ParentForm" property="butPrint" onmouseover='this.src="../includes/images/print_act.jpg"' onmouseout='this.src="../includes/images/print.jpg"' alt="Print (Ctrl+P)"  src="../includes/images/print.jpg" /></TD>
    <TD width="2%" bgColor=#bdd0ef></TD>
 <TD><enrgise:img name="ParentForm" property="butExit" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg"   onclick="doBaseExit()" />
    <enrgise:img name="ParentForm" property="butHelp" onmouseover='this.src="../includes/images/help_act.jpg"' onmouseout='this.src="../includes/images/help.jpg"' alt="Help (Ctrl+?)" src="../includes/images/help.jpg" onclick="doBaseHelp()" /></TD>    <TD width="50%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butPrevHeader" src='../includes/images/butn_prev.jpg' onmouseover='this.src="../includes/images/butn_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_prev.jpg"' alt="Butn_prev (Ctrl+<)" onclick="doBasePrevHeader()" /></td>
    <td class=dtlNavText><bean:write  name="left" /> of 
    <bean:write name="right" /></td>
    <td align=right><enrgise:img name="ParentForm" property="butNextHeader" src="../includes/images/butn_next.jpg" onmouseover='this.src="../includes/images/butn_next_act.jpg"' onmouseout='this.src="../includes/images/butn_next.jpg"' alt="Butn_next (Ctrl+>)" onclick="doBaseNextHeader()" /></td>
    <td align=right><enrgise:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title="wenrgise.common.jumpDetail" alt="N" disabledClass="locked" styleClass="optional" /></td>
    <td ><enrgise:img name="ParentForm" property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpHeader()" /></td>
    <td > </td>
</TR>
</TABLE>
<table>
<tr>
  <td colspan="11" class="userText"></td>
</tr>
<enrgise:checkSession/>
</TABLE>

<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message  key="hrm.HrmAdvMstMainHeader" /></TD>
    </TR>
</TABLE>
<!--//  Display Errors -->
<enrgise:errors/>
<logic:messagesPresent message="true">
<Table>
    <html:messages id="message" message="true">
    <TR><TD>
      <bean:write name="message"/>
    </TD></TR>
    </html:messages>      
</Table>
</logic:messagesPresent>
<!--//  Display Errors -->
<TABLE cellSpacing=0 cellPadding=0 border=0 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!--Inspection Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6><bean:message  key="hrm.HrmAdvMstSubHeader" /></TD>
            </TR>
            <TR>
                  <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>
            
            
            <TR> 
                  <td class=labelText><bean:message key="hrm.HrmAdvMst.advanceCode" /></td>
                  <td><enrgise:text  property="advanceCode" altKey="hrm.HrmAdvMst.advanceCode" maxlength="15" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();"  /><enrgise:img name="HrmAdvMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butAdvanceCode"  onclick="return ShowAdvanceCode();" /></td>
                  <td class=labelText><bean:message key="hrm.HrmAdvMst.description" /></td>
                  <td colspan="3"><enrgise:text  property="description" altKey="hrm.HrmAdvMst.description"  size="55" styleClass="optional" disabledClass="locked"  onchange="doChangeHeader();" /></td>
                </TR>
            
            <tr>
                <td class=labelText><bean:message key="hrm.HrmAdvMst.calendar" /></td>
                <td><enrgise:text  property="calendar" altKey="hrm.HrmAdvMst.calendar" maxlength="15" size="23" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();"  /><enrgise:img name="HrmAdvMstForm" height="16" align="center" src="../includes/images/lov.jpg" property="butCalendar" onclick="return ShowCalendar();"  /></td>
                <td colspan="4"></td>
           </tr>       
            
            <tr height="10">
                <td colspan="6"></td>
            </tr>
         </table>
        
                      
         <table cellspacing=0 cellpadding=0 border=0>
          <!-- Detail Information Row starts -->
          <TR>
            <TD colspan=6>
            <!-- Tab Table Starts -->
            <TABLE cellSpacing=0 cellPadding=0 >
            <tr>                                             
                          <td bgcolor="#4682B4"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                          <td bgcolor="#4682B4" nowrap class=actTabText ><bean:message  key="hrm.HrmAdvMstTableHeader" /><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                          <TD><IMG height=19  src="../includes/images/formtab_r.gif" width=10  border=0></TD>                              
                          <TD width="100%" background="../includes/images/line_t.gif">&nbsp;</TD>
                          <TD background="../includes/images/line_t.gif"><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></TD>
            </tr>
              <TR height=10>
              
            <!-- Detail table Container starts -->
              <TD colSpan=5>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                   <TD>
                     <DIV id=divDtlTable style="height:250px;width:1020px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                          <tr>
                            
                            <TD class=tableHeader width="1%"><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.advanceDescription" /></td>
                            <TD class=tableHeader ><bean:message  key="hrm.HrmAdvMst.effectiveFromDate" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.effectiveToDate" /></td>
                            <TD class=tableHeader ><bean:message  key="hrm.HrmAdvMst.maxCalLimit" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.noOfTXN" /></td>
                           <!-- <TD class=tableHeader ><bean:message  key="hrm.HrmAdvMst.maxLimitPerTXN" /></td>-->
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.eligibility" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.flatAmount" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.salary" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.settlementUnit" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.settlementPeriod" /></td>
                            <!-- <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.moratoriumInMonths" /></td>-->
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.settleThroughPayroll" /></td>
                            <TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.applicableToAll" /></td>
                            <!--<TD class=tableHeader ><bean:message key="hrm.HrmAdvMst.settleHeads" /></td>-->
                          </tr>
                          
                          
                            <logic:notEmpty name="HrmAdvMstForm" property="arrAdvance">
                            <logic:iterate id="HrmAdv" name="HrmAdvMstForm" property="arrAdvance" type="wenrgise.hrms.bean.HrmAdvanceMstDtlBean" indexId="idx" >
                                      <logic:notEqual name="HrmAdv" property="status" value="D" >
                                         <tr class='<bean:write name="HrmAdvMstForm" property="listRowClass"/>'  >
                                                 <td align="center" width="1%"><html:hidden property="status"  name="HrmAdv" /><html:hidden property="detailId"  name="HrmAdv" /><html:hidden property="itemChecked" name="HrmAdv" /><html:hidden property="txtMaxLimitPerTXN" name="HrmAdv" /><html:hidden property="txtMoratoriumInMonths" name="HrmAdv" /><html:checkbox property="checked" value="check" name="HrmAdvMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                                 <TD class=tableText ><enrgise:text formName="HrmAdvMstForm" property="txtAdvanceDescription" name="HrmAdv"  maxlength="60" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="required" disabledClass="locked" /></td>
                                                <TD class=tableText ><html:text  property="txtEffectiveFromDate" name="HrmAdv" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="required" readonly="true" /><enrgise:img name="HrmAdvMstForm" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtEffectiveFromDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtEffectiveFromDate',this)"  /></td>               
                                                <TD class=tableText ><html:text  property="txtEffectiveToDate" name="HrmAdv" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="optional"  readonly="true" /><enrgise:img name="HrmAdvMstForm" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtEffectiveToDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtEffectiveToDate',this)"  /></td>              
                                                <TD class=tableText><enrgise:text formName="HrmAdvMstForm" property="txtMaxCalLimit" name="HrmAdv" maxlength="16" onkeypress="isInteger(event)"  alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  styleClass="optional" disabledClass="locked"  /></td>
                                                <TD class=tableText><enrgise:text formName="HrmAdvMstForm" property="txtNoOfTXN" name="HrmAdv" maxlength="4" onkeypress="isInteger(event)"  alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="optional" disabledClass="locked" /></td>
                                                
                                                <TD ><html:select property="txtEligibilityFactor" name="HrmAdv" styleClass="required" onchange='<%="doChangeDetail("+idx.toString()+");doBaseValidate()"%>' >
                                                   <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>
                                                      <html:option value="F" ><bean:message   key="hrm.HrmLoanMst.flatAmount" /></html:option>
                                                      <html:option value="S" ><bean:message   key="hrm.HrmLoanMst.salery" /></html:option>
                                               </html:select>
                                              </td>  
                                              
                                              <logic:equal property="txtEligibilityFactor" name="HrmAdv" value="F">
                                                <TD class=tableText ><html:text property="txtFlatAmount" styleClass="required" onkeydown="isInteger(event)" maxlength="8" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                                <TD class=tableText><html:text property="txtNoOfMonSal" styleClass="locked" value="" readonly="true" maxlength="6" onkeydown="isFloat(event)" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>                                
                                              </logic:equal>
                                              <logic:equal property="txtEligibilityFactor" name="HrmAdv" value="S">
                                                <TD class=tableText ><html:text property="txtFlatAmount" styleClass="locked" readonly="true" value="" onkeydown="isInteger(event)" maxlength="8" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                                <TD class=tableText><html:text property="txtNoOfMonSal" styleClass="required" maxlength="6" onkeydown="isFloat(event)" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>                                
                                              </logic:equal>
                                              <logic:equal property="txtEligibilityFactor" name="HrmAdv" value="">
                                                <TD class=tableText ><html:text property="txtFlatAmount" styleClass="locked" readonly="true" value="" onkeydown="isInteger(event)" maxlength="8" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                                <TD class=tableText><html:text property="txtNoOfMonSal" styleClass="locked" readonly="true" onkeydown="isFloat(event)" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>                                
                                              </logic:equal>
                                                
                                                
                                                <td><enrgise:select property="txtSettlementUnit" name="HrmAdv" formName="HrmAdvMstForm"  alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="optional" disabledClass="locked" >
                                                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                                    <enrgise:option value="M" > <bean:message key="hrm.HrmAdvMst.monthly" /></enrgise:option>
                                                    <enrgise:option value="O" > <bean:message key="hrm.HrmAdvMst.once" /></enrgise:option>
                                                    </enrgise:select></td> 
                                                <TD class=tableText><enrgise:text formName="HrmAdvMstForm" property="txtSettlementPeriod" maxlength="5" onkeypress="isInteger(event)" name="HrmAdv"   alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="required" disabledClass="locked" /></td>                                
                                                <td><enrgise:select property="txtSettleThroughPayroll" name="HrmAdv" formName="HrmAdvMstForm"  alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="optional" disabledClass="locked" >
                                                    <enrgise:option value="Y" > <bean:message key="hrm.HrmAdvMst.yes" /></enrgise:option>
                                                    <enrgise:option value="N" > <bean:message key="hrm.HrmAdvMst.no" /></enrgise:option>
                                                    </enrgise:select></td> 
                                                <td><enrgise:select property="txtApplicableToAll" name="HrmAdv" formName="HrmAdvMstForm"  alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="required" disabledClass="locked" >
                                                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                                    <enrgise:option value="Y" > <bean:message key="hrm.HrmAdvMst.yes" /></enrgise:option>
                                                    <enrgise:option value="N" > <bean:message key="hrm.HrmAdvMst.no" /></enrgise:option>
                                                    </enrgise:select></td>
                                                <!--<td><enrgise:button  onclick="return ShowNextPage();" name="HrmAdvMstForm"   property="butSettlementHeads" styleClass="bottomBarText">Select</enrgise:button>-->
                                           </tr>
                            </logic:notEqual>
                            <logic:equal name="HrmAdv" property="status" value="D"  >
                                           <tr class='<bean:write name="HrmAdvMstForm" property="listRowClass"/>'  >
                                              <td align="center" width="1%"><html:hidden property="status"  name="HrmAdv" /><html:hidden property="detailId"  name="HrmAdv" /><html:hidden property="txtMaxLimitPerTXN" name="HrmAdv" /><html:hidden property="txtMoratoriumInMonths" name="HrmAdv" /><html:hidden property="itemChecked" name="HrmAdv" /><html:checkbox property="checked" value="check" disabled="true" name="HrmAdvMstForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                              <TD class=tableText ><html:text property="txtAdvanceDescription" name="HrmAdv"  alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /></td>
                                              <TD class=tableText ><html:text property="txtEffectiveFromDate" name="HrmAdv" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /><img name="HrmAdvMstForm" width="16" height="19" align="top" src="../includes/images/cal_dis.gif" property="butTxtEffectiveFromDate" alt="<%=idx.toString()%>"  /></td>               
                                              <TD class=tableText ><html:text property="txtEffectiveToDate" name="HrmAdv" alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow"  readonly="true" /><img name="HrmAdvMstForm" width="16" height="19" align="top" src="../includes/images/cal_dis.gif" property="butTxtEffectiveToDate" alt="<%=idx.toString()%>" /></td>              
                                              <TD class=tableText><html:text property="txtMaxCalLimit" name="HrmAdv"  alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  styleClass="deletedRow" readonly="true" /></td>
                                              <TD class=tableText><html:text property="txtNoOfTXN" name="HrmAdv"  alt="D" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow"  readonly="true" /></td>
                                              
                                              <TD ><html:select property="txtEligibilityFactor" name="HrmAdv" styleClass="locked" onchange='<%="doChangeDetail("+idx.toString()+");doBaseValidate()"%>' disabled="true" >
                                                   <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>
                                                      <html:option value="F" ><bean:message   key="hrm.HrmLoanMst.flatAmount" /></html:option>
                                                      <html:option value="S" ><bean:message   key="hrm.HrmLoanMst.salery" /></html:option>
                                               </html:select><html:hidden property="txtEligibilityFactor" name="HrmAdv" />
                                              </td>  
                                                <TD class=tableText ><html:text property="txtFlatAmount" styleClass="locked" readonly="true" onkeydown="isInteger(event)" maxlength="8" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>   
                                                <TD class=tableText><html:text property="txtNoOfMonSal" styleClass="locked" value="" readonly="true" maxlength="6" onkeydown="isFloat(event)" name="HrmAdv" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.alt);" /></td>                                
                                               
                                              <td><html:select property="txtSettlementUnit" name="HrmAdv"  alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" disabled="true" >
                                                  <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
                                                  <html:option value="M" > <bean:message key="hrm.HrmAdvMst.monthly" /></html:option>
                                                  <html:option value="O" > <bean:message key="hrm.HrmAdvMst.once" /></html:option>
                                                  </html:select><html:hidden property="txtSettlementUnit" /></td> 
                                              <TD class=tableText><html:text property="txtSettlementPeriod" name="HrmAdv"   alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" readonly="true" /></td>                                
                                              <td><html:select property="txtSettleThroughPayroll" name="HrmAdv"  alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" disabled="true"  >
                                                  <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
                                                  <html:option value="Y" > <bean:message key="hrm.HrmAdvMst.yes" /></html:option>
                                                  <html:option value="N" > <bean:message key="hrm.HrmAdvMst.no" /></html:option>
                                                  </html:select><html:hidden property="txtSettleThroughPayroll" /></td> 
                                              <td><html:select property="txtApplicableToAll" name="HrmAdv"  alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="locked" disabled="true">
                                                  <html:option value="Y" > <bean:message key="hrm.HrmAdvMst.yes" /></html:option>
                                                  <html:option value="N" > <bean:message key="hrm.HrmAdvMst.no" /></html:option>
                                                  </html:select><html:hidden property="txtApplicableToAll" /></td>
                                              <!--<td><button   name="HrmAdvMstForm"   property="butSettlementHeads" styleClass="bottomBarText" disabled="true">Select</button>-->
                                         </tr>
                            </logic:equal>
                         </logic:iterate>
                         </logic:notEmpty>
                    </TBODY>
                </TABLE>
              </DIV>
            </TD>
          </TR>
          
              <tr>
                  <td colspan=5>	
                    <jsp:include page="GenDetailMenu.jsp" />
                  </td>
                  <td width="13%"></td>
                </tr>
                   </TBODY>
                </TABLE>
              </td>
            </tr>
        </TABLE>
     </td>
	 </tr>
              
              <!-- Tab Table Ends -->

      <!-- Bottom Blue Bar -->
         <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr>
                        <td width=40% align=center bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                      
                        <td bgColor=#4682b4></td>
                        <td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
                        <td width="13%"></td>
                   </TR>
                </table>
            </td>
          </tr>
 
<!-- Container Table Ending Columns Starts-->
    
</TBODY>
</TABLE>
<html:hidden name="HrmAdvMstForm"  property="screenMode"  />
<html:hidden name="HrmAdvMstForm"  property="screenName" value="HrmAdvanceMaster" />
<html:hidden name="HrmAdvMstForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmAdvMstForm" />


<html:hidden property="detailDataChanged" name="HrmAdvMstForm" />
<html:hidden property="headerDataChanged" name="HrmAdvMstForm" />

<html:hidden property="userPageRequested" name="HrmAdvMstForm" />
<html:hidden property="userPositionRequested" name="HrmAdvMstForm" />
<html:hidden property="pageRequested" name="HrmAdvMstForm" />

<html:hidden property="lovKey" name="HrmAdvMstForm"  />
<html:hidden property="txtSearchFields" name="HrmAdvMstForm"  />
<html:hidden property="txtDisplayFields" name="HrmAdvMstForm"  />

<html:hidden property="headerPrimaryKey" name="HrmAdvMstForm"  />

<html:hidden property="advanceCodeId" name="HrmAdvMstForm" />
<html:hidden property="calendarId" name="HrmAdvMstForm" />
<html:hidden property="beginMonth" name="HrmAdvMstForm" />
<html:hidden property="durationMonth" name="HrmAdvMstForm" />
<html:hidden property="hidDetailId" name="HrmAdvMstForm" />
<html:hidden property="txtIndex" name="HrmAdvMstForm"  />
<html:hidden property="firstLoad" name="HrmAdvMstForm"  />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<!-- Container Table Ends -->

</html:form>
</body>
</html:html>


<script language="javascript">
function doChangeHeader()
{

 if(document.forms[0].screenMode.value=="U" || document.forms[0].screenMode.value=="N"){
   document.forms[0].headerDataChanged.value="true";
 }
}
function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}

function doQueryMode()
{

  return "HrmAdvanceMstQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmAdvanceMstNewModeAction.do";
}


function doExecute()
{

  return "HrmAdvanceMstGetHeaderAction.do";
}

function doSave()
{

  return "HrmAdvanceMstSaveAction.do";
  
}



function doDelete()
{

  return "HrmAdvanceMstDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmAdvanceMstRefreshAction.do";
  
}

function doPrevHeader()
{
  return "HrmAdvanceMstGetNextHeaderAction.do"; 
}

function doNextHeader()
{
  return "HrmAdvanceMstGetNextHeaderAction.do"; 
}

function doJumpHeader()
{
  return "HrmAdvanceMstGetNextHeaderAction.do"; 
}


function doDelRow()
{
 return "HrmAdvanceMstDeleteRowAction.do";  
}

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmAdvanceMstGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmAdvanceMstGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmAdvanceMstGetDetailPageAction.do"; 
}

function ShowAdvanceCode()
{
        document.forms[0].lovKey.value = "AdvanceCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvMst.advanceCode,hrm.HrmAdvMst.description";
        document.forms[0].txtDisplayFields.value = "advanceCodeId,advanceCode,description";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAdvMstForm');
        return true;
}

function ShowCalendar()
{
        document.forms[0].lovKey.value = "CalendarCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvMst.calendar";
        document.forms[0].txtDisplayFields.value = "calendarId,calendar,beginMonth,durationMonth";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAdvMstForm');
        return true;
}
function doGetInsertData()
{
  
}


function doGetDetail()
{
return "HrmAdvanceMstGetDetailAction.do";  

}

function ShowNextPage()
{     
        window.open('<html:rewrite page="/hrms/jsp/HrmSettlementHeads.jsp" />','HrmAdvMstForm');
        return true;
}

function doAddRow()
{
    return "HrmAdvanceMstAddRowAction.do";
}
function doExit()
{
    return "HrmAdvanceMstExitAction.do";
}


function setCheckedValues(val)
{
document.forms[0].hidDetailId.value=document.getElementsByName("DetailId")[val].value;
}
function doValidate()
{
  return  "HrmAdvanceMstValidateAction.do"; 
}

function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmAdvanceMstOnLoadAction.do"; 
  }
}
</script>