<%@ 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>
<HEAD>
    <html:base />
    <TITLE><bean:message key="hrm.title" /></TITLE>
	  <jsp:include page="GenIncludes.jsp" flush="true" />
</HEAD>

<BODY  onkeydown="hotKeys(event);"; scroll=auto>

<html:form name="HrmAprslForm" action="HrmEmpApslKPABaseAction" type="wenrgise.hrms.webtier.form.HrmAprslForm">
<bean:define id="ParentForm" name="HrmAprslForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />


<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader ><bean:message  key="hrm.EmpAprsl.heading" /></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 >
        <!--Master Information Starts -->
        
         <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.EmpAprsl.empCode" /></td>
            <td><html:text  property="empNo"  maxlength="15" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
         
            <td class=labelText><bean:message key="hrm.EmpAprsl.empName" /></td>
            <td><html:text  property="empName"  maxlength="15" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
            <td class=labelText><bean:message key="hrm.EmpAprsl.stOrderNo" /></td>
            <td ><html:text  property="stOrderNo" altKey="hrm.EmpAprsl.stOrderNo" maxlength="25" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" name="HrmAprslForm" align="center"  src="../includes/images/lov.jpg" property="butStOrder" onclick="return ShowStartOrder();"   /></td>
           
           </tr>

          <tr>
          
          
            <td class=labelText><bean:message key="hrm.EmpAprsl.fromDate" /></td>
            <td ><html:text property="fromDate" name="HrmAprslForm" titleKey="hrm.EmpAprsl.fromDate" alt="D" maxlength="15" size="26" styleClass="locked" readonly="true"  onchange="doChangeHeader();"  /></td>
            
          <td class=labelText><bean:message key="hrm.EmpAprsl.toDate" /></td>
            <td ><html:text  property="toDate" name="HrmAprslForm" titleKey="hrm.EmpAprsl.toDate" alt="D" maxlength="15" size="26" styleClass="locked" readonly="true"  onchange="doChangeHeader();"  /></td>
            <td class=labelText><bean:message key="hrm.EmpAprsl.aprslPeriod" /></td>
            <td><html:text  property="aprslPeriod"  maxlength="15" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>
            
          </tr>
          
          <tr>
            <td class=labelText><bean:message key="hrm.EmpAprsl.aprslLevel" /></td>
            <td><html:text  property="aprslLevel" altKey="hrm.EmpAprsl.aprslLevel" maxlength="25" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>

               <logic:notEqual property="approvalFlag" name="HrmAprslForm" value="A" >
               <td class="labelText"><bean:message key="hrm.EmpAprsl.jrLvlRating" /></td>
               <td ><enrgise:text  property="finalRating" altKey="hrm.EmpAprsl.jrLvlRating" maxlength="25" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                </logic:notEqual>
               <logic:equal property="approvalFlag" name="HrmAprslForm" value="A" >
               <td class="labelText"><bean:message key="hrm.EmpAprsl.finalRating" /></td>
               <td ><enrgise:text  property="finalRating" altKey="hrm.EmpAprsl.finalRating" maxlength="25" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
               </logic:equal>
            

             <td class="labelText"><bean:message key="hrm.EmpAprsl.approvalflag" /></td>
              <td><html:select disabled="true"  property="approvalFlag" alt="approvalFlag"  styleClass="locked" name="HrmAprslForm" onchange="doChangeHeader();" >
              <html:option value="" ><bean:message   key="hrm.pleaseSelect" /></html:option>      
              <html:option value="N" > <bean:message key="hrm.HrmLvAppln.new" /></html:option>
              <html:option value="P" > <bean:message key="hrm.HrmLvAppln.pending" /></html:option>
              <html:option value="A" > <bean:message key="hrm.HrmLvAppln.approved" /></html:option>
              <html:option value="R" > <bean:message key="hrm.HrmLvAppln.rejected" /></html:option>
              <html:option value="V" > <bean:message key="hrm.HrmLvAppln.revised" /></html:option>
             </html:select></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>
            <TABLE cellSpacing=0 cellPadding=0 >
              <tr>
              <tr>
                   <enrgise:tab name="HrmAprslForm" property="butKPATab" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" ><bean:message key="hrm.EmpAprsl.kpa" /></enrgise:tab>
                   <enrgise:tab name="HrmAprslForm" property="butGoalsTab" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" onclick="doGetTab('HrmAprslGoals','HrmEmpApslKPAGetTabAction.do');" ><bean:message key="hrm.EmpAprsl.goals" /></enrgise:tab>
                   <enrgise:tab name="HrmAprslForm" property="butTrngReqTab" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" onclick="doGetTab('HrmAprslTrngReq','HrmEmpApslKPAGetTabAction.do');" ><bean:message key="hrm.EmpAprsl.TrngReq" /></enrgise:tab>
                   <enrgise:tab name="HrmAprslForm" property="butPersDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" onclick="doGetTab('HrmAprslEmpDtls','HrmEmpApslKPAGetTabAction.do');" ><bean:message key="hrm.EmpAprsl.EmpDtls" /></enrgise:tab>
                  <td width="56%"></td>
            </tr> 
           </tr> 
              <!-- Detail table Container starts -->
              <TD colSpan=13>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:300px;width:1020px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                         <tr height="20">
                      <TD class=tableHeader width="1%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" /></TD>
                                  <TD class=tableHeader width="7%"><bean:message key="hrm.EmpAprsl.kpaCode" /></td>
                          
                          
                        <TD class=tableHeader width="7%" ><bean:message key="hrm.EmpAprsl.kpaDesc" /></td>
                         <TD class=tableHeader width="6%" ><bean:message key="hrm.EmpAprsl.levelAprl0" /></td>
                         <TD class=tableHeader width="7%" ><bean:message key="hrm.EmpAprsl.levelRating0" /></td>
                         <TD class=tableHeader width="8%" ><bean:message key="hrm.EmpAprsl.levelAprl1" /></td>
                         <TD class=tableHeader width="8%" ><bean:message key="hrm.EmpAprsl.levelRating1" /></td>
                         <TD class=tableHeader width="8%" ><bean:message key="hrm.EmpAprsl.levelAprl2" /></td>
                        <TD class=tableHeader width="8%" ><bean:message key="hrm.EmpAprsl.levelRating2" /></td>
                        <TD class=tableHeader width="8%" ><bean:message key="hrm.EmpAprsl.levelAprl3" /></td>
                        <TD class=tableHeader width="8%" ><bean:message key="hrm.EmpAprsl.levelRating3" /></td>
                        <TD class=tableHeader width="9%" ><bean:message key="hrm.EmpAprsl.levelAprl4" /></td>
                        <TD class=tableHeader width="9%" ><bean:message key="hrm.EmpAprsl.levelRating4" /></td>
                        <TD class=tableHeader width="9%" ><bean:message key="hrm.EmpAprsl.levelAprl5" /></td>
                        <TD class=tableHeader width="9%" ><bean:message key="hrm.EmpAprsl.levelRating5" /></td>
                        
                        </tr> 
                        
                       <logic:iterate id="empAprsl" name="HrmAprslForm" property="arylstEmpAprslKPA" type="wenrgise.hrms.bean.HrmAprslKPADtlBean" indexId="idx">
                                
                            <logic:notEqual name="empAprsl" property="status" value="D" >                                                        
                                <tr>
                                  <td align="center" ><html:checkbox property="checked" name="HrmAprslForm"  alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);"/></td>                                  
                                 
                                  <td ><html:text property="txtKPACode" name="empAprsl"   styleClass="locked" readonly="true"  size="15"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' />
                                  <td><html:text property="txtKPADesc" name="empAprsl"  styleClass="locked"   size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:textarea property="txtLevelAprl0" name="empAprsl"  styleClass="optional" disabledClass="locked"  rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating0" name="empAprsl"  styleClass="optional" disabledClass="locked"  size="15" style="width:85%"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg" name="empAprsl"   styleClass="icon" height="15" align="center" property="butRatingK0LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv0(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl1" name="empAprsl"  styleClass="optional"  disabledClass="locked" rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating1" name="empAprsl"  styleClass="optional" disabledClass="locked"   size="15" style="width:85%"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg"  name="empAprsl"  styleClass="icon" height="15" align="center" property="butRatingK1LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv1(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl2" name="empAprsl"  styleClass="optional" disabledClass="locked"  rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating2" name="empAprsl"  styleClass="optional" disabledClass="locked"   size="15" style="width:85%" onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg" name="empAprsl"   styleClass="icon" height="15" align="center" property="butRatingK2LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv2(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl3" name="empAprsl"  styleClass="optional"  disabledClass="locked" rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating3" name="empAprsl"  styleClass="optional" disabledClass="locked"   size="15" style="width:85%" onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg"  name="empAprsl"  styleClass="icon" height="15" align="center" property="butRatingK3LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv3(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl4" name="empAprsl"  styleClass="optional" disabledClass="locked"  rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating4" name="empAprsl"  styleClass="optional" disabledClass="locked"   size="15" style="width:85%" onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg"  name="empAprsl"  styleClass="icon" height="15" align="center" property="butRatingK4LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv4(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl5" name="empAprsl"  styleClass="optional" disabledClass="locked"  rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating5" name="empAprsl"  styleClass="optional" disabledClass="locked"   size="15" style="width:85%" onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg"  name="empAprsl"  styleClass="icon" height="15" align="center" property="butRatingK5LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv5(this.alt);" /> </td>

                                <html:hidden property="txtEmpAprsKPAlHdrId" name="empAprsl"  />
                                <html:hidden property="txtTmplKPADtlId" name="empAprsl"  />
                                <html:hidden property="txtKPADtlId" name="empAprsl"  />
                                <html:hidden property="itemChecked" name="empAprsl" />
                                <html:hidden property="status" name="empAprsl" />
                                <html:hidden property="detailId" name="empAprsl" />
                                <html:hidden property="txtRatingFrom" name="empAprsl" />
                                <html:hidden property="txtRatingTo" name="empAprsl" />
                                <html:hidden property="txtRatingDesc" name="empAprsl" />
                                <html:hidden property="txtKpaAprslType" name="empAprsl" />
                                <html:hidden property="txtKpaRatingReq" name="empAprsl" />
                               </tr>
                        </logic:notEqual>
                       
                        <logic:equal name="empAprsl" property="status" value="D" >
                                
                               <tr>
                                  <td align="center" ><html:checkbox property="checked" name="HrmAprslForm"  alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);"/></td>                                  
                                 
                                  <td ><html:text property="txtKPACode" name="empAprsl"  styleClass="deletedRow"  size="15"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                  
                                  <td><html:text property="txtKPADesc" name="empAprsl"  styleClass="deletedRow"   size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:textarea property="txtLevelAprl0" name="empAprsl"  styleClass="deletedRow"   rows="1" cols="28" disabledClass="locked" onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating0" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"  size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg" name="empAprsl"   styleClass="icon" height="15" align="center" property="butRatingK0LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv0(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl1" name="empAprsl"  styleClass="deletedRow"  disabledClass="locked" rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating1" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"  size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg" name="empAprsl"   styleClass="icon" height="15" align="center" property="butRatingK1LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv1(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl2" name="empAprsl"  styleClass="deletedRow"  disabledClass="locked" rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating2" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"  size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg"  name="empAprsl"  styleClass="icon" height="15" align="center" property="butRatingK2LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv2(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl3" name="empAprsl"  styleClass="deletedRow"  disabledClass="locked" rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating3" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"  size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg" name="empAprsl"   styleClass="icon" height="15" align="center" property="butRatingK3LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv3(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl4" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"  rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating4" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"  size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg" name="empAprsl"   styleClass="icon" height="15" align="center" property="butRatingK4LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv4(this.alt);" /> </td>
                                 <td><enrgise:textarea property="txtLevelAprl5" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"  rows="1" cols="28"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  />  </td>
                                 <td><enrgise:text property="txtLevelRating5" name="empAprsl"  styleClass="deletedRow" disabledClass="locked"   size="15"  onchange='<%="doChangeDetail("+idx.toString()+");"%>'  /><enrgise:img src="../includes/images/lov.jpg"  name="empAprsl"  styleClass="icon" height="15" align="center" property="butRatingK5LOV"  alt="<%=idx.toString()%>" onclick=" return ShowRatingLv5(this.alt);" /> </td>

                                <html:hidden property="txtEmpAprsKPAlHdrId" name="empAprsl"  />
                                <html:hidden property="txtTmplKPADtlId" name="empAprsl"  />
                                <html:hidden property="txtKPADtlId" name="empAprsl"  />
                                <html:hidden property="itemChecked" name="empAprsl" />
                                <html:hidden property="status" name="empAprsl" />
                                <html:hidden property="detailId" name="empAprsl" />
                                <html:hidden property="txtRatingFrom" name="empAprsl" />
                                <html:hidden property="txtRatingTo" name="empAprsl" />
                                <html:hidden property="txtRatingDesc" name="empAprsl" />
                                <html:hidden property="txtKpaAprslType" name="empAprsl" />
                                <html:hidden property="txtKpaRatingReq" name="empAprsl" />
                                
                               </tr>
                          </logic:equal>                                    
                    </logic:iterate>              
                                       

                                       

                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                <td>	
                <bean:define id="pageNo" name="ParentForm" property="pageRequested" toScope="request" />
                <bean:define id="maxPage" name="ParentForm" property="totalPageCount" toScope="request" />
                <TABLE border=0>
                  <tbody>
                  <TR>
                    <TD ><enrgise:button altKey="wenrgise.common.getDetail"  onclick="doBaseGetDetail()" property="butGetDetail" name="ParentForm" styleClass="bottomBarText">&nbsp;Get De<u>t</u>ail&nbsp;</enrgise:button> <button altKey="wenrgise.common.addRow" styleClass="bottomBarText" disabled="true">&nbsp;&nbsp;Add <u>R</u>ow&nbsp;&nbsp;</button><button altKey="wenrgise.common.delRow" styleClass="bottomBarText" disabled="true" ><u>D</u>elete Row</button></TD>
                    <td width=50%></td>	
                    <TD ><enrgise:img name="ParentForm" property="butPrevDetail" src="../includes/images/butn_dtl_prev.jpg" onmouseover='this.src="../includes/images/butn_dtl_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_prev.jpg"' alt="Butn_prev (Alt+<)"  onclick="doBasePrevDetail()"/></td>
                    <td class=dtlNavText><bean:write  name="pageNo" /> of <bean:write name="maxPage" /></td>
                    <td  align=right><enrgise:img name="ParentForm" property="butNextDetail" src="../includes/images/butn_dtl_next.jpg" onmouseover='this.src="../includes/images/butn_dtl_next_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_next.jpg"' alt="Butn_next (Alt+>)" onclick="doBaseNextDetail()"/></td>
                    <td  align=right><enrgise:text property="newPageRequested" size="1" onkeydown="isInteger(event)" styleClass="optional" disabledClass="locked" alt="N" titleKey="wenrgise.common.jumpDetail" /></td>
                    <td ><enrgise:img name="ParentForm" property="butJumpDetail" altKey="wenrgise.common.go" src="../includes/images/go_dtl.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpDetail()" /></td>		     
                  </TR>
                
                  </tbody>
                </TABLE>
		            </TD>
		            <td> </td>
               </tr>
        </TABLE>
      </td>
     </tr>
      <TR>
        <TD background="../includes/images/line_r.gif"><IMG src="../includes/images/pixel.gif" border=0></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><enrgise:button  alt="Calculate (Alt+C)" name="HrmAprslForm"  onclick="doCalculation()" property="butCalculate" styleClass="bottomBarText">&nbsp;<u>C</u>alculate&nbsp;</enrgise:button><enrgise:button  alt="Done (Alt+D)" name="HrmAprslForm"  onclick="doDone()" property="butDone" styleClass="bottomBarText">&nbsp;&nbsp;&nbsp;&nbsp;<u>D</u>one&nbsp;&nbsp;&nbsp;&nbsp;</enrgise:button>
                        <enrgise:button  alt="Reject (Alt+R)" name="HrmAprslForm"  onclick="doBaseReject()" property="butReject" styleClass="bottomBarText">&nbsp;<u>R</u>eject&nbsp;</enrgise:button></td>              
                       <td bgColor=#4682b4></td>
                        <td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
                   </TR>
                </table>
            </td>
          </tr>
	
<!-- Container Table Ending Columns Starts-->
    
</TBODY>
</TABLE>

<!-- Container Table Ends -->
<html:hidden name="HrmAprslForm" property="screenName" value="HrmAprslKPA" />
<html:hidden name="HrmAprslForm" property="forwardedPage" />
<html:hidden name="HrmAprslForm" property="positionRequested"  />
<html:hidden name="HrmAprslForm" property="screenMode" />
<html:hidden name="HrmAprslForm" property="headerPrimaryKey"/> 


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

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

<html:hidden property="userPageRequested" name="HrmAprslForm" />
<html:hidden property="userPositionRequested" name="HrmAprslForm" />
<html:hidden property="pageRequested" name="HrmAprslForm" />
<html:hidden property="empId" name="HrmAprslForm" />
<html:hidden property="tmplHdrId" name="HrmAprslForm" />
<html:hidden property="spcTmplId" name="HrmAprslForm" />
<html:hidden property="startOrderId" name="HrmAprslForm" />
<html:hidden property="rating0" name="HrmAprslForm" />
<html:hidden property="rating1" name="HrmAprslForm" />
<html:hidden property="rating2" name="HrmAprslForm" />
<html:hidden property="rating3" name="HrmAprslForm" />
<html:hidden property="rating4" name="HrmAprslForm" />
<html:hidden property="rating5" name="HrmAprslForm" />

<html:hidden property="buttonName" name="HrmAprslForm" />
<html:hidden property="calFlag" name="HrmAprslForm" />
<html:hidden property="firstLoad" name="HrmAprslForm"  />
<html:hidden property="appFlag" name="HrmAprslForm" />
<html:hidden property="doneFlag" name="HrmAprslForm" />
<html:hidden property="hidDoneFlag" name="HrmAprslForm" />

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


</html:form>
</body>
</html:html>
      
<script language="javascript">

function doQueryMode()
{
  return "HrmEmpApslKPAQueryModeAction.do";
}


function doInsertMode()
{
  return "HrmEmpApslKPANewModeAction.do";
}


function doExecute()
{
  return "HrmEmpApslKPAGetHeaderAction.do";
}

function doSave()
{
  return "HrmEmpApslKPASaveAction.do";
  
}

function doDelete()
{
  return "HrmEmpApslKPADeleteAction.do";
  
}

function doRefresh()
{
  return "HrmEmpApslKPARefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmEmpApslKPAGetDetailAction.do";
}

function doAddRow()
{
  return "HrmEmpApslKPAAddRowAction.do"; 
}

function doDelRow()
{
 return "HrmEmpApslKPADeleteRowAction.do";  
}
function doExit()
{
 return "HrmEmpApslKPAExitAction.do";  
}

function doPrevDetail()
{

  return "HrmEmpApslKPAGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmEmpApslKPAGetDetailPageAction.do";
}

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

function doDone()
{
  document.forms[0].doneFlag.value = "true";
  document.forms[0].hidDoneFlag.value = "true";
  document.forms[0].buttonName.value="butDone";
  document.forms[0].action=contextRoot+"HrmEmpApslKPAGetButtonAction.do";
  document.forms[0].submit();
  
}

function doCalculation()
{
  document.forms[0].buttonName.value="butCalculate";
  document.forms[0].action=contextRoot+"HrmEmpApslKPACalGetButtonAction.do";
  document.forms[0].submit();
}
function doReject()
{
  document.forms[0].doneFlag.value = "true";
  document.forms[0].hidDoneFlag.value = "true";
  document.forms[0].buttonName.value="butReject";
  //document.forms[0].action="/enrgise/HrmEmpApslKPAGetButtonAction.do";
  //document.forms[0].submit();
  return "HrmEmpApslKPAGetButtonAction.do";
  
  
}

 function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmAprslKpaOnLoadAction.do"; 
  }
}
function ShowStartOrder()
{
        document.forms[0].queryParam.value ="EmpStOrder="+ document.forms[0].empId.value +" " ; 
        document.forms[0].lovKey.value = "EmpAprslStartOrder" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.EmpAprsl.stOrderNo";
        document.forms[0].txtDisplayFields.value = "startOrderId,stOrderNo,fromDate,toDate";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/HRMS/JSP/CommonSearchScreen.jsp" />','HrmAprslForm');
        return true;
}

function ShowRatingLv0(i)
{
        document.forms[0].lovKey.value = "AprslRatingLv0" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "";
        document.forms[0].txtDisplayFields.value = "txtRatingFrom,txtRatingTo,txtRatingDesc,txtLevelRating0";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].txtIndex.value = i;
        document.forms[0].queryParam.value="headerPrimaryKey="+document.forms[0].headerPrimaryKey.value ;
        showLov('<html:rewrite page="/HRMS/JSP/CommonSearchScreen.jsp" />','HrmAprslForm');
        return true;
}
function ShowRatingLv1(i)
{
        document.forms[0].lovKey.value = "AprslRatingLv1" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "";
        document.forms[0].txtDisplayFields.value = "txtRatingFrom,txtRatingTo,txtRatingDesc,txtLevelRating1";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].txtIndex.value = i;
        document.forms[0].queryParam.value="headerPrimaryKey="+document.forms[0].headerPrimaryKey.value ;
        showLov('<html:rewrite page="/HRMS/JSP/CommonSearchScreen.jsp" />','HrmAprslForm');
        return true;
}
function ShowRatingLv2(i)
{
        document.forms[0].lovKey.value = "AprslRatingLv2" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "";
        document.forms[0].txtDisplayFields.value = "txtRatingFrom,txtRatingTo,txtRatingDesc,txtLevelRating2";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].txtIndex.value = i;
        document.forms[0].queryParam.value="headerPrimaryKey="+document.forms[0].headerPrimaryKey.value ;
        showLov('<html:rewrite page="/HRMS/JSP/CommonSearchScreen.jsp" />','HrmAprslForm');
        return true;
}
function ShowRatingLv3(i)
{
        document.forms[0].lovKey.value = "AprslRatingLv3" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "";
        document.forms[0].txtDisplayFields.value = "txtRatingFrom,txtRatingTo,txtRatingDesc,txtLevelRating3";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].txtIndex.value = i;
        document.forms[0].queryParam.value="headerPrimaryKey="+document.forms[0].headerPrimaryKey.value ;
        showLov('<html:rewrite page="/HRMS/JSP/CommonSearchScreen.jsp" />','HrmAprslForm');
        return true;
}
function ShowRatingLv4(i)
{
        document.forms[0].lovKey.value = "AprslRatingLv4" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "";
        document.forms[0].txtDisplayFields.value = "txtRatingFrom,txtRatingTo,txtRatingDesc,txtLevelRating4";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].txtIndex.value = i;
        document.forms[0].queryParam.value="headerPrimaryKey="+document.forms[0].headerPrimaryKey.value ;
        showLov('<html:rewrite page="/HRMS/JSP/CommonSearchScreen.jsp" />','HrmAprslForm');
        return true;
}

function ShowRatingLv5(i)
{
        document.forms[0].lovKey.value = "AprslRatingLv5" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "";
        document.forms[0].txtDisplayFields.value = "txtRatingFrom,txtRatingTo,txtRatingDesc,txtLevelRating5";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].txtIndex.value = i;
        document.forms[0].queryParam.value="headerPrimaryKey="+document.forms[0].headerPrimaryKey.value ;
        showLov('<html:rewrite page="/HRMS/JSP/CommonSearchScreen.jsp" />','HrmAprslForm');
        return true;
}

</script>