<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/enrgise-html.tld" prefix="enrgise" %>


<html:html>
<html:base />
<head>
  <TITLE><bean:message  key="hrm.title" /></TITLE>
  <jsp:include page="GenIncludes.jsp" flush="true" />
</head>


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

<html:form name="HrmRecApplnMtnForm" action="HrmRecApplnMtnAddDtlBaseAction" type="wenrgise.hrms.webtier.form.HrmRecApplnMtnForm">
<bean:define id="ParentForm" name="HrmRecApplnMtnForm" toScope="request" />
<jsp:include page="GenMenu.jsp" flush="true" />
<bean:define id="left" name="ParentForm" property="positionRequested"/>
<bean:define id="right" name="ParentForm" property="totalCount"/>
<table cellSpacing=0 bgColor=#bdd0ef>
<tr height=27>
  <td colSpan=11></td>
</tr>
  <TR > 
    <TD ><enrgise:img name="ParentForm" property="butQuery" onmouseover='this.src="../includes/images/query_act.jpg"' onmouseout='this.src="../includes/images/query.jpg"' alt="Query (Ctrl+Q)" src="../includes/images/query.jpg" onclick="doBaseQueryMode()" /><enrgise:img name="ParentForm" property="butInsert" onmouseover='this.src="../includes/images/insert_act.jpg"' onmouseout='this.src="../includes/images/insert.jpg"' alt="Insert (Alt+N)" src="../includes/images/insert.jpg"  onclick="doBaseInsertMode()"/></TD>
    <TD width="2%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butExecute" onmouseover='this.src="../includes/images/execute_act.jpg"' onmouseout='this.src="../includes/images/execute.jpg"' alt="Execute (Ctrl+U)" src="../includes/images/execute.jpg" onclick="doBaseExecute()" /><enrgise:img name="ParentForm" property="butSave" onmouseover='this.src="../includes/images/save_act.jpg"' onmouseout='this.src="../includes/images/save.jpg"' alt="Save (Ctrl+S)" src="../includes/images/save.jpg" onclick="doBaseSave()" />
    <img name="ParentForm" property="butDelete" src="../includes/images/delete_dis.jpg" /><enrgise:img name="ParentForm" property="butRefresh" onmouseover='this.src="../includes/images/refresh_act.jpg"' onmouseout='this.src="../includes/images/refresh.jpg"' alt="Refresh (Ctrl+R)"  src="../includes/images/refresh.jpg" onclick="doBaseRefresh()" />
    <enrgise:img name="ParentForm" property="butPrint" onmouseover='this.src="../includes/images/print_act.jpg"' onmouseout='this.src="../includes/images/print.jpg"' alt="Print (Ctrl+P)"  src="../includes/images/print.jpg" /></TD>
    <TD width="2%" bgColor=#bdd0ef></TD>
  <TD><enrgise:img name="ParentForm" property="butExit" onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg"   onclick="doBaseExit()" />
    <enrgise:img name="ParentForm" property="butHelp" onmouseover='this.src="../includes/images/help_act.jpg"' onmouseout='this.src="../includes/images/help.jpg"' alt="Help (Ctrl+?)" src="../includes/images/help.jpg" onclick="doBaseHelp()" /></TD>
    <TD width="50%"></TD>
    <TD ><enrgise:img name="ParentForm" property="butPrevHeader" src='../includes/images/butn_prev.jpg' onmouseover='this.src="../includes/images/butn_prev_act.jpg"' onmouseout='this.src="../includes/images/butn_prev.jpg"' alt="Butn_prev (Ctrl+<)" onclick="doBasePrevHeader()" /></td>
    <td class=dtlNavText><bean:write  name="left" /> of 
    <bean:write name="right" /></td>
    <td align=right><enrgise:img name="ParentForm" property="butNextHeader" src="../includes/images/butn_next.jpg" onmouseover='this.src="../includes/images/butn_next_act.jpg"' onmouseout='this.src="../includes/images/butn_next.jpg"' alt="Butn_next (Ctrl+>)" onclick="doBaseNextHeader()" /></td>
    <td align=right><enrgise:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title="wenrgise.common.jumpDetail" alt="N" disabledClass="locked" maxlength="3" styleClass="optional" /></td>
    <td ><enrgise:img name="ParentForm" property="butJumpHeader" alt="Go (Ctrl+G)" src="../includes/images/go.jpg" onmouseover='this.src="../includes/images/go_act.jpg"' onmouseout='this.src="../includes/images/go.jpg"' onclick="doBaseJumpHeader()" /></td>
    <td > </td>
    
</TR>
</table>
<table>
<tr>
  <td colspan="11" class="userText"></td>
</tr>
<enrgise:checkSession/>
</TABLE>
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmApplicationMaintenance.heading" /></TD>
    </TR>
</TABLE>
<!--//  Display Errors -->
<enrgise:errors/>
<logic:messagesPresent message="true">
<Table>
    <html:messages id="message" message="true">
    <TR><TD>
      <bean:write name="message"/>
    </TD></TR>
    </html:messages>      
</Table>
</logic:messagesPresent>
<!--//  Display Errors -->

<TABLE cellSpacing=0 cellPadding=0 border=0 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!--Application Header Starts -->
           <TR>
                  <TD class=subHeader colspan=6><bean:message key="hrm.HrmApplicationMaintenance.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.HrmApplicationMaintenance.applicationNo" /></td>
                  <td><enrgise:text  property="applicationNo"  name="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.applicationNo" maxlength="15" size="23" styleClass="required" disabledClass="required" onchange="doChangeHeader();" /><enrgise:img name="HrmRecApplnMtnForm" height="16" align="center" src="../includes/images/lov.jpg" property="butApplicationNo"  onclick="return ShowApplnNo()" /></td>              
                  <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.applicationDate" /></td>
                  <td><html:text  property="applicationDate" name="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.applicationDate" size="23" styleClass="required" onchange="doChangeHeader();" readonly="true" /><enrgise:img name="HrmRecApplnMtnForm" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butApplicationDate"   onclick="showCalendar('applicationDate',this)" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.referenceNo" /></td>
                  <td><html:text  property="referenceNo" titleKey="hrm.HrmApplicationMaintenance.referenceNo" name="HrmRecApplnMtnForm" size="23" styleClass="locked" onchange="doChangeHeader();" readonly="true" /><enrgise:img name="HrmRecApplnMtnForm" height="16" align="center" src="../includes/images/lov.jpg" property="butReferenceNo"  onclick="return ShowAdvtNo()" /></td>              
                  
           </tr>
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.applicationName" /></td>
                  <td colspan="4"><enrgise:text  property="applicantFirstName" titleKey="hrm.HrmApplicationMaintenance.applicationFirstName" size="26" styleClass="required" name="HrmRecApplnMtnForm" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:text  property="applicantMiddleName" titleKey="hrm.HrmApplicationMaintenance.applicationMiddleName" size="28" styleClass="optional" disabledClass="locked" onchange="doChangeHeader();" /><enrgise:text  property="applicantLastName" titleKey="hrm.HrmApplicationMaintenance.applicationLastName" size="26" styleClass="required" disabledClass="locked" onchange="doChangeHeader();"/></td> 
           </tr>
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.applForGradeDesignation" /></td>
                  <td colspan="3"><html:text  property="applForGrade" alt="A" titleKey="hrm.HrmApplicationMaintenance.applForGrade" size="26" styleClass="optional" name="HrmRecApplnMtnForm" onchange="doChangeHeader();" readonly="true" /><html:text  property="applForDesignation" alt="A" titleKey="hrm.HrmApplicationMaintenance.applForDesignation" size="26" styleClass="optional" onchange="doChangeHeader();" readonly="true" /><enrgise:img name="HrmRecApplnMtnForm" height="16" align="center" src="../includes/images/lov.jpg" property="butApplForDesignation"  onclick="return ShowDesignation()" /></td>              
                  <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.rollNo" /></td>
                  <td><enrgise:text  property="rollNo" titleKey="hrm.HrmApplicationMaintenance.rollNo" maxlength="10" size="26" styleClass="optional" name="HrmRecApplnMtnForm" disabledClass="locked" onchange="doChangeHeader();"/></td>              
           </tr>
          
           <tr>
                   <td height="10"></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="HrmRecApplnMtnForm" property="tabAddress" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif"        rows="2" ><bean:message key="hrm.HrmApplicationMaintenance.addDtl" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabExperience" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"    rows="2" onclick= "doGetTab('HrmRecApplnMtnExpDtl','HrmRecApplnMtnAddGetTabAction.do')" ><bean:message key="hrm.HrmApplicationMaintenance.expDtl" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabLanguage" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmRecApplnMtnLangDtl','HrmRecApplnMtnAddGetTabAction.do')"><bean:message key="hrm.HrmApplicationMaintenance.langDtl" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabEducation" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmRecApplnMtnEduDtl','HrmRecApplnMtnAddGetTabAction.do')"><bean:message key="hrm.HrmApplicationMaintenance.eduDtl" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabOtherDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"      rows="2" onclick= "doGetTab('HrmRecApplnMtnOtherDtl','HrmRecApplnMtnAddGetTabAction.do')"  ><bean:message key="hrm.HrmApplicationMaintenance.otherDtl" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabTrainingDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"      rows="2" onclick= "doGetTab('HrmRecApplnMtnTrngDtls','HrmRecApplnMtnAddGetTabAction.do')"  ><bean:message key="hrm.HrmApplicationMaintenance.trainingDtls" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabRefDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"      rows="2" onclick= "doGetTab('HrmRecApplnMtnRef','HrmRecApplnMtnAddGetTabAction.do')"  ><bean:message key="hrm.HrmApplicationMaintenance.references" /></enrgise:tab>
                             
                <td width="30%"> </td>
          </tr>                  
          <TR >

          <!-- Detail table Container starts -->
              <TD colspan=22>
                <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                   <TR>
                     <TD >
                       <DIV id=divDtlTable style="height:250px" >
                        <!-- Detail table starts -->
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                          <tr>
                              <td class=tableHeader height="20" colspan="6"></td>
                         </tr>  
          
                        <bean:define id="HrmRecApplnAdd" name="HrmRecApplnMtnForm" property="hrmRecApplnMtnAddDtl" type="wenrgise.hrms.bean.HrmRecApplnMtnAddDtlBean"  />
                       
                        <!--Present Address starts -->                
                         <TR>
                              <TD class=subHeader colspan=6>Personal Details</TD>
                              <html:hidden property="status" name="HrmRecApplnAdd" />
                              <html:hidden property="detailId"  name="HrmRecApplnAdd" />
                              <html:hidden property="itemChecked" name="HrmRecApplnAdd" />
                              <html:hidden property="checked"  name="HrmRecApplnMtnForm" />
                              <html:hidden property="permStateId" name="HrmRecApplnAdd"  />
                              <html:hidden property="presStateId" name="HrmRecApplnAdd"  />
                              <html:hidden property="presCountryId" name="HrmRecApplnAdd"  />
                              <html:hidden property="permCountryId" name="HrmRecApplnAdd"  />
                              <html:hidden property="motherToungueId" name="HrmRecApplnAdd"  />
                              <html:hidden property="nationalityId" name="HrmRecApplnAdd"  />
                              <html:hidden property="maritalStatusId" name="HrmRecApplnAdd"  />
                              <html:hidden property="reservationCategoryId" name="HrmRecApplnAdd"  />
                              <html:hidden property="nationalityCode" name="HrmRecApplnAdd"  />
                              <html:hidden property="motherToungueCode" name="HrmRecApplnAdd"  />
                              <html:hidden property="maritalStatus" name="HrmRecApplnAdd"  />
                              <html:hidden property="relatedEmpId" name="HrmRecApplnAdd"  />
                              <html:hidden property="religionId" name="HrmRecApplnAdd"  />
                         </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.HrmApplicationMaintenance.guardianName" /></td>
                              <td><enrgise:text  property="guardianName" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm"titleKey="hrm.HrmApplicationMaintenance.guardianName" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.DOB" /></td>
                              <td><html:text  property="dateOfBirth" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.DOB" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img name="HrmRecApplnMtnForm" src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" property="butDateOfBirth"   onclick="showCalendar('dateOfBirth',this)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.placeOfBirth" /></td>
                              <td><enrgise:text  property="placeOfBirth" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.placeOfBirth" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                        </tr>
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.nationality" /></td>
                              <td><html:text  property="nationality" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.nationality" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butNationality" onclick="return ShowNationality(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.maritalStatus" /></td>
                              <td><html:text  property="maritalStatusDesc" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.maritalStatus" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butMaritalStatus" onclick="return ShowMaritalStatus(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.sex"  /></td>
                              <td><enrgise:select property="sex" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" styleClass="required" disabledClass="locked" onchange="doChangeDetail(0)" >
                                    <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                                    <enrgise:option value="M" > <bean:message key="hrm.HrmApplicationMaintenance.Male" /></enrgise:option>
                                    <enrgise:option value="F" > <bean:message key="hrm.HrmApplicationMaintenance.Female" /></enrgise:option>
                                  </enrgise:select></td> 
                         </tr>
                         <tr>     
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.motherTongue" /></td>
                              <td><html:text  property="motherTongue" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.motherTongue" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butMotherTongue" onclick="return ShowMotherTongue(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.relatedToEmp" /></td>
                              <td><enrgise:checkbox  property="relatedToEmp" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="relatedToEmp"  name="HrmRecApplnAdd"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.relatedEmpName" /></td>
                              <td><html:text  property="relatedEmpName" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.relatedEmpName" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butRelatedEmp" onclick="return ShowRelatedEmp(0)" /></td>              
                              
                         </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.religion" /></td>
                              <td><html:text  property="religion" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.religion" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butReligion" onclick="return ShowReligion(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.handicappedFlag" /></td>
                              <td><enrgise:checkbox  property="handicappedFlag" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="handicappedFlag"  name="HrmRecApplnAdd"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.healthRecord" /></td>
                              <td ><enrgise:textarea  property="healthRecord" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.healthRecord" cols="28" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                         </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.bloodGroup" /></td>
                              <td><enrgise:select property="bloodGroup" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" alt="bloodGroup"  styleClass="optional" 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.HrmApplicationMaintenance.appliedEarlier" /></td>
                              <td><enrgise:checkbox  property="appliedEarlier" name="HrmRecApplnAdd"formName="HrmRecApplnMtnForm" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="appliedEarlier"  name="HrmRecApplnAdd"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.eMail" /></td>
                              <td><enrgise:text  property="mail" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.eMail" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                         </tr> 
                         
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.resvCategory" /></td>
                              <td><html:text  property="reservationCategory" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.resvCategory" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butReservationCategory" onclick="return ShowReservationCategory(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.prevEmpFlag" /></td>
                              <td><enrgise:checkbox  property="prevEmpFlag" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="prevEmpFlag"  name="HrmRecApplnAdd"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.prevEmpDtls" /></td>
                              <td><enrgise:textarea  property="prevEmpDtls" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.prevEmpDtls" cols="28" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                         </tr> 
                         
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.hobbies" /></td>
                              <td ><enrgise:textarea  property="hobbies" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm"titleKey="hrm.HrmApplicationMaintenance.hobbies" cols="28" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.grossExpected" /></td>
                              <td><enrgise:text  property="grossExpected" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm"titleKey="hrm.HrmApplicationMaintenance.grossExpected" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.addlInfo" /></td>
                              <td><enrgise:text  property="addlInfo" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm"titleKey="hrm.HrmApplicationMaintenance.addlInfo" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(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.HrmApplicationMaintenance.country" /></td>
                              <td><html:text  property="presCountry" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.country" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butPresCountry" onclick="return ShowPresCountry(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.state" /></td>
                              <td><html:text  property="presState" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.state" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butPresState" onclick="return ShowPresState(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.city" /></td>
                              <td><enrgise:text  property="presCity" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.required" maxlength="40" size="26" styleClass="required" disabledClass="required" onchange="doChangeDetail(0)" /></td>              
                         </tr>
                          
                        
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.address" /></td>
                              <td><enrgise:textarea  property="presAddress" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.address" cols="28" rows="2" styleClass="required" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.pin" /></td>
                              <td><enrgise:text  property="presPin" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.pin" maxlength="6" size="26" styleClass="required" disabledClass="locked" onkeypress="isInteger(event);" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.phone" /></td>
                              <td><enrgise:text  property="presPhone" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.phone" maxlength="15" size="26" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event);" onchange="doChangeDetail(0)" /></td>              
                             
                        </tr>
                        
                        <!--Permanent Address starts -->       
                          <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"><bean:message key="hrm.HrmApplicationMaintenance.country" /></td>
                              <td><html:text  property="permCountry" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.country" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butPermCountry" onclick="return ShowPermCountry(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.state" /></td>
                              <td><html:text  property="permState" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.state" size="23" styleClass="required" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butPermState" onclick="return ShowPermState(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.city" /></td>
                              <td><enrgise:text  property="permCity" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.city" maxlength="40" size="26" styleClass="required" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              
                        </tr>
                          
                         
                        <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.address" /></td>
                              <td><enrgise:textarea  property="permAddress" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.address" cols="28" rows="2" styleClass="required" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.pin" /></td>
                              <td><enrgise:text  property="permPin" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.pin" maxlength="6" size="26" styleClass="required" disabledClass="locked" onkeypress="isInteger(event);" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.phone" /></td>
                              <td><enrgise:text  property="permPhone" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.phone" maxlength="15" size="26" styleClass="optional" disabledClass="locked" onkeypress="isInteger(event);" onchange="doChangeDetail(0)" /></td>              
                             
                       </tr>
                       
                       <TR>
                              <TD class=subHeader colspan=6>Passport Details</TD>
                              <html:hidden property="status" name="HrmRecApplnAdd" />
                              <html:hidden property="detailId"  name="HrmRecApplnAdd" />
                              <html:hidden property="itemChecked" name="HrmRecApplnAdd" />
                              <html:hidden property="checked"  name="HrmRecApplnMtnForm" />
                              
                         </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.HrmApplicationMaintenance.passportNo" /></td>
                              <td><enrgise:text  property="passportNo" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.passportNo" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.placeOfIssue" /></td>
                              <td><enrgise:text  property="placeOfIssue" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.placeOfIssue" maxlength="40" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              
                         </tr>
                          
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.issueDate" /></td>
                              <td><html:text  property="issueDate" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.issueDate" maxlength="40" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmRecApplnMtnForm" property="butIssueDate"   onclick="showCalendar('issueDate',this)" /></td>                          
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.expiryDate" /></td>
                              <td><html:text  property="expiryDate" name="HrmRecApplnAdd" titleKey="hrm.HrmApplicationMaintenance.expiryDate" maxlength="40" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmRecApplnMtnForm" property="butExpiryDate"   onclick="showCalendar('expiryDate',this)" /></td>                          
                        </tr>
                        
                        <!--Bank Details starts -->       
                          <TR>
                              <TD class=subHeader colspan=6>Payment 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.HrmApplicationMaintenance.chequeNo" /></td>
                              <td><enrgise:text  property="chequeNo" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.chequeNo" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.submittedAmount" /></td>
                              <td><enrgise:text  property="submittedAmount" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.submittedAmount" onkeydown="isInteger(event)" maxlength="12" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.submissionDate" /></td>
                              <td><enrgise:text  property="submissionDate" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.submissionDate" maxlength="40" size="23" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="lov" name="HrmRecApplnMtnForm" property="butSubmissionDate"   onclick="showCalendar('submissionDate',this)" /></td>                          
                              
                        </tr>
                        <!--Police Records Starts Here-->
                         <TR>
                              <TD class=subHeader colspan=6>Police Records</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.HrmApplicationMaintenance.arrestedBefore" /></td>
                              <td><enrgise:checkbox  property="arrestedBefore" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmRecApplnAddonalDetails.arrestedBefore"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="arrestedBefore"  name="HrmRecApplnAdd" /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.imprisonedBefore" /></td>
                              <td><enrgise:checkbox  property="imprisonedBefore" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmRecApplnAddonalDetails.imprisonedBefore"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="imprisonedBefore"  name="HrmRecApplnAdd"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.reasons" /></td>
                              <td ><enrgise:textarea  property="reasons" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmApplicationMaintenance.reasons" cols="28" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" /></td>
                        </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.prosecutedBefore" /></td>
                              <td><enrgise:checkbox  property="prosecutedBefore" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmRecApplnAddonalDetails.prosecutedBefore"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="prosecutedBefore"  name="HrmRecApplnAdd"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.finedByCourt" /></td>
                              <td><enrgise:checkbox  property="finedByCourt" name="HrmRecApplnAdd" formName="HrmRecApplnMtnForm" titleKey="hrm.HrmRecApplnAddonalDetails.finedByCourt"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="finedByCourt"  name="HrmRecApplnAdd"  /></td>
                              
                        </tr>
                                  <!--Insert Logic Iterate Here-->                                                      
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
  
  <!-- Get details starts -->
             <TABLE border=0>
              <tbody>
                <TR>
                  <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 Row</button></TD>
                      <td width=50%></td>	
                      <td colspan="5"></td>
                    </TR>
                  
                    </tbody>
                  </TABLE>
                  
                </TR>
                      
                  </tbody>
             </TABLE>
            </TBODY>
          </TABLE>
        </td>
      </tr>



        </TABLE>
     </td>
	 </tr>
   <!-- Tab Table Ends -->
  <!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr>
                        <td colspan="5" 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="HrmRecApplnMtnForm" property="screenName" value="HrmRecApplnMtnAddDtl" />
<html:hidden name="HrmRecApplnMtnForm" property="forwardedPage" />
<html:hidden name="HrmRecApplnMtnForm" property="positionRequested"  />
<html:hidden name="HrmRecApplnMtnForm" property="screenMode"  />

<html:hidden property="txtIndex" name="HrmRecApplnMtnForm"  />
<html:hidden property="userPageRequested" name="HrmRecApplnMtnForm" />
<html:hidden property="userPositionRequested"  name="HrmRecApplnMtnForm" />
<html:hidden property="pageRequested"  name="HrmRecApplnMtnForm" />
<html:hidden property="selectAll" value="check" name="HrmRecApplnMtnForm" />
<html:hidden property="lovKey" name="HrmRecApplnMtnForm"  />
<html:hidden property="txtSearchFields" name="HrmRecApplnMtnForm"  />
<html:hidden property="txtDisplayFields" name="HrmRecApplnMtnForm"  />
<html:hidden property="headerPrimaryKey" name="HrmRecApplnMtnForm" />
<html:hidden property="headerDataChanged" name="HrmRecApplnMtnForm" />
<html:hidden property="detailDataChanged" name="HrmRecApplnMtnForm" />

<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<html:hidden property="firstLoad" name="HrmRecApplnMtnForm"  />


<!-- Screen Specific variables -->
<html:hidden property="applnNoId" name="HrmRecApplnMtnForm"  />
<html:hidden property="designationId" name="HrmRecApplnMtnForm"  />
<html:hidden property="referenceId" name="HrmRecApplnMtnForm"  />

<html:hidden property="resvHdrId" name="HrmRecApplnMtnForm"  />
<html:hidden property="resvHdrName" name="HrmRecApplnMtnForm"  />
<html:hidden property="entryMode" name="HrmRecApplnMtnForm"  />
<!-- Hidden fields end --> 


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

<script language="javascript">
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmRecApplnMtnAddDtlOnLoadAction.do"; 
  }
}

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.forms[0].headerDataChanged.value="true";
}

function doQueryMode()
{
  return "HrmRecApplnMtnAddDtlQueryModeAction.do";
}
function doInsertMode()
{
  return "HrmRecApplnMtnAddDtlNewModeAction.do";
}
function doExecute()
{
  return "HrmRecApplnMtnAddDtlGetHeaderAction.do";
}
function doSave()
{
  document.forms[0].headerDataChanged.value="Y";
  if (document.forms[0].detailDataChanged.value=="true")
  {
  preSaveDetail();
  }
  return "HrmRecApplnMtnAddDtlSaveAction.do";
}
function doDelete()
{
  return "HrmRecApplnMtnAddDtlDeleteAction.do";
}
function doRefresh()
{
  return "HrmRecApplnMtnAddDtlRefreshAction.do";
}

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

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

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

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

function doAddRow()
{

  return "HrmRecApplnMtnAddDtlAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmRecApplnMtnAddDtlBatch";
}

function doPrevDetail()
{

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

  return "HrmRecApplnMtnAddDtlExitAction.do";  
}

function doNextDetail()
{

  return "HrmRecApplnMtnAddDtlGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmRecApplnMtnAddDtlGetDetailPageAction.do"; 
}
function doValidate()
{
  return  "HrmRecApplnMtnAddDtlValidateAction.do"; 
}




function ShowAdvtNo()
{
        document.forms[0].lovKey.value = "ApplnMtnAddAdvtNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.referenceNo,hrm.HrmApplicationMaintenance.entryMode";
        document.forms[0].txtDisplayFields.value = "entryMode,referenceNo";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function doOnChangeLov(lovName)
{
   if((lovName=="ApplnMtnAddAdvtNoHrmRecApplnMtnAddDtlU") || (lovName=="ApplnMtnAddAdvtNoHrmRecApplnMtnAddDtlN"))
    {
      doBaseValidate();
    }
}
function ShowDesignation()
{
        document.forms[0].lovKey.value = "ApplnMtnAddDesignation" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.applForDesignation";
        document.forms[0].txtDisplayFields.value = "referenceId,designationId,applForGrade,applForDesignation";
        document.forms[0].multipleFlag.value = "false";
        document.forms[0].queryParam.value="referenceNo="+document.forms[0].referenceNo.value;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowApplnNo()
{
        document.forms[0].lovKey.value = "ApplnMtnAddApplnNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.applicationNo";
        document.forms[0].txtDisplayFields.value = "applnNoId,applicationNo,applicationDate";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowPermState(i)
{
        document.forms[0].lovKey.value = "ApplnMtnAddState" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.state";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "permStateId,permState";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowPresState(i)
{
        document.forms[0].lovKey.value = "ApplnMtnAddState" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.state";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "presStateId,presState";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}

function ShowPresCountry(i)
{
        document.forms[0].lovKey.value = "ApplnMtnAddCountry" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.country";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "presCountryId,presCountry";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowPermCountry(i)
{
        document.forms[0].lovKey.value = "ApplnMtnAddCountry" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.country";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "permCountryId,permCountry";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowRelatedEmp(i)
{
        document.forms[0].lovKey.value = "ApplnMtnAddRelatedEmp" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.relatedEmpN0";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "relatedEmpId,relatedEmpName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowNationality(i)
{
        document.forms[0].lovKey.value = "ApplnMtnPerNationality" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.nationality";
        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" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowMaritalStatus(i)
{
        document.forms[0].lovKey.value = "ApplnMtnPerMarStatus" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.maritalStatus";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "maritalStatusId,maritalStatus,maritalStatusDesc";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
}

function ShowReservationCategory(i)
{
        document.forms[0].lovKey.value = "ApplnMtnPerResvCat" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.resvCategory";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "reservationCategoryId,reservationCategory";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowMotherTongue(i)
{
        document.forms[0].lovKey.value = "ApplnMtnPerMotherToungue" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.motherTongue";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "motherToungueId,motherToungueCode,motherTongue";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function ShowReligion(i)
{
        document.forms[0].lovKey.value = "ApplnMtnPerReligion" + 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" />','HrmRecApplnMtnForm');
        return true;
        
}
function doGetInsertData()
{

}
function preSaveDetail()
{

 for(i=0 ; i < document.forms[0].prosecutedBefore.length; i++)
  {
    document.forms[0].prosecutedBefore[i].checked=false
  }
   for(i=0 ; i < document.forms[0].arrestedBefore.length; i++)
  {
    document.forms[0].arrestedBefore[i].checked=false
  }
  for(i=0 ; i < document.forms[0].imprisonedBefore.length; i++)
  {
    document.forms[0].imprisonedBefore[i].checked=false
  }
  for(i=0 ; i < document.forms[0].finedByCourt.length; i++)
  {
    document.forms[0].finedByCourt[i].checked=false
  }
  for(i=0 ; i < document.forms[0].prevEmpFlag.length; i++)
  {
    document.forms[0].prevEmpFlag[i].checked=false
  }
   for(i=0 ; i < document.forms[0].appliedEarlier.length; i++)
  {
    document.forms[0].appliedEarlier[i].checked=false
  }
  for(i=0 ; i < document.forms[0].relatedToEmp.length; i++)
  {
    document.forms[0].relatedToEmp[i].checked=false
  }
  for(i=0 ; i < document.forms[0].handicappedFlag.length; i++)
  {
    document.forms[0].handicappedFlag[i].checked=false
  }
}
</script>