<%@ 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="HrmRecApplnMtnOtherDtlBaseAction" 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" 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" 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" 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" disabledClass="required" 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="required" 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" 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" 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="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif"        rows="2" onclick= "doGetTab('HrmRecApplnMtnAddDtl','HrmRecApplnMtnOtherGetTabAction.do')"  ><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','HrmRecApplnMtnOtherGetTabAction.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','HrmRecApplnMtnOtherGetTabAction.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','HrmRecApplnMtnOtherGetTabAction.do')"><bean:message key="hrm.HrmApplicationMaintenance.eduDtl" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabOtherDtls" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif"      rows="2" ><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','HrmRecApplnMtnOtherGetTabAction.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','HrmRecApplnMtnOtherGetTabAction.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="HrmRecApplnOther" name="HrmRecApplnMtnForm" property="hrmRecApplnMtnOtherDtl" type="wenrgise.hrms.bean.HrmRecApplnMtnOtherDtlBean"  />
                        <!--Result starts -->                
                        <TR>
                              <TD class=subHeader colspan=6>Result Details</TD>
                              <html:hidden property="status" name="HrmRecApplnOther" />
                              <html:hidden property="detailId"  name="HrmRecApplnOther" />
                              <html:hidden property="itemChecked" name="HrmRecApplnOther" />
                              <html:hidden property="checked"  name="HrmRecApplnMtnForm" />
                              <html:hidden property="testCentreId" name="HrmRecApplnOther"  />
                              </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.testCenter" /></td>
                              <td><html:text  property="testCenter" name="HrmRecApplnOther" titleKey="hrm.HrmApplicationMaintenance.testCenter" size="23" styleClass="locked" onchange="doChangeDetail(0)" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmRecApplnMtnForm" property="butTestCentre" onclick="return ShowTestCentre(0)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.failedWrittenA" /></td>
                              <td><enrgise:checkbox  property="failedWrittenA" name="HrmRecApplnOther" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="failedWrittenA"  name="HrmRecApplnOther"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.wScoreA" /></td>
                              <td><enrgise:text  property="writtenScoreA" name="HrmRecApplnOther" titleKey="hrm.HrmApplicationMaintenance.wScoreA" maxlength="3" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" onkeypress="isInteger(event)" /></td>              
                         </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.failedWrittenB" /></td>
                              <td><enrgise:checkbox  property="failedWrittenB" name="HrmRecApplnOther"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="failedWrittenB"  name="HrmRecApplnOther"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.wScoreB" /></td>
                              <td><enrgise:text  property="writtenScoreB" name="HrmRecApplnOther" titleKey="hrm.HrmApplicationMaintenance.wScoreB" maxlength="3" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" onkeypress="isInteger(event)" /></td>              
                         </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.failedInterview" /></td>
                              <td><enrgise:checkbox  property="qualInterview" name="HrmRecApplnOther" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="qualInterview"  name="HrmRecApplnOther"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.qualInterview2" /></td>
                              <td><enrgise:checkbox  property="qualInterview2" name="HrmRecApplnOther" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="qualInterview2"  name="HrmRecApplnOther"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.qualInterview3" /></td>
                              <td><enrgise:checkbox  property="qualInterview3" name="HrmRecApplnOther" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="qualInterview3"  name="HrmRecApplnOther"  /></td>
                         </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.iScore" /></td>
                              <td><enrgise:text  property="interviewScore" name="HrmRecApplnOther" titleKey="hrm.HrmApplicationMaintenance.iScore" maxlength="3" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" onkeypress="isInteger(event)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.iScore2" /></td>
                              <td><enrgise:text  property="interviewScore2" name="HrmRecApplnOther" titleKey="hrm.HrmApplicationMaintenance.iScore2" maxlength="3" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" onkeypress="isInteger(event)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.iScore3" /></td>
                              <td><enrgise:text  property="interviewScore3" name="HrmRecApplnOther" titleKey="hrm.HrmApplicationMaintenance.iScore3" maxlength="3" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" onkeypress="isInteger(event)" /></td>              
                        </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.panelRanking" /></td>
                              <td><enrgise:text  property="rating" name="HrmRecApplnOther" titleKey="hrm.HrmApplicationMaintenance.panelRanking" maxlength="5" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeDetail(0)" onkeypress="isInteger(event)" /></td>              
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.medicalCleared" /></td>
                              <td><enrgise:checkbox  property="medicalCleared" name="HrmRecApplnOther" styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="medicalCleared"  name="HrmRecApplnOther"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.disqualified" /></td>
                              <td><enrgise:checkbox  property="disqualified" name="HrmRecApplnOther"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="disqualified"  name="HrmRecApplnOther"  /></td>
                         </tr>
                         <tr>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.appointedFlag" /></td>
                              <td><enrgise:checkbox  property="appointedFlag" name="HrmRecApplnOther"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="appointedFlag"  name="HrmRecApplnOther"  /></td>
                              <td class="labelText"><bean:message key="hrm.HrmApplicationMaintenance.joinedOrganisation" /></td>
                              <td><enrgise:checkbox  property="joinedOrganisation" name="HrmRecApplnOther"  styleClass="optional" disabledClass="locked" onclick="doCheckInitialise(this,0);" onchange="doChangeDetail(0)" /><html:hidden property="joinedOrganisation"  name="HrmRecApplnOther"  /></td>
                              
                         </tr>
                        
                        
                         
           
                    </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="HrmRecApplnMtnOtherDtl" />
<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 --> 
<!-- Hidden fields end --> 

<!-- Hidden fields end --> 


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

<script language="javascript">
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmRecApplnMtnOtherOnLoadAction.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 "HrmRecApplnMtnOtherDtlQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmRecApplnMtnOtherDtlNewModeAction.do";
}


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

function doSave()
{
  document.forms[0].headerDataChanged.value="Y";
  
  if (document.forms[0].detailDataChanged.value=="true")
  {
  preSaveDetail();
  }
  return "HrmRecApplnMtnOtherDtlSaveAction.do";
  
}

function doDelete()
{

  return "HrmRecApplnMtnOtherDtlDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmRecApplnMtnOtherDtlRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

  return "HrmRecApplnMtnOtherDtlAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmRecApplnMtnOtherDtlBatch";
}

function doPrevDetail()
{

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

  return "HrmRecApplnMtnOtherDtlExitAction.do";  
}

function doNextDetail()
{

  return "HrmRecApplnMtnOtherDtlGetDetailPageAction.do";
}

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


function doGetInsertData()
{
}



function ShowAdvtNo()
{
        document.forms[0].lovKey.value = "ApplnMtnOtherAdvtNo" + 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=="ApplnMtnAddAdvtNoHrmRecApplnMtnOtherDtlU") || (lovName=="ApplnMtnAddAdvtNoHrmRecApplnMtnOtherDtlN"))
    {
      doBaseValidate();
    }
}
function doValidate()
{
  return  "HrmRecApplnMtnAddDtlValidateAction.do"; 
}
function ShowDesignation()
{
        document.forms[0].lovKey.value = "ApplnMtnOtherDesignation" + 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 = "ApplnMtnOtherApplnNo" + 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 ShowTestCentre(i)
{
        document.forms[0].lovKey.value = "ApplnMtnResultTest" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.testCenter";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "testCentreId,testCenter";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function preSaveDetail()
{

 for(i=0 ; i < document.forms[0].disqualified.length; i++)
  {
    document.forms[0].disqualified[i].checked=false
  }
   for(i=0 ; i < document.forms[0].medicalCleared.length; i++)
  {
    document.forms[0].medicalCleared[i].checked=false
  }
  for(i=0 ; i < document.forms[0].qualInterview.length; i++)
  {
    document.forms[0].qualInterview[i].checked=false
  }
  for(i=0 ; i < document.forms[0].qualInterview2.length; i++)
  {
    document.forms[0].qualInterview2[i].checked=false
  }
  for(i=0 ; i < document.forms[0].qualInterview3.length; i++)
  {
    document.forms[0].qualInterview3[i].checked=false
  }
  for(i=0 ; i < document.forms[0].failedWrittenA.length; i++)
  {
    document.forms[0].failedWrittenA[i].checked=false
  }
  for(i=0 ; i < document.forms[0].failedWrittenB.length; i++)
  {
    document.forms[0].failedWrittenB[i].checked=false
  }
  for(i=0 ; i < document.forms[0].appointedFlag.length; i++)
  {
    document.forms[0].appointedFlag[i].checked=false
  }
  for(i=0 ; i < document.forms[0].joinedOrganisation.length; i++)
  {
    document.forms[0].joinedOrganisation[i].checked=false
  }
}

</script>