<%@ 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="HrmEmpPersDtlsBaseAction" type="wenrgise.hrms.webtier.form.HrmEmpPersDtlForm">
<bean:define id="ParentForm" name="HrmPersonalDtlsForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />

<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmEmpPersonalDetailsAddress.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.HrmEmpPersonalDetailsAddress.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.HrmEmpPersonalDetailsAddress.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.HrmEmpPersonalDetailsAddress.draftFlag" /></td>
                  <td><enrgise:checkbox property="draftFlag"  name="HrmPersonalDtlsForm"  styleClass="locked" disabledClass="required" /></td>
                  
              </tr>
              <tr>
                  <td class="labelText"></td>
                  <td></td>
                  <td class="labelText"></td>
                  <td></td>
                  <td colspan=2> </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="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2" ><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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.employeeHistory" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPriorExp" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersPriorExp','HrmEmpPersGetTabAction.do')"><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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.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('HrmEmpPersLng','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.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','HrmEmpPersGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.assetDtls" /></enrgise:tab>
                
                
                <td width="45%"> </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" >
                       <!-- Detail table starts -->
                  
                     
                   
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                         <tr>
                              <td class=tableHeader height="20" colspan="6"></td>
                         </tr> 
                         
                         <bean:define id="hrmEmpPers" name="HrmPersonalDtlsForm" property="hrmEmpPersDtl" type="wenrgise.hrms.bean.HrmEmpPersDtlsBean"  />
                        
                         <TR>
                          
                          <html:hidden property="status"  name="hrmEmpPers" />
                          <html:hidden property="detailId"  name="hrmEmpPers" />
                          <html:hidden property="itemChecked" name="hrmEmpPers" />
                          <html:hidden  property="selectAll" />
                          
                          <html:hidden property="code" name="hrmEmpPers"  />
                          <html:hidden property="incrementDate" name="hrmEmpPers"  />
                          <html:hidden property="nationalityId" name="hrmEmpPers"  />
                          <html:hidden property="nationalityCode" name="hrmEmpPers"  />
                          <html:hidden property="gradeId" name="hrmEmpPers"  />
                          <html:hidden property="gradeCode" name="hrmEmpPers"  />
                          <html:hidden property="designationId" name="hrmEmpPers"  />
                          <html:hidden property="dsgnCode" name="hrmEmpPers"  />
                          <html:hidden property="departmentId" name="hrmEmpPers"  />
                          <html:hidden property="deptCode" name="hrmEmpPers"  />
                          <html:hidden property="locationId" name="hrmEmpPers"  />
                          <html:hidden property="locationCode" name="hrmEmpPers"  />
                          <html:hidden property="maritalCode" name="hrmEmpPers"  />
                          <html:hidden property="maritalId" name="hrmEmpPers"  />
                          <html:hidden property="religionId" name="hrmEmpPers"  />
                          <html:hidden property="motherTongueCode" name="hrmEmpPers"  />
                          <html:hidden property="motherTongueId" name="hrmEmpPers"  />
                          <html:hidden property="reportingEmpId" name="hrmEmpPers"  />
                          <html:hidden property="socialStatusId" name="hrmEmpPers"  />
                          <html:hidden property="socialCode" name="hrmEmpPers"  />
                          <html:hidden property="relatedEmpId" name="hrmEmpPers"  />
                          <html:hidden property="level" name="hrmEmpPers"  />
                          
                         <TD class=subHeader colspan=6>Attribute Details</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.HrmEmpPersonalDetails.grade" /></td>
                              <td><html:text  property="grade" alt="A" name="hrmEmpPers"   titleKey="hrm.HrmEmpPersonalDetails.grade" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butGrade" onclick="return ShowGrade(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.designation" /></td>
                              <td><html:text  property="designation" alt="A" name="hrmEmpPers"   titleKey="hrm.HrmEmpPersonalDetails.designation" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butDesignation" onclick="return ShowDesignation(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.department" /></td>
                              <td><html:text  property="department" alt="A" name="hrmEmpPers"   titleKey="hrm.HrmEmpPersonalDetails.department" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butDepartment" onclick="return ShowDepartment(0)" /></td>              
                         </tr> 
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.location" /></td>
                              <td><html:text  property="location" alt="A" name="hrmEmpPers"   titleKey="hrm.HrmEmpPersonalDetails.location" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butLocation" onclick="return ShowLocation(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.locJoiningDate" /></td>
                              <td><html:text  property="locJoiningDate" name="hrmEmpPers"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.locJoiningDate" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butLocJoiningDate"   onclick="showCalendar('locJoiningDate',this)" /></td>             
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.sex" /></td>
                              <td><enrgise:select property="sex" alt="sex" name="hrmEmpPers" formName="HrmPersonalDtlsForm" styleClass="required" disabledClass="required" onchange="doChangeDetail(0)"  >
                                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                    <enrgise:option value="M" > <bean:message key="hrm.HrmEmpPersonalDetails.male" /></enrgise:option>
                                    <enrgise:option value="F" > <bean:message key="hrm.HrmEmpPersonalDetails.female" /></enrgise:option>
                                  </enrgise:select></td> 
                         </tr> 
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.guardianName" /></td>
                              <td><enrgise:text  property="guardianName" name="hrmEmpPers" onkeypress="isName(event)" formName="HrmPersonalDtlsForm"   alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.guardianName" maxlength="100" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.dateOfBirth" /></td>
                              <td><html:text  property="dateOfBirth" name="hrmEmpPers"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.dateOfBirth" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butDateOfBirth"   onclick="showCalendar('dateOfBirth',this)" /></td>             
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.placeOfBirth" /></td>
                              <td><enrgise:text  property="placeOfBirth" name="hrmEmpPers" onkeypress="isName(event)" formName="HrmPersonalDtlsForm"  alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.placeOfBirth" maxlength="60" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                         </tr>
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.motherName" /></td>
                              <td><enrgise:text  property="motherName" name="hrmEmpPers" onkeypress="isName(event)" formName="HrmPersonalDtlsForm"   alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.motherName" maxlength="60" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.anniversaryDate" /></td>
                              <td><html:text  property="anniversaryDate" alt="D" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.anniversaryDate" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butAnniversaryDate"   onclick="showCalendar('anniversaryDate',this)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.SCSMemershipNo" /></td>
                              <td><enrgise:text  property="scsmemershipNo" name="hrmEmpPers" alt="N" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.SCSMemershipNo" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                        </tr>  
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.clubMembership" /></td>
                              <td><enrgise:text  property="clubMembership" name="hrmEmpPers" alt="N" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.clubMembership" maxlength="30" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.gunLicenseNo" /></td>
                              <td><enrgise:text  property="gunLicenseNo" name="hrmEmpPers" alt="N" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.gunLicenseNo" maxlength="100" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.gunLicenseRenDate" /></td>
                              <td><html:text  property="gunLicenseRenDate" alt="D" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.gunLicenseRenDate" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butGunLicenseRenDate"   onclick="showCalendar('gunLicenseRenDate',this)" /></td>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.nationality" /></td>
                              <td><html:text  property="nationality" name="hrmEmpPers"  alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.nationality" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm"  property="butNationality" onclick="return ShowNationality(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.bloodGroup" /></td>
                              <td><enrgise:select property="bloodGroup" name="hrmEmpPers"  alt="bloodGroup"  styleClass="optional" formName="HrmPersonalDtlsForm"  disabledClass="locked" onchange="doChangeDetail(0)"  >
                                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                    <enrgise:option value="A+" > <bean:message key="hrm.HrmEmpPersonalDetails.A+" /></enrgise:option>
                                    <enrgise:option value="A-" > <bean:message key="hrm.HrmEmpPersonalDetails.A-" /></enrgise:option>
                                    <enrgise:option value="B+" > <bean:message key="hrm.HrmEmpPersonalDetails.B+" /></enrgise:option>
                                    <enrgise:option value="B-" > <bean:message key="hrm.HrmEmpPersonalDetails.B-" /></enrgise:option>
                                    <enrgise:option value="AB+" > <bean:message key="hrm.HrmEmpPersonalDetails.AB+" /></enrgise:option>
                                    <enrgise:option value="AB-" > <bean:message key="hrm.HrmEmpPersonalDetails.AB-" /></enrgise:option>
                                    <enrgise:option value="O+" > <bean:message key="hrm.HrmEmpPersonalDetails.O+" /></enrgise:option>
                                    <enrgise:option value="O-" > <bean:message key="hrm.HrmEmpPersonalDetails.O-" /></enrgise:option>
                                  </enrgise:select></td> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.idMark" /></td>
                              <td><enrgise:text  property="idMark" name="hrmEmpPers" onkeypress="isName(event)"  formName="HrmPersonalDtlsForm"  alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.idMark" maxlength="100" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                          </tr>
                          <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.mobile" /></td>
                              <td><enrgise:text  property="mobile" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.mobile" maxlength="12" size="26" styleClass="optional" onchange="doChangeDetail(0)" onkeypress="isNumber(event)" disabledClass="locked" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.personalEmail" /></td>
                              <td><enrgise:text  property="personalEmail" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.personalEmail" maxlength="100" size="26" styleClass="optional" onchange="doChangeDetail(0)" onmouseover="this.title=this.value" disabledClass="locked" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.handicappedFlag" /></td>
                              <td><enrgise:select property="handicappedFlag" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  alt="handicappedFlag" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)"  >
                                    <enrgise:option value="N" > <bean:message key="hrm.no" /></enrgise:option>
                                    <enrgise:option value="Y" > <bean:message key="hrm.yes" /></enrgise:option>
                                  </enrgise:select></td> 
                         </tr> 
                          <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.religion" /></td>
                              <td><html:text  property="religion" alt="A" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.religion" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butReligion" onclick="return ShowReligion(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.motherTongue" /></td>
                              <td><html:text  property="motherTongue" name="hrmEmpPers"  alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.motherTongue" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butMotherTongue" onclick="return ShowMotherTongue(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.dependants" /></td>
                              <td><html:text  property="dependants" name="hrmEmpPers" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.dependants" maxlength="20" size="26" styleClass="locked" readonly="true" /></td>              
                         </tr>
                         
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.reportingHead" /></td>
                              <td><html:text  property="reportingEmployee" alt="A" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.reportingHead" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16"  align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butReportingEmployee" onclick="return ShowReportingEmployee(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.lastPromotionDate" /></td>
                              <td><html:text  property="lastPromotionDate" name="hrmEmpPers"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.lastPromotionDate" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butLastPromotionDate"   onclick="showCalendar('lastPromotionDate',this)" /></td>             
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.rsvCtg" /></td>
                              <td><html:text  property="rsvCtg" alt="A" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.rsvCtg" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg"  name="HrmPersonalDtlsForm" property="butRsvCtg"  onclick="return ShowSocialStatus(0)" /></td>              
                         </tr>
                         <tr>  
                             <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.panNumber" /></td>
                             <td><enrgise:text  property="panNumber" alt="N" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.panNumber" maxlength="10" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                             <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.pfNumber" /></td>
                             <td><enrgise:text  property="pfNumber" alt="N" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.pfNumber" maxlength="10" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                             <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.girNumber" /></td>
                             <td><enrgise:text  property="girNumber" alt="N" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.girNumber" maxlength="10" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                        </tr>
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.passportNo" /></td>
                              <td><enrgise:text  property="passportNo" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.passportNo" maxlength="10" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.passportIssueDate" /></td>
                              <td><html:text  property="passportIssueDate" name="hrmEmpPers"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.passportIssueDate" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butPassportIssueDate"   onclick="showCalendar('passportIssueDate',this)" /></td>             
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.drivingLicenseNo" /></td>
                              <td><enrgise:text  property="drivingLicenseNo" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.drivingLicenseNo" maxlength="10" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                         </tr> 
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.placeOfIssue" /></td>
                              <td><enrgise:text  property="placeOfIssue" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.placeOfIssue" size="26" maxlength="20" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.passportExpDate" /></td>
                              <td><html:text  property="passportExpDate" name="hrmEmpPers"  alt="D" titleKey="hrm.HrmEmpPersonalDetails.passportExpDate" size="23" styleClass="optional" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butPassportExpDate" onclick="showCalendar('passportExpDate',this)" /></td>             
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.validUpto" /></td>
                              <td><html:text  property="validUpto" alt="A" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.validUpto" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmPersonalDtlsForm" property="butValidUpto"  onclick="showCalendar('validUpto',this)" /></td>             
                         </tr> 
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.maritalStatus" /></td>
                              <td><html:text  property="maritalStatus" alt="A" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.maritalStatus" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm" property="butMaritalStatus" onclick="return ShowMaritalStatus(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.spouseName" /></td>
                              <td><enrgise:text  property="spouseName" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.spouseName" maxlength="100" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.spouseOccupation" /></td>
                              <td><enrgise:text  property="spouseOccupation" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.spouseOccupation" maxlength="100" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                         </tr> 
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.spouseOrganization" /></td>
                              <td><enrgise:text  property="spouseOrganization" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.spouseOrganization" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.spOrgType" /></td>
                              <td><enrgise:select property="spOrgType" name="hrmEmpPers"  alt="spOrgType"  styleClass="optional" formName="HrmPersonalDtlsForm"  disabledClass="locked" onchange="doChangeDetail(0)"  >
                                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                    <enrgise:option value="State Govt." > <bean:message key="hrm.HrmEmpPersonalDetails.stateGovt" /></enrgise:option>
                                    <enrgise:option value="Central Govt." > <bean:message key="hrm.HrmEmpPersonalDetails.centralGovt" /></enrgise:option>
                                    <enrgise:option value="Public Sector" > <bean:message key="hrm.HrmEmpPersonalDetails.publicSector" /></enrgise:option>
                                    <enrgise:option value="Private Sector" > <bean:message key="hrm.HrmEmpPersonalDetails.privateSector" /></enrgise:option>
                                    <enrgise:option value="Local Body" > <bean:message key="hrm.HrmEmpPersonalDetails.localBody" /></enrgise:option>
                                    <enrgise:option value="Own" > <bean:message key="hrm.HrmEmpPersonalDetails.own" /></enrgise:option>
                                  </enrgise:select></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.spTransferable" /></td>
                              <td><enrgise:select property="spTransferable" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  alt="spTransferable" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)"  >
                                    <enrgise:option value="N" > <bean:message key="hrm.no" /></enrgise:option>
                                    <enrgise:option value="Y" > <bean:message key="hrm.yes" /></enrgise:option>
                                  </enrgise:select></td>
                         </tr>
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.unionInfo" /></td>
                              <td><enrgise:text  property="unionInfo" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.unionInfo" maxlength="50" size="25" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                         </tr> 
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.relatedToEmployee" /></td>
                              <td><enrgise:checkbox  property="relatedToEmployee" alt="A" formName="HrmPersonalDtlsForm" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.relatedToEmployee" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)"/><html:hidden property="relatedToEmployee" name="hrmEmpPers" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.relatedEmployee" /></td>
                              <td><html:text  property="relatedEmployee" alt="A" name="hrmEmpPers" titleKey="hrm.HrmEmpPersonalDetails.relatedEmployee" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm"  property="butRelatedEmployee" onclick="return ShowRelatedEmployee(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.flat" /></td>
                              <td><enrgise:checkbox  property="flat" alt="A" formName="HrmPersonalDtlsForm" name="hrmEmpPers"  titleKey="hrm.HrmEmpPersonalDetails.flat" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)"/><html:hidden property="flat" name="hrmEmpPers" /></td>
                         </tr>
                         
                          <!-- For UAN & Aadhar No. -->
                         <tr> 
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.uanInfo" /></td>
                              <td><enrgise:text  property="uanInfo" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.uanInfo" maxlength="12" size="26" styleClass="optional" disabledClass="locked" onkeypress="isNumber(event)" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.aadharInfo" /></td>
                              <td><enrgise:text  property="aadharInfo" alt="A" name="hrmEmpPers" formName="HrmPersonalDtlsForm"  titleKey="hrm.HrmEmpPersonalDetails.aadharInfo" maxlength="12" size="26" styleClass="optional" disabledClass="locked" onkeypress="isNumber(event)" onchange="doChangeDetail(0)" /></td>
                         </tr> 
                          
                          <!-- For UAN & Aadhar No. Ends here -->

                         <html:hidden property="email" name="hrmEmpPers" />
                                                       
                     </TBODY>
                    </TABLE>
                    
                  </DIV>
                </TD>
              </TR>                     
  
              <!-- Get details starts -->
                     <TABLE border=0>
                        <tbody>
                         <tr>
                          <td colspan=11>	
                          <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"  disabled="true" property="butAddRow"  styleClass="bottomBarText">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</enrgise:button><enrgise:button altKey="wenrgise.common.delRow" name="ParentForm" disabled="true"
                                  property="butDelRow" styleClass="bottomBarText" ><u>D</u>elete Row</enrgise: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>
                      </tr>
                      
                    </tbody>
                   </TABLE>
             
                  </TBODY>
                </TABLE>
              </td>
            </tr>



        </TABLE>
     </td>
	 </tr>
 
   <!-- Bottom Blue Bar -->
       <TR>
            <td>
               <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr height="20">
                        <td width=45% 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="HrmEmpPersDtls" />
<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" />
<html:hidden property="detailDataChanged" name="HrmPersonalDtlsForm" />

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

<!-- Screen Specific variables -->
<html:hidden property="empNumberId" name="HrmPersonalDtlsForm"  />
<html:hidden property="draftSave" name="HrmPersonalDtlsForm"  />
<html:hidden property="empId" name="HrmPersonalDtlsForm" />

<!-- Hidden fields end --> 


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

<script language="javascript">
function doDraftSave()
{
 document.getElementsByName("draftSave")[0].value="true";
 return doBaseSave();
}
function doCheckInitialise(elem, i)
{
  i=i*2;
  
  
  if(elem.checked){
     
    document.getElementsByName(elem.name)[i+1].value="on";
     
  }
  else{
    document.getElementsByName(elem.name)[i+1].value="off";
       }
}

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

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


function doInsertMode()
{

  return "HrmEmpPersDtlsNewModeAction.do";
}


function doExecute()
{
   document.getElementsByName("mode").value="Y";
   //HrmPersonalDtlsForm.mode.value="true";
   return "HrmEmpPersDtlsGetHeaderAction.do";
}

function doSave()
{
  document.getElementsByName("headerDataChanged")[0].value="Y";
  //HrmPersonalDtlsForm.headerDataChanged.value="Y";
  return "HrmEmpPersDtlsSaveAction.do";
  
}

function doDelete()
{

  return "HrmEmpPersDtlsDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmEmpPersDtlsRefreshAction.do";
  
}

function doPrevHeader()
{
  return "HrmEmpPersDtlsGetNextHeaderAction.do"; 
}
function doExit()
{
  return "HrmEmpPersDtlsExitAction.do"; 
}
function doNextHeader()
{
  return "HrmEmpPersDtlsGetNextHeaderAction.do"; 
}

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

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


function doAddRow()
{

  return "HrmEmpPersDtlsAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmEmpPersDtlsBatch";
}

function doPrevDetail()
{

  return "HrmEmpPersDtlsGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmEmpPersDtlsGetDetailPageAction.do";
}

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


function doGetInsertData()
{

}





function doGetPhoto()
{
  //document.forms[0].action=contextRoot + "";
  //document.forms[0].submit();
  
}
function ShowEmployeeNo()
{
        document.forms[0].queryParam.value ="employeeId="+ document.forms[0].empId.value ;
        document.forms[0].lovKey.value= "PersDtlsEmpNoHrmEmpPersDtlsQ";
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.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 ShowGrade(i)
{
        document.forms[0].lovKey.value = "PersDtlsGrade" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.code,hrm.HrmEmpPersonalDetails.desc,hrm.HrmEmpPersonalDetails.level";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "gradeId,gradeCode,grade,level";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowDepartment(i)
{
        document.forms[0].lovKey.value = "PersDtlsDept" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.departmentCode,hrm.HrmEmpPersonalDetails.departmentDescription";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "departmentId,deptCode,department,level";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowDesignation(i)
{
        document.forms[0].lovKey.value = "PersDtlsDesgn" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.code,hrm.HrmEmpPersonalDetails.desc,hrm.HrmEmpPersonalDetails.level";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "designationId,dsgnCode,designation,level";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowLocation(i)
{
        document.forms[0].lovKey.value = "PersDtlsLocation" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.code,hrm.HrmEmpPersonalDetailsJoinInf.siteName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "locationId,locationCode,location";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowNationality(i)
{
        document.forms[0].lovKey.value = "PersDtlsNat" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.code,hrm.HrmEmpPersonalDetails.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "nationalityId,nationalityCode,nationality";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowReligion(i)
{
        document.forms[0].lovKey.value = "PersDtlsReligion" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.religion";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "religionId,religion";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowMotherTongue(i)
{
        document.forms[0].lovKey.value = "PersDtlsMotTong" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.code,hrm.HrmEmpPersonalDetails.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "motherTongueId,motherTongueCode,motherTongue";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}


function ShowMaritalStatus(i)
{
        document.forms[0].lovKey.value = "PersDtlsMarital" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.code,hrm.HrmEmpPersonalDetails.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "maritalId,maritalCode,maritalStatus";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowSocialStatus(i)
{
        document.forms[0].lovKey.value = "PersDtlsSocialStatus" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.code,hrm.HrmEmpPersonalDetails.desc,hrm.HrmEmpPersonalDetails.level";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "socialStatusId,socialCode,rsvCtg";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}


function ShowReportingEmployee(i)
{
        document.forms[0].lovKey.value = "PersDtlsReptEmployeeNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.employeeNo,hrm.HrmEmpPersonalDetails.employeeName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "reportingEmpId,reportingEmployee";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].queryParam.value="empNumberId="+ document.forms[0].empNumberId.value;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowRelatedEmployee(i)
{
        document.forms[0].lovKey.value = "PersDtlsRelatedEmp" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.employeeNo,hrm.HrmEmpPersonalDetails.employeeName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "relatedEmpId,relatedEmployee";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}


function doOnChangeLov(lovName)
{
   if((lovName=="PersDtlsMaritalHrmEmpPersDtlsU"))
    {
      doBaseValidate();
    }
    if((lovName=="PersDtlsDeptHrmEmpPersDtlsU"))
    {
      doChangeDetail(0);
    }
    if((lovName=="PersDtlsDesgnHrmEmpPersDtlsU"))
    {
      doChangeDetail(0);
    }
    if((lovName=="PersDtlsRelatedEmpHrmEmpPersDtlsU"))
    {
      doChangeDetail(0);
    }
}
function doValidate(obj)
{
  return "HrmEmpPersDtlsValidateAction.do"; 
}
</script>  