<%@ 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="HrmEmpPersAddDtlsBaseAction" 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="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersDtls','HrmEmpPersAddGetTabAction.do')" ><bean:message key="hrm.HrmEmpPersonalDetails.personalDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAddDtls" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2"  ><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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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','HrmEmpPersAddGetTabAction.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_r.gif" rows="2" onclick= "doGetTab('HrmEmpPersAsset','HrmEmpPersAddGetTabAction.do')" ><bean:message key="hrm.HrmEmpPersonalDetails.assetDtls" /></enrgise:tab>
                
                <td width="50%"> </td>
                
          </tr>                  
          <TR >
              <!-- Detail table Container starts -->
              <TD colspan=37>
                <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="HrmPersAdd" name="HrmPersonalDtlsForm" property="hrmEmpPersDtlAdd" type="wenrgise.hrms.bean.HrmEmpPersAddDtlBean"  />
                       
                         <TR>
                               <TD class="subHeader" colspan="6">Office Address
                                <html:hidden property="status" name="HrmPersAdd" />
                                <html:hidden property="detailId"  name="HrmPersAdd" />
                                <html:hidden property="itemChecked" name="HrmPersAdd" />
                                <html:hidden property="checked"  name="HrmPersonalDtlsForm" />
                                <html:hidden property="stateId" name="HrmPersAdd"  />
                                <html:hidden property="stateCode" name="HrmPersAdd"  />
                                <html:hidden property="countryCode" name="HrmPersAdd"  />
                                <html:hidden property="countryId" name="HrmPersAdd"  />
                                <html:hidden property="districtId" name="HrmPersAdd"  />
                                <html:hidden property="districtCode" name="HrmPersAdd"  />
                                <html:hidden property="tehsilCode" name="HrmPersAdd"  />
                                <html:hidden property="tehsilId" name="HrmPersAdd"  />
                               
                               </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.address" /></td>
                              <td ><html:textarea  property="address"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.address" cols="28" rows="2" styleClass="required" onchange="doChangeDetail(0)" /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.city" /></td>
                              <td><enrgise:text  property="city"  name="HrmPersAdd"  onkeypress="isName(event)"  alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.city" maxlength="40" size="26" styleClass="required" disabledClass="required" onchange="doChangeDetail(0)" /></td>
                              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.pinCode" /></td>
                              <td><enrgise:text  property="pinCode"  onkeypress="isInteger(event)"  name="HrmPersAdd" alt="N" titleKey="hrm.HrmEmpPersonalDetailsAddress.pinCode" maxlength="6" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              
                              
                              
                        </tr>
                        <tr>
                              
                             <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.state" /></td>
                             <td><html:text  property="state"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.state" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butState"  onclick="return ShowState(0)" /></td>              
                             <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.country" /></td>
                             <td><html:text  property="country"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.country" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butCountry"  onclick="return ShowCountry(0)" /></td>
                             <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.district" /></td>
                             <td><html:text  property="district"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.district" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butDistrict"  onclick="return ShowDistrict(0)" /></td>
                                                                      
                             </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.phone" /></td>
                              <td ><enrgise:text  property="phone"  name="HrmPersAdd" alt="N"  onkeypress="isNumber(event)" titleKey="hrm.HrmEmpPersonalDetailsAddress.phone" maxlength="11" size="10" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" />
                              -<enrgise:text  property="extension"  name="HrmPersAdd" alt="N"  onkeypress="isNumber(event)" titleKey="hrm.HrmEmpPersonalDetailsAddress.extension" maxlength="4" size="4" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                        
                               <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.secPhone" /></td>
                              <td ><enrgise:text  property="secPhone"  name="HrmPersAdd" alt="N"  onkeypress="isNumber(event)" titleKey="hrm.HrmEmpPersonalDetailsAddress.secPhone" maxlength="11" size="10" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" />
                              -<enrgise:text  property="secExtension"  name="HrmPersAdd" alt="N" onkeypress="isNumber(event)"  titleKey="hrm.HrmEmpPersonalDetailsAddress.extension" maxlength="4" size="4" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.mobile" /></td>
                              <td><enrgise:text  property="mobileNo"  onkeypress="isInteger(event)"  name="HrmPersAdd" alt="N" titleKey="hrm.HrmEmpPersonalDetailsAddress.mobile" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                            
                        </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.email" /></td>
                              <td><enrgise:text  property="email"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.email" maxlength="100" size="23" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)"  /></td>              
                              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.fax" /></td>
                              <td><enrgise:text  property="fax"  name="HrmPersAdd" alt="N"  onkeypress="isNumber(event)" titleKey="hrm.HrmEmpPersonalDetailsAddress.fax" maxlength="11" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.tehsil" /></td>
                              <td><html:text  property="tehsil"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.tehsil" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butTehsil"  onclick="return ShowTehsil(0)" /></td>
                              
                         </tr>
                         <TR>
                                <TD class=subHeader colspan=6>Present Address</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.prAddress" /></td>
                              <td ><html:textarea  property="prAddress"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.prAddress" cols="28" rows="2" styleClass="required" onchange="doChangeDetail(0)" /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.prCity" /></td>
                              <td><enrgise:text  property="prCity"  name="HrmPersAdd" alt="A" onkeypress="isName(event)"  titleKey="hrm.HrmEmpPersonalDetailsAddress.prCity" maxlength="40" size="26" styleClass="required" disabledClass="required" onchange="doChangeDetail(0)" /></td>
                              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.prPinCode" /></td>
                              <td><enrgise:text  property="prPinCode"  name="HrmPersAdd"  onkeypress="isNumber(event)" alt="N" titleKey="hrm.HrmEmpPersonalDetailsAddress.prPinCode" maxlength="6" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              
                             
                             
                        </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.prState" /></td>
                              <td><html:text  property="prState"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.prState" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPrState" onclick="return ShowPrState(0)"  /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.prCountry" /></td>
                              <td><html:text  property="prCountry"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.prCountry" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPrCountry"   onclick="return ShowPrCountry(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.prPhone" /></td>
                              <td><enrgise:text  property="prPhone"  name="HrmPersAdd"  onkeypress="isNumber(event)" alt="N" titleKey="hrm.HrmEmpPersonalDetailsAddress.prPhone" maxlength="11" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              
                        </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.district" /></td>
                              <td><html:text  property="prDistrict"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.district" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPrDistrict"  onclick="return ShowPrDistrict(0)" /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.tehsil" /></td>
                              <td><html:text  property="prTehsil"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.tehsil" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPrTehsil"  onclick="return ShowPrTehsil(0)" /></td>
                        </tr>
                        
                        <TR>
                                <TD class=subHeader colspan=6>Permanent Address</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" >Same As Present Address</TD>
                                <td colspan=5 class="radioText" ><input type="checkbox" name="sameAs" onclick="doCheckAddress();" ></td>
                         </TR>
                          <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.peAddress" /></td>
                              <td ><html:textarea  property="peAddress"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.peAddress" cols="28" rows="2" styleClass="required" onchange="doChangeDetail(0)"  /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.peCity" /></td>
                              <td><enrgise:text  property="peCity"  name="HrmPersAdd" alt="A" onkeypress="isName(event)"  titleKey="hrm.HrmEmpPersonalDetailsAddress.peCity" maxlength="40" size="26" styleClass="required" disabledClass="required" onchange="doChangeDetail(0)" /></td>
                              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.pePinCode" /></td>
                              <td><enrgise:text  property="pePinCode"  name="HrmPersAdd" alt="N" onkeypress="isNumber(event)"  titleKey="hrm.HrmEmpPersonalDetailsAddress.pePinCode" maxlength="6" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              
                              
                             
                        </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.peState" /></td>
                              <td><html:text  property="peState"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.peState" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPeState" onclick="return ShowPeState(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.peCountry" /></td>
                              <td><html:text  property="peCountry"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.peCountry" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPeCountry"  onclick="return ShowPeCountry(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.pePhone" /></td>
                              <td><enrgise:text  property="pePhone"  name="HrmPersAdd" alt="N" onkeypress="isNumber(event)"  titleKey="hrm.HrmEmpPersonalDetailsAddress.pePhone" maxlength="11" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              
                        </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.district" /></td>
                              <td><html:text  property="peDistrict"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.district" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPeDistrict"  onclick="return ShowPeDistrict(0)" /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.tehsil" /></td>
                              <td><html:text  property="peTehsil"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.tehsil" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butPeTehsil"  onclick="return ShowPeTehsil(0)" /></td>
                        </tr>
                        
                         <TR>
                                <TD class=subHeader colspan=6>Home Town Address</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" >Same As Permanent Address</TD>
                                <td colspan=5 class="radioText" ><input type="checkbox" name="sameAsPerAdd" onclick="doSamePermAddress();" ></td>
                         </TR>
                          <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.htAddress" /></td>
                              <td ><html:textarea  property="htAddress"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.htAddress" cols="28" rows="2" styleClass="required" onchange="doChangeDetail(0)"  /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.htCity" /></td>
                              <td><enrgise:text  property="htCity"  name="HrmPersAdd" alt="A" onkeypress="isName(event)"  titleKey="hrm.HrmEmpPersonalDetailsAddress.htCity" maxlength="40" size="26" styleClass="required" disabledClass="required" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.htPinCode" /></td>
                              <td><enrgise:text  property="htPinCode"  onkeypress="isNumber(event)"  name="HrmPersAdd" alt="N" titleKey="hrm.HrmEmpPersonalDetailsAddress.htPinCode" maxlength="10" size="26" styleClass="optional" disabledClass="optional" onchange="doChangeDetail(0)" /></td>
                              
                              
                        </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.htState" /></td>
                              <td><html:text  property="htState"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.htState" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butHtState" onclick="return ShowHtState(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.htCountry" /></td>
                              <td><html:text  property="htCountry"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.htCountry" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true"  /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butHtCountry"  onclick="return ShowHtCountry(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.htPhone" /></td>
                              <td><enrgise:text  property="htPhone"  onkeypress="isNumber(event)"  name="HrmPersAdd" alt="N" titleKey="hrm.HrmEmpPersonalDetailsAddress.htPhone" maxlength="11" size="26" styleClass="optional" disabledClass="optional" onchange="doChangeDetail(0)" /></td>
                              
                        </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.district" /></td>
                              <td><html:text  property="htDistrict"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.district" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butHtDistrict"  onclick="return ShowHtDistrict(0)" /></td>

                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetailsAddress.tehsil" /></td>
                              <td><html:text  property="htTehsil"  name="HrmPersAdd" alt="A" titleKey="hrm.HrmEmpPersonalDetailsAddress.tehsil" size="23" styleClass="required" onchange="doChangeDetail(0)"  readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butHtTehsil"  onclick="return ShowHtTehsil(0)" /></td>
                        </tr>

                      
                         
                      
                    <!--Insert Logic Iterate Here-->                                                      
                     </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> <button altKey="wenrgise.common.addRow" name="ParentForm" property="butAddRow"  styleClass="bottomBarText" disabled="true">&nbsp;&nbsp;Add&nbsp;<u>R</u>ow&nbsp;&nbsp;</button>
                                  <button altKey="wenrgise.common.delRow" name="ParentForm" property="butDelRow" styleClass="bottomBarText" disabled="true" ><u>D</u>elete&nbsp;Row</button></TD>
                                  <td width=50%></td>	
                                  <TD ><enrgise:img name="ParentForm" property="butPrevDetail" src="../includes/images/butn_dtl_prev.jpg" onmouseover='this.src="../includes/images/butn_dtl_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_prev.jpg"' alt="Butn_prev (Alt+<)"  onclick="doBasePrevDetail()"/></td>
                                  <td class=dtlNavText><bean:write  name="pageNo" /> of <bean:write name="maxPage" /></td>
                                  <td  align=right><enrgise:img name="ParentForm" property="butNextDetail" src="../includes/images/butn_dtl_next.jpg" onmouseover='this.src="../includes/images/butn_dtl_next_act.jpg"' onmouseout='this.src="../includes/images/butn_dtl_next.jpg"' alt="Butn_next (Alt+>)" onclick="doBaseNextDetail()"/></td>
                                  <td  align=right><enrgise:text property="newPageRequested" size="1" onkeydown="isInteger(event)" styleClass="optional" disabledClass="locked" alt="N" titleKey="wenrgise.common.jumpDetail" /></td>
                                  <td ><enrgise:img name="ParentForm" property="butJumpDetail" altKey="wenrgise.common.go" src="../includes/images/go_dtl.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpDetail()" /></td>		     
                                </TR>
                              
                                </tbody>
                              </TABLE>
                          
                          
                             
                          </TD>
                      </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 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="HrmEmpPersAddDtls" />
<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";
     alert(document.getElementsByName(elem.name)[i+1].value);
  }
  else{
    document.getElementsByName(elem.name)[i+1].value="off";
     alert(document.getElementsByName(elem.name)[i+1].value);
  }
}
function doSamePermAddress()
{
if(document.forms[0].sameAsPerAdd.checked)
  {
   document.getElementsByName("htAddress")[0].value=document.getElementsByName("peAddress")[0].value;
   document.getElementsByName("htCity")[0].value=document.getElementsByName("peCity")[0].value;
   document.getElementsByName("htState")[0].value=document.getElementsByName("peState")[0].value;
   document.getElementsByName("htCountry")[0].value=document.getElementsByName("peCountry")[0].value;
   document.getElementsByName("htPinCode")[0].value=document.getElementsByName("pePinCode")[0].value;
   document.getElementsByName("htPhone")[0].value=document.getElementsByName("pePhone")[0].value;
   document.getElementsByName("htDistrict")[0].value=document.getElementsByName("peDistrict")[0].value;
   document.getElementsByName("htTehsil")[0].value=document.getElementsByName("peTehsil")[0].value;
   doChangeDetail(0);
  }
  
}
function doCheckAddress()
{
 if(document.forms[0].sameAs.checked)
  {
   document.getElementsByName("peAddress")[0].value=document.getElementsByName("prAddress")[0].value;
   document.getElementsByName("peCity")[0].value=document.getElementsByName("prCity")[0].value;
   document.getElementsByName("peState")[0].value=document.getElementsByName("prState")[0].value;
   document.getElementsByName("peCountry")[0].value=document.getElementsByName("prCountry")[0].value;
   document.getElementsByName("pePinCode")[0].value=document.getElementsByName("prPinCode")[0].value;
   document.getElementsByName("pePhone")[0].value=document.getElementsByName("prPhone")[0].value;
   document.getElementsByName("peDistrict")[0].value=document.getElementsByName("prDistrict")[0].value;
   document.getElementsByName("peTehsil")[0].value=document.getElementsByName("prTehsil")[0].value;
   doChangeDetail(0);
  }
}

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

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


function doInsertMode()
{

  return "HrmEmpPersAddDtlsNewModeAction.do";
}


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

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


function doDelete()
{

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

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

  return "HrmEmpPersAddDtlsRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

  return "HrmEmpPersAddDtlsAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmEmpPersAddDtlsBatch";
}

function doPrevDetail()
{

  return "HrmEmpPersAddDtlsGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmEmpPersAddDtlsGetDetailPageAction.do";
}

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


function doGetInsertData()
{

}

function ShowEmployeeNo()
{
        document.forms[0].queryParam.value ="employeeId="+ document.forms[0].empId.value ;
        document.forms[0].lovKey.value = "PersAddDtlsEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        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 ShowState(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddState" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "stateId,stateCode,state";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPeState(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddState" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "stateId,stateCode,peState";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPrState(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddState" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "stateId,stateCode,prState";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowHtState(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddState" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "stateId,stateCode,htState";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowCountry(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddCountry" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "countryId,countryCode,country";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPrCountry(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddCountry" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "countryId,countryCode,prCountry";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPeCountry(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddCountry" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "countryId,countryCode,peCountry";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowHtCountry(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddCountry" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "countryId,countryCode,htCountry";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowDistrict(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddDistrict" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "districtId,districtCode,district";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPrDistrict(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddDistrict" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "districtId,districtCode,prDistrict";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPeDistrict(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddDistrict" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "districtId,districtCode,peDistrict";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowHtDistrict(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddDistrict" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "districtId,districtCode,htDistrict";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowTehsil(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddTehsil" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "tehsilId,tehsilCode,tehsil";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPrTehsil(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddTehsil" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "tehsilId,tehsilCode,prTehsil";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowPeTehsil(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddTehsil" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "tehsilId,tehsilCode,peTehsil";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}

function ShowHtTehsil(i)
{
        document.forms[0].lovKey.value = "PersDtlsAddTehsil" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsAddress.code,hrm.HrmEmpPersonalDetailsAddress.desc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "tehsilId,tehsilCode,htTehsil";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
</script>    
