<%@ 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" />
  <meta http-equiv=pragma content=no-cache>
</head>


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

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


<html:hidden property="detailDataChanged" name="HrmPersonalDtlsForm" />
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmEmpPersonalDetails.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 --> 

<TABLE cellSpacing=0 cellPadding=0 border=0 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!--Application Header Starts -->
              <TR>
                    <TD class=subHeader colspan=6><bean:message key="hrm.HrmEmpPersonalDetails.subHeader1" /></TD>
              </TR>
              <TR>
                    <TD colspan=6 bgColor=#4682b4><enrgise:img name="HrmPersonalDtlsForm" property="photo" height="1" src="../includes/images/photo.gif" width="1" border="0" /></TD>
              </TR>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.employeeNo" /></td>
                  <td><html:text  property="employeeNo" alt="N" titleKey="hrm.HrmEmpPersonalDetails.employeeNo" maxlength="10" size="23" styleClass="required" onchange="doChangeHeader();" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm"  property="butEmployeeNo" onclick="return ShowEmployeeNo()" /></td>              
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.draftFlag" /></td>
                  <td><enrgise:checkbox property="draftFlag"  name="HrmPersonalDtlsForm"  styleClass="optional" disabledClass="locked" /></td>
                  
              </tr>
             <tr>
                  <td class="labelText"></td>
                  <td></td>
                  <td class="labelText"></td>
                  <td></td>
                  <td colspan=2> </td>
                  <td width=12%></td>
              </tr>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.employeeName" /></td>
                  <td colspan="3"><enrgise:text  property="firstName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.firstName" maxlength="100" size="37" styleClass="required" disabledClass="required" onchange="doChangeHeader();" onkeypress="isName(event)"  /><enrgise:text  property="middleName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.middleName" maxlength="100" size="37" styleClass="optional" disabledClass="optional" onchange="doChangeHeader();" onkeypress="isName(event)" />
                  <enrgise:text  property="lastName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.lastName" maxlength="100" size="37" styleClass="required" disabledClass="required" onchange="doChangeHeader();"  onkeypress="isName(event)"  /></td> 
                  <td> </td>                
              </tr>
              <tr height="30">
                    <td colspan="6"></td>
             </tr>
              
         </table>
      
  
         <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
 	 <TR>
       <TD colspan=6>
        <!-- Personal Details Table Starts -->
         <TABLE cellSpacing=0 cellPadding=0 >
           <tr>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPersDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersDtls','HrmEmpPersPriorExpGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.personalDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAddDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAddDtls','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.address" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabJoiningInfo" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersJoinInf','HrmEmpPersPriorExpGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.joiningInfo" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabEmpHist" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersEmpHst','HrmEmpPersPriorExpGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.employeeHistory" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPriorExp" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2" ><bean:message key="hrm.HrmEmpPersonalDetails.priorExperience" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabEduDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersEduDtls','HrmEmpPersPriorExpGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.educationDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPFDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"      rows="2" onclick= "doGetTab('HrmEmpPersPFDtls','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.pFDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabTrngDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersTrngDtls','HrmEmpPersPriorExpGetTabAction.do')" ><bean:message key="hrm.HrmEmpPersonalDetails.trainingDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAwardDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAward','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.awardDtls" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabInsDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersIns','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.insDtls" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabHealth" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersHealth','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.health" /></enrgise:tab>
                <!--<enrgise:tab name="HrmEmpPersDtlsForm" property="tabLng" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmPersLngDtls','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.languageDtls" /></enrgise:tab>-->
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabRef" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersRef','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.refDtls" /></enrgise:tab>
                
                
                 <!--Added By SUBHAM For New Requirement Of Asset Details Tab -->
                
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAsset" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAsset','HrmEmpPersPriorExpGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.assetDtls" /></enrgise:tab>
                
                
                <td width="50%"> </td>
             
     
          </tr>                  
                
          <TR >
 <!-- Detail table Container starts -->
              <TD colspan=40>
                <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                   <TR>
                     <TD >
                       <DIV id=divDtlTable style="height:270px;width:1010px" >
  		           	<!-- Detail table starts -->
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                          <tr>
                              <TD class=tableHeader width="1%"><html:checkbox property="selectAll" /></TD>
                              <TD class=tableHeader width="4%" ><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.orgName" /></td>
                              <TD class=tableHeader width="3%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.orgAdd" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.fromDate" /></td>
                              <TD class=tableHeader width="4%"><bean:message key="hrm.HrmEmpPersonalDetailsPriorExp.toDate" /></td>
                              <TD class=tableHeader width="4%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.workExp" /></td>
                              <TD class=tableHeader width="4%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.designation" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.reportTo" /></td>
                              <TD class=tableHeader width="3%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.jobDescription" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmEmpPersonalDetailsPriorExp.personnelSupervised" /></td>
                              <TD class=tableHeader width="2%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.salaryStarting" /></td>
                              <TD class=tableHeader width="2%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.salaryLeaving" /></td>
                              <TD class=tableHeader width="2%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.basic" /></td>
                              <TD class=tableHeader width="2%"><bean:message  key="hrm.HrmEmpPersonalDetailsPriorExp.da" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmEmpPersonalDetailsPriorExp.hra" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmEmpPersonalDetailsPriorExp.conveyance" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmEmpPersonalDetailsPriorExp.otherAllowance" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmEmpPersonalDetailsPriorExp.incentives" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmEmpPersonalDetailsPriorExp.bonus" /></td>
                       
                          </tr>
                          <logic:iterate id="HrmPersDtlsPrior" name="HrmPersonalDtlsForm" property="arrEmpPersDtlPriorExp" type="wenrgise.hrms.bean.HrmEmpPersPriorExpDtlBean" indexId="idx" >
                           <logic:notEqual name="HrmPersDtlsPrior" property="status" value="D" >
                             <tr>
                              <TD class=tableText width="1%">
                                <html:hidden property="status"  name="HrmPersDtlsPrior" />
                                <html:hidden property="detailId"  name="HrmPersDtlsPrior"  />
                                <html:checkbox property="checked"  name="HrmPersonalDtlsForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                <html:hidden property="itemChecked" name="HrmPersDtlsPrior" />
                                
                              </TD>
                              <TD class=tableText ><enrgise:text property="txtOrgName" name="HrmPersDtlsPrior"  styleClass="required" maxlength="60" disabledClass="locked"   size="30" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><enrgise:text property="txtOrgAdd" name="HrmPersDtlsPrior"  styleClass="required" disabledClass="locked" maxlength="60" size="30" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><enrgise:text property="txtFromDate" name="HrmPersDtlsPrior" onkeypress="isNumber(event)"   maxlength="6" styleClass="required" disabledClass="locked"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><enrgise:text property="txtToDate" name="HrmPersDtlsPrior" onkeypress="isNumber(event)"   maxlength="6" styleClass="required" disabledClass="locked"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text property="txtWorkExp" name="HrmPersDtlsPrior" onkeypress="isInteger(event)" maxlength="5"  styleClass="locked" size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><enrgise:text property="txtDesignation" name="HrmPersDtlsPrior"  maxlength="40" styleClass="optional" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtReportTo" name="HrmPersDtlsPrior"  maxlength="40" styleClass="optional" disabledClass="locked"   size="12" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><enrgise:text property="txtJobDesc" name="HrmPersDtlsPrior"  maxlength="100" styleClass="optional" disabledClass="locked"   size="40" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><enrgise:text property="txtPersonnelSupervised" name="HrmPersDtlsPrior"  maxlength="6" styleClass="optional" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtSalStarting" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtSalLeaving" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtBasic" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtDa" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtHra" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtConveyance" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtOtherAllowance" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtIncentives" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                              <TD class=tableText ><enrgise:text property="txtBonus" name="HrmPersDtlsPrior"  styleClass="optional" maxlength="15" disabledClass="locked"   size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>  
                                                                
                            </tr>
                           </logic:notEqual> 
                           <logic:equal name="HrmPersDtlsPrior" property="status" value="D"  >
                               <tr>
                              <TD class=tableText width="1%">
                                <html:hidden property="status"  name="HrmPersDtlsPrior" />
                                <html:hidden property="detailId"  name="HrmPersDtlsPrior"  />
                                <html:checkbox property="checked" value="check" disabled="true"   alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                <html:hidden property="itemChecked" name="HrmPersDtlsPrior" />
                                
                              </TD>
                              <TD class=tableText ><html:text property="txtOrgName" name="HrmPersDtlsPrior"  styleClass="deletedRow"   maxlength="50"  size="30" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtOrgAdd" name="HrmPersDtlsPrior"  styleClass="deletedRow"   maxlength="50"  size="30" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              
                              <TD class=tableText ><html:text property="txtFromDate" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="6"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtToDate" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="6"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtWorkExp" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="3"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtDesignation" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="50"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>  
                              <TD class=tableText ><html:text property="txtReportTo" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="50"  size="12" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtJobDesc" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="250"  size="40" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtPersonnelSupervised" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="5"  size="12" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtSalStarting" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="10"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>  
                              <TD class=tableText ><html:text property="txtSalLeaving" name="HrmPersDtlsPrior"    styleClass="deletedRow"  maxlength="10"  size="8" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtBasic" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="9"  size="9" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtDa" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="9"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtHra" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="5"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtConveyance" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="5"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtOtherAllowance" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="250"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                              <TD class=tableText ><html:text property="txtIncentives" name="HrmPersDtlsPrior"  styleClass="deletedRow" size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>  
                              <TD class=tableText ><html:text property="txtBonus" name="HrmPersDtlsPrior"  styleClass="deletedRow"  maxlength="5"  size="12" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                            
                            </tr>
                           </logic:equal>
                           
                       </logic:iterate>  
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
  
  <!-- Get details starts -->
                          <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&nbsp;De<u>t</u>ail&nbsp;</enrgise:button> <enrgise:button altKey="wenrgise.common.addRow" name="ParentForm"  onclick="doBaseAddRow()" property="butAddRow"  styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</enrgise:button><enrgise:button altKey="wenrgise.common.delRow" name="ParentForm" onclick="doBaseDelRow()"
                              property="butDelRow" styleClass="bottomBarText" ><u>D</u>elete Row</enrgise:button></TD>
                              <td width=43%></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>		     
                              <td width="11%"></td>
                            </TR>
                          
                            </tbody>
                          </TABLE>

                              </TBODY>
                            </TABLE>
                          </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>
                        <tr height="20">
                        <td width=43% align=center bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                        <td bgColor=#4682b4><enrgise:button name="HrmPersonalDtlsForm" property="butDraftSave"  onclick="return doDraftSave();"  ><u>D</u>raft<u></u> Save</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>

<!-- Container Table Ends -->
<!-- Common Hidden Variables-->
<html:hidden name="HrmPersonalDtlsForm" property="screenName" value="HrmEmpPersPriorExp" />
<html:hidden name="HrmPersonalDtlsForm" property="forwardedPage" />
<html:hidden name="HrmPersonalDtlsForm" property="positionRequested" />
<html:hidden name="HrmPersonalDtlsForm" property="screenMode" />

<html:hidden property="txtIndex" name="HrmPersonalDtlsForm"  />
<html:hidden property="userPageRequested" name="HrmPersonalDtlsForm" />
<html:hidden property="userPositionRequested"  name="HrmPersonalDtlsForm" />
<html:hidden property="pageRequested"  name="HrmPersonalDtlsForm" />
<html:hidden property="selectAll" value="check" name="HrmPersonalDtlsForm" />

<html:hidden property="lovKey" name="HrmPersonalDtlsForm"  />
<html:hidden property="txtSearchFields" name="HrmPersonalDtlsForm"  />
<html:hidden property="txtDisplayFields" name="HrmPersonalDtlsForm"  />
<html:hidden property="headerPrimaryKey" name="HrmPersonalDtlsForm" />
<html:hidden property="headerDataChanged" name="HrmPersonalDtlsForm" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<html:hidden property="firstLoad" name="HrmPersonalDtlsForm" />

<!-- Screen Specific variables -->
<html:hidden property="empNumberId" name="HrmPersonalDtlsForm"  />
<html:hidden property="empId" name="HrmPersonalDtlsForm" />
<html:hidden property="draftSave" name="HrmPersonalDtlsForm"  />
<!-- Hidden fields end -->
</html:form>
</body>
</html:html>

<script language="javascript">
function doDraftSave()
{
 document.getElementsByName("draftSave")[0].value="true";
 return doBaseSave();
}
function doChangeHeader()
{
 document.getElementsByName("headerDataChanged")[0].value="true"; 
 //document.forms[0].headerDataChanged.value="true";
}

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


function doInsertMode()
{

  return "HrmEmpPersDtlsPriorNewModeAction.do";
}


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

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

function doDelete()
{

  return "HrmEmpPersDtlsPriorDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmEmpPersDtlsPriorRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

  return "HrmEmpPersDtlsPriorAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmEmpPersDtlsPriorBatch";
}

function doPrevDetail()
{

  return "HrmEmpPersDtlsPriorGetDetailPageAction.do";  
}

function doNextDetail()
{

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

  return "HrmEmpPersDtlsPriorExitAction.do";
}

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


function doGetInsertData()
{

}
function ShowEmployeeNo()
{
        document.forms[0].queryParam.value ="employeeId="+ document.forms[0].empId.value ;
        document.forms[0].lovKey.value = "PersDtlsPriorExpEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsPriorExp.employeeNo,hrm.HrmEmpPersonalDetailsAddress.name";
        document.forms[0].txtDisplayFields.value = "empNumberId,employeeNo,firstName,middleName,lastName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowPriorExpSkillCode(i)
{
        document.forms[0].lovKey.value = "PersDtlsPriorExpSkillCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsPriorExp.skillCode,hrm.HrmEmpPersonalDetailsPriorExp.skillDescription";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "skillSrlNo,txtSkillCode,skillDesc";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
}
function ShowPriorExpDesgCode(i)
{
        document.forms[0].lovKey.value = "PersDtlsPriorExpDesgCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsPriorExp.desgCode,hrm.HrmEmpPersonalDetailsPriorExp.desgDescription";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "desgId,txtDesgCode,txtDesgn";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
}
function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}
</script>    