<%@ 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="HrmLnAppForm" action="HrmLnAppHblIntBaseAction" type="wenrgise.hrms.webtier.form.HrmLnAppForm">
<bean:define id="ParentForm" name="HrmLnAppForm" 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.HrmEmpLoanAppln.mainHeader" /></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 --> 
<div id=divBody style="height:470px">
<TABLE cellSpacing=0 cellPadding=0 border=0 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!-- Header Starts -->
              <TR>
                    <TD class=subHeader colspan=6><bean:message key="hrm.HrmEmpLoanAppln.subHeader1" /></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.HrmEmpLoanAppln.employeeNumber" /></td>
                  <td><html:text  property="employeeNumber" titleKey="hrm.HrmEmpLoanAppln.employeeNumber" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader();doOnChangeLov();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmLnAppForm"  property="butEmployeeNo" onclick="return ShowEmployeeNo()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.employeeName" /></td>
                  <td colspan="3"><html:text  property="firstName" titleKey="hrm.HrmEmpLoanAppln.employeeName" size="26" styleClass="locked" readonly="true" /><html:text  property="middleName" titleKey="hrm.HrmEmpLoanAppln.employeeName" size="41" styleClass="locked" readonly="true" /><html:text  property="lastName" titleKey="hrm.HrmEmpLoanAppln.employeeName" size="26" styleClass="locked" readonly="true" /></td> 
              </tr>
             
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.grade" /></td>
                  <td><html:text  property="grade" titleKey="hrm.HrmEmpLoanAppln.grade" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();"  /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.designation" /></td>
                  <td><html:text  property="designation" titleKey="hrm.HrmEmpLoanAppln.designation" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();"  /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.location" /></td>
                  <td><html:text  property="location" titleKey="hrm.HrmEmpLoanAppln.location" size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();"  /></td>
              </tr>
              
             <tr>
                    <td colspan="6"></td>    
                      <td width="2%"></td>
             </tr>  
              
             <TR>
                    <TD class=subHeader colspan=6><bean:message key="hrm.HrmEmpLoanAppDisbur.loan" /></TD>
              </TR>
               <TR>
                    <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
              </TR>
              <tr height="6">
                    <td colspan="6"></td>    
                     
             </tr>  
             <tr> 
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.loanCode" /></td>
                  <td><html:hidden  property="loanCode" name="HrmLnAppForm" /><html:text  property="loanDesc" titleKey="hrm.HrmEmpLoanAppln.loanDesc" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader()"  /><enrgise:img name="HrmLnAppForm" height="16" align="center" src="../includes/images/lov.jpg" property="butLoanCode" onclick="return ShowLoanCode()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.appliedAmount" /></td>
                  <td><enrgise:text  property="appliedAmount" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.appliedAmount" maxlength="20" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" onkeypress="isInteger(event);" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.applnDate" /></td>
                  <td><html:text  property="applnDate" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.applnDate"  size="23" styleClass="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img name="HrmLnAppForm" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butApplnDate"  onclick="showCalendar('applnDate',this)"  /></td>             
             </tr>
             <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.eligibleAmount" /></td>
                  <td><html:text  property="eligibleAmount" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.eligibleAmount" maxlength="20" size="26" styleClass="locked" onchange="doChangeHeader();" readonly="true" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.loanDetails" /></td>
                  <td><enrgise:text  property="loanDetails" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.loanDetails" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.fullyRepaid" /></td>
                  <td><html:checkbox  property="fullyRepaid" name="HrmLnAppForm"  styleClass="locked" onclick="doCheckInitialise(this,0);" disabled="true" onchange="doChangeHeader();" /><html:hidden property="fullyRepaid"  name="HrmLnAppForm"  /></td>
                     
             </tr>     
             <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.sanctionedAmount" /></td>
                  <td><enrgise:text  property="sanctionedAmount" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.sanctionedAmount" maxlength="10" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" onkeypress="isInteger(event)" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.sanctionDate" /></td>
                  <td><html:text  property="sanctionDate" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.sanctionDate"  size="23" styleClass="required" readonly="true" onchange="doChangeHeader();" /><enrgise:img name="HrmLnAppForm" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butSanctionDate"  onclick="showCalendar('sanctionDate',this)"  /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.payrollMonth" /></td>
                  <td><enrgise:text  property="payrollMonth" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.payrollMonth" maxlength="6" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" onkeypress="isNumber(event)" /></td>
                  
              </tr>
             
                    
             <tr>
             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.totalInst" /></td>
                  <td><enrgise:text  property="totalInst" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.totalInst" maxlength="20" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" onkeypress="isInteger(event)" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.totalPrincipalInst" /></td>
                  <td><enrgise:text  property="totalPrincipalInst" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.totalPrincipalInst" maxlength="20" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" onkeypress="isInteger(event)" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.totalInterestInst" /></td>
                  <td><enrgise:text  property="totalInterestInst" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.totalInterestInst" maxlength="20" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" onkeypress="isInteger(event)" /></td>
                  
              </tr>
             
                  
                 
              <tr>      
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.instAmount" /></td>
                  <td><enrgise:text  property="instAmount" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.instAmount" maxlength="20" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.approvedBy" /></td>
                  <td><html:text  property="approverName" titleKey="hrm.HrmEmpLoanAppln.approvedBy" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader();" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmLnAppForm"  property="butApproverNo" onclick="return ShowApprover()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.remarks" /></td>
                  <td><enrgise:textarea  property="remarks" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.remarks" rows="2" cols="28" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                   
                 </tr> 
                 <tr>
                      
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.noOfInstPaid" /></td>
                  <td><html:text  property="noOfInstPaid" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.noOfInstPaid"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.noOfInstPrincipalPaid" /></td>
                  <td><html:text  property="noOfInstPrincipalPaid" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.noOfInstPrincipalPaid"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.noOfInstInterestPaid" /></td>
                  <td><html:text  property="noOfInstInterestPaid" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.noOfInstInterestPaid"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  
               </tr>
                <tr>
                      
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.totalAmountPaid" /></td>
                  <td><html:text  property="totalAmountPaid" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.totalAmountPaid"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.principalPaid" /></td>
                  <td><html:text  property="principalPaid" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.principalPaid"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.interestPaid" /></td>
                  <td><html:text  property="interestPaid" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.interestPaid"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  
               </tr>
                <tr>
                      
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.totalBalance" /></td>
                  <td><html:text  property="totalBalance" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.totalBalance"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.principalBalance" /></td>
                  <td><html:text  property="principalBalance" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.principalBalance"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.interestBalance" /></td>
                  <td><html:text  property="interestBalance" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.interestBalance"  size="26" styleClass="locked" readonly="true" onchange="doChangeHeader();" /></td>             
                  
               </tr>
               
               
                <tr>
                  
                  <td></td>
                  <td></td>             
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.bulkAmount" /></td>
                  <td><enrgise:text  property="bulkAmount" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.bulkAmount"  size="26" styleClass="required" disabledClass="locked" onkeypress="isNumber(event)" onchange="doChangeHeader();" /></td>
                  <td></td>      
                      
                  
                  
               </tr>
               
               
               
                <TR>
                    <TD class=subHeader colspan=6><bean:message key="hrm.HrmEmpLoanAppln.hbl" /></TD>
              </TR>
               <TR>
                    <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
              </TR>
              <tr height="6">
                    <td colspan="6"></td>    
                     
             </tr>  
               <tr height="6"> 
                      
                   <td colspan="6"></td>
               </tr>
               <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblAppliedFor" /></td>
                  <td><enrgise:select property="hblAppliedFor" name="HrmLnAppForm"  styleClass="optional" disabledClass="locked" onchange="doChangeHeader()"  >
                                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                    <enrgise:option value="F" > <bean:message key="hrm.HrmEmpLoanAppln.hblAppliedFor1" /></enrgise:option>
                                    <enrgise:option value="L" > <bean:message key="hrm.HrmEmpLoanAppln.hblAppliedFor2" /></enrgise:option>
                                    <enrgise:option value="C" > <bean:message key="hrm.HrmEmpLoanAppln.hblAppliedFor3" /></enrgise:option>
                                    <enrgise:option value="R" > <bean:message key="hrm.HrmEmpLoanAppln.hblAppliedFor4" /></enrgise:option>
                                    <enrgise:option value="A" > <bean:message key="hrm.HrmEmpLoanAppln.hblAppliedFor5" /></enrgise:option>
                                  </enrgise:select></td> 
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblBranhConst" /></td>
                  <td><enrgise:text  property="hblBranhConst" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblBranhConst" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblDocSubmitted" /></td>
                  <td><enrgise:checkbox  property="hblDocSubmitted" name="HrmLnAppForm"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeHeader();" /><html:hidden property="hblDocSubmitted"  name="HrmLnAppForm"  /></td>
              </tr>    
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblCity" /></td>
                  <td><enrgise:text  property="hblCity" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblCity" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblPO" /></td>
                  <td><enrgise:text  property="hblPO" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblPO" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblDistrict" /></td>
                  <td><enrgise:text  property="hblDistrict" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblDistrict" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  
              </tr>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblMouza" /></td>
                  <td><enrgise:text  property="hblMouza" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblMouza" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblKhatian" /></td>
                  <td><enrgise:text  property="hblKhatian" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblKhatian" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblDag" /></td>
                  <td><enrgise:text  property="hblDag" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblDag" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  
              </tr>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblNoOfDeed" /></td>
                  <td><enrgise:text  property="hblNoOfDeed" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblNoOfDeed" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblParentDeed" /></td>
                  <td><enrgise:text  property="hblParentDeed" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblParentDeed" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblVolOfDeed" /></td>
                  <td><enrgise:text  property="hblVolOfDeed" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblVolOfDeed" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  
              </tr>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblBookNo" /></td>
                  <td><enrgise:text  property="hblBookNo" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblBookNo" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblPageNo" /></td>
                  <td><enrgise:text  property="hblPageNo" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblPageNo" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmEmpLoanAppln.hblRegisteredAt" /></td>
                  <td><enrgise:text  property="hblRegisteredAt" name="HrmLnAppForm" titleKey="hrm.HrmEmpLoanAppln.hblRegisteredAt" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /></td>
                  
              </tr>
              </table>
      
      
         <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
      <TR>
       <TD colspan=6>
        <!-- Table Starts -->
         <TABLE cellSpacing=0 cellPadding=0  >
         
            <tr>
                <logic:equal name="HrmLnAppForm" property="loanCode" value="99" > 
                    <enrgise:tab name="HrmLnAppForm" property="tabHblIntRate" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2"  ><bean:message key="hrm.HrmEmpLoanAppDisbur.HblIntRate" /></enrgise:tab>
                </logic:equal>
                <logic:notEqual name="HrmLnAppForm" property="loanCode" value="99" >
                    <enrgise:tab  name="HrmLnAppForm" property="tabHblIntRate" styleClass="lockedTab" disabledClass="lockedTab" src="../includes/images/formtab_r_dis.gif" rows="2" ><bean:message key="hrm.HrmEmpLoanAppDisbur.HblIntRate" /></enrgise:tab>
                </logic:notEqual>
                
                <enrgise:tab name="HrmLnAppForm" property="tabDisbursement" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmLnApp','HrmLnAppHblIntGetTabAction.do')" ><bean:message key="hrm.HrmEmpLoanAppDisbur.disbursement" /></enrgise:tab>
                <!--<enrgise:tab name="HrmLnAppForm" property="tabRepaymentSchedule" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"    rows="2" onclick= "doGetTab('HrmLnAppRepay','HrmLnAppGetTabAction.do')" ><bean:message key="hrm.HrmEmpLoanAppDisbur.repayment" /></enrgise:tab>-->
                
              <td width="68%"></td>
          </tr>  
          
          <TR >
          <!-- Detail table Container starts -->
              <TD colspan=8>
                <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                   <TR>
                     <TD >
                       <DIV id=divDtlTable style="height:200px;width:1000px" >
                       <!-- Detail table starts -->
                        <TABLE 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.HrmEmpLoanAppDisbur.tentativeDisDate" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpLoanAppDisbur.tentativeAmt" /></td>-->
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpLoanAppHblIntRate.fromAmount" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpLoanAppHblIntRate.toAmount" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpLoanAppHblIntRate.percentage" /></td>
                         </tr>  
                         
                         <logic:iterate id="HrmEmpHblIntRate" name="HrmLnAppForm" property="arrHblIntRate" type="wenrgise.hrms.bean.HrmLnHblIntDtlBean" indexId="idx" >
                            <logic:notEqual name="HrmEmpHblIntRate" property="status" value="D" >
                             <tr class='<bean:write name="HrmLnAppForm" property="listRowClass"/>'  >
                                <td >
                                <html:hidden property="status"  name="HrmEmpHblIntRate" />
                                <html:hidden property="detailId"  name="HrmEmpHblIntRate"  />
                                <html:checkbox property="checked"  name="HrmLnAppForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                <html:hidden property="itemChecked" name="HrmEmpHblIntRate" />
                                </td>
                                <TD class=tableText ><html:text property="txtFromAmount" name="HrmEmpHblIntRate" style="width:100%" styleClass="locked" maxlength="7" readonly="true" onchange='<%="doChangeDetail("+idx.toString()+")"%>' onkeypress="isNumber(event)" /></td>
                                <TD class=tableText ><html:text property="txtToAmount" name="HrmEmpHblIntRate" style="width:100%" styleClass="required" maxlength="7" onchange='<%="doChangeDetail("+idx.toString()+")"%>' onkeypress="isNumber(event)" /></td>
                                <TD class=tableText ><html:text property="txtPercentage" name="HrmEmpHblIntRate" style="width:100%" styleClass="required" maxlength="5" onchange='<%="doChangeDetail("+idx.toString()+")"%>' onkeydown="isFloat(event)" /></td>
                                
                             </tr>
                             </logic:notEqual>
                             <logic:equal name="HrmEmpHblIntRate" property="status" value="D"  >
                               <tr class='<bean:write name="HrmLnAppForm" property="listRowClass"/>'  >
                                <td >
                                <html:hidden property="status"  name="HrmEmpHblIntRate" />
                                <html:hidden property="detailId"  name="HrmEmpHblIntRate"  />
                                <html:checkbox property="checked"  name="HrmLnAppForm" disabled="true" />
                                <html:hidden property="itemChecked" name="HrmEmpHblIntRate" />
                                </td>
                                <TD class=tableText ><html:text property="txtFromAmount" name="HrmEmpHblIntRate" style="width:100%" styleClass="deletedRow" onchange='<%="doChangeDetail("+idx.toString()+")"%>' onkeypress="isNumber(event)" readonly="true" /></td>
                                <TD class=tableText ><html:text property="txtToAmount" name="HrmEmpHblIntRate" style="width:100%" styleClass="deletedRow" onchange='<%="doChangeDetail("+idx.toString()+")"%>' onkeypress="isNumber(event)" readonly="true" /></td>
                                <TD class=tableText ><html:text property="txtPercentage" name="HrmEmpHblIntRate" style="width:100%" styleClass="deletedRow" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                                
                              
                             </tr>
                             </logic:equal>
                        </logic:iterate>
                          
          
                     </TBODY>
                    </TABLE>
                 
                </TD>
              </TR>                     
            
            <!-- Get details starts -->
             <TABLE border=0>
              <tbody>
                <tr>
                      <td colspan=11>	
                          <jsp:include page="GenDetailMenu.jsp" />
                         
                      </TD>
                  </tr>
              
                </tbody>
              </TABLE>
                  
              </TR>
                      
              </tbody>
             </TABLE>
            </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=45% align=center bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                        <td bgColor=#4682b4><enrgise:button altKey="hrm.HrmEmpLoanAppln.bulkPayment"  onclick="doPayment()" property="butBulkPayment" name="HrmLnAppForm" styleClass="bottomBarText">Bulk Payment</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-->
  </TD>
    
</TR>
</TBODY>
</TABLE>
</div>

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


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

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

<html:hidden property="loanCodeId" name="HrmLnAppForm" />
<html:hidden property="empId" name="HrmLnAppForm" />
<html:hidden property="txtIndex" name="HrmLnAppForm"  />
<html:hidden property="userPageRequested" name="HrmLnAppForm" />
<html:hidden property="userPositionRequested"  name="HrmLnAppForm" />
<html:hidden property="pageRequested"  name="HrmLnAppForm" />
<html:hidden property="firstLoad" name="HrmLnAppForm" />
<html:hidden property="buttonName" name="HrmLnAppForm" />
<html:hidden property="headerPrimaryKey" name="HrmLnAppForm" />
<html:hidden property="headerDataChanged" name="HrmLnAppForm" />
<html:hidden property="detailDataChanged" name="HrmLnAppForm" />
<html:hidden property="mode" name="HrmLnAppForm" />

<!-- Hidden fields end -->

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

<script language="javascript">

function doChangeHeader()
{
 document.forms[0].headerDataChanged.value="true";
}


function doOnLoad()
{  
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmLnAppHblIntOnLoadAction.do"; 
  }
}
function doQueryMode()
{
 
  return "HrmLnAppHblIntQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmLnAppHblIntNewModeAction.do";
}


function doExecute()
{

  return "HrmLnAppHblIntGetHeaderAction.do";
}

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

function doDelete()
{

  return "HrmLnAppHblIntDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmLnAppHblIntRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{
  
  return "HrmLnAppHblIntGetDetailAction.do";
}

function doAddRow()
{

  return "HrmLnAppHblIntAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmLnApp";
}

function doPrevDetail()
{

  return "HrmLnAppHblIntGetDetailPageAction.do";  
}
function doExit()
{

  return "HrmLnAppHblIntExitAction.do";  
}

function doNextDetail()
{

  return "HrmLnAppHblIntGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmLnAppHblIntGetDetailPageAction.do"; 
}
function doOnChangeLov(lovName)
{
   if(lovName=="LnAppEmpNoHrmLnAppFormN" || lovName=="LnAppEmpNoHrmLnAppFormQ" || lovName=="LnAppEmpNoHrmLnAppFormU" || lovName=="LnAppLoanCodeHrmLnAppFormU" || lovName=="LnAppLoanCodeHrmLnAppFormN")
    {
      doBaseValidate();
    }
}

function doValidate()
{
  return "HrmLnAppHblIntValidateAction.do";
}
function ShowLoanCode()
{
        document.forms[0].lovKey.value = "LnAppLoanCode" + "HrmLnAppForm" + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpLoanAppln.loanCode,hrm.HrmEmpLoanAppln.loanDesc";
        document.forms[0].txtDisplayFields.value = "loanCodeId,loanCode,loanDesc";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].queryParam.value="empId="+document.forms[0].empId.value;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmLnAppForm');
        return true;
        
}

function ShowEmployeeNo()
{
        document.forms[0].lovKey.value = "LnAppEmpNo" + "HrmLnAppForm" + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpLoanAppln.employeeNumber,hrm.HrmEmpLoanAppln.employeeName";
        document.forms[0].txtDisplayFields.value = "empId,employeeNumber,firstName,middleName,lastName,grade,designation,location";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmLnAppForm');
        return true;
        
}

function ShowApprover()
{
        document.forms[0].lovKey.value = "LnAppApproverNo" + "HrmLnAppForm" + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpLoanAppln.employeeNumber,hrm.HrmEmpLoanAppln.employeeName";
        document.forms[0].txtDisplayFields.value = "approverNoId,approverName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmLnAppForm');
        return true;
        
}
function doPayment()
{
    document.forms[0].buttonName.value="butBulkPayment";
    document.forms[0].mode.value="B";
    document.forms[0].action=contextRoot + "HrmLnAppValidateAction.do";
    document.forms[0].submit();
}
function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}
</script>
