<%@ 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="HrmRecApplnMtnLangDtlBaseAction" 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','HrmRecApplnMtnLangGetTabAction.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','HrmRecApplnMtnLangGetTabAction.do')"><bean:message key="hrm.HrmApplicationMaintenance.expDtl" /></enrgise:tab>
                <enrgise:tab name="HrmRecApplnMtnForm" property="tabLanguage" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif" rows="2" ><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','HrmRecApplnMtnLangGetTabAction.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','HrmRecApplnMtnLangGetTabAction.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','HrmRecApplnMtnEduGetTabAction.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','HrmRecApplnMtnEduGetTabAction.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 width="1%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" /></TD>
                              <TD class=tableHeader><bean:message key="hrm.HrmApplicationMaintenance.languageCode" /></td>
                              <TD class=tableHeader><bean:message  key="hrm.HrmApplicationMaintenance.knowledgeLevel" /></td>
                                                      
                         </tr>
                         
                          <logic:iterate id="HrmRecApplnMtnLang" name="HrmRecApplnMtnForm" property="arylstHrmRecApplnMtnLangDtl" type="wenrgise.hrms.bean.HrmRecApplnMtnLangDtlBean" indexId="idx" >
                            <logic:notEqual name="HrmRecApplnMtnLang" property="status" value="D" >
                            
                              <tr class='<bean:write name="HrmRecApplnMtnForm" property="listRowClass"/>'  >
                                <td width="1%"><html:hidden property="status"  name="HrmRecApplnMtnLang" /><html:hidden property="detailId"  name="HrmRecApplnMtnLang"  /><html:hidden property="langId" name="HrmRecApplnMtnLang"  /><html:hidden property="knowledgeId" name="HrmRecApplnMtnLang"  /><html:hidden property="itemChecked" name="HrmRecApplnMtnLang" /><html:checkbox property="checked"  name="HrmRecApplnMtnForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                </td>
                                 <TD class=tableText ><html:text property="txtLanguageCode" name="HrmRecApplnMtnLang" styleClass="required" style="width:95%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" />
                                <enrgise:img name="HrmRecApplnMtnForm" height="16" align="center"  src="../includes/images/lov.jpg" alt="<%=idx.toString()%>" property="butLangCode" onclick="return ShowLangCode(this.alt);" /></td>  
                                <td class=tableText ><enrgise:select property="txtKnowledgeLevel" name="HrmRecApplnMtnLang"  style="width:100%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="required" disabledClass="locked" >
                                      <enrgise:option value="R" > <bean:message key="hrm.HrmApplicationMaintenance.read" /></enrgise:option>
                                      <enrgise:option value="W" > <bean:message key="hrm.HrmApplicationMaintenance.write" /></enrgise:option>
                                      <enrgise:option value="C" > <bean:message key="hrm.HrmApplicationMaintenance.communicate" /></enrgise:option>
                                      <enrgise:option value="A" > <bean:message key="hrm.HrmApplicationMaintenance.all" /></enrgise:option>
                                      </enrgise:select>
                                </td> 
                               </tr>
                             </logic:notEqual>
                             
                             <logic:equal name="HrmRecApplnMtnLang" property="status" value="D"  >
                               <tr class='<bean:write name="HrmRecApplnMtnForm" property="listRowClass"/>'  >
                                <td width="1%"><html:hidden property="status"  name="HrmRecApplnMtnLang" /><html:hidden property="detailId"  name="HrmRecApplnMtnLang"  /><html:hidden property="langId" name="HrmRecApplnMtnLang"  /><html:hidden property="knowledgeId" name="HrmRecApplnMtnLang"  /><html:hidden property="itemChecked" name="HrmRecApplnMtnLang" /><html:checkbox property="checked" value="check" disabled="true"  name="HrmRecApplnMtnForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                </td>
                                <TD class=tableText ><html:text property="txtLanguageCode" name="HrmRecApplnMtnLang" styleClass="deletedRow" style="width:95%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" />
                                <enrgise:img name="HrmRecApplnMtnForm" height="16" align="center"  src="../includes/images/lov.jpg" alt="<%=idx.toString()%>" property="butLangCode" /></td>  
                                <td><enrgise:select property="txtKnowledgeLevel" name="HrmRecApplnMtnLang"  style="width:100%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' styleClass="deletedRow" disabledClass="locked" >
                                      <enrgise:option value="R" > <bean:message key="hrm.HrmApplicationMaintenance.read" /></enrgise:option>
                                      <enrgise:option value="W" > <bean:message key="hrm.HrmApplicationMaintenance.write" /></enrgise:option>
                                      <enrgise:option value="C" > <bean:message key="hrm.HrmApplicationMaintenance.communicate" /></enrgise:option>
                                      <enrgise:option value="A" > <bean:message key="hrm.HrmApplicationMaintenance.all" /></enrgise:option>
                                      </enrgise:select>
                                </td> 
                                
                               </tr>
                             </logic:equal>
                        </logic:iterate>



                                                                       
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
              
              <!-- Get details starts -->
                        <tr>
                          <td colspan=11>	
                              <jsp:include page="GenDetailMenu.jsp" />
                          </TD>
                      </tr>
                  </TBODY>
                </TABLE>
              </td>
            </tr>



        </TABLE>
     </td>
	 </tr>
                <!-- Tab Table Ends -->

<!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr>
                        <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="HrmRecApplnMtnLangDtl" />
<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>


function doOnLoad()
{
  if(HrmApplMainForm.firstLoad.value!="false")
  {
    return  "HrmRecApplnMtnLangOnLoadAction.do"; 
  }
}

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

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


function doInsertMode()
{

  return "HrmRecApplnMtnLangDtlNewModeAction.do";
}


function doExecute()
{
  return "HrmRecApplnMtnLangDtlGetHeaderAction.do";
}
function doExit()
{
  return "HrmRecApplnMtnLangDtlExitAction.do";
}
function doSave()
{
  document.forms[0].headerDataChanged.value="Y";
  return "HrmRecApplnMtnLangDtlSaveAction.do";
  
}

function doDelete()
{

  return "HrmRecApplnMtnLangDtlDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmRecApplnMtnLangDtlRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

  return "HrmRecApplnMtnLangDtlAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmRecApplnMtnLangDtlBatch";
}

function doPrevDetail()
{

  return "HrmRecApplnMtnLangDtlGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmRecApplnMtnLangDtlGetDetailPageAction.do";
}

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


function doGetInsertData()
{

}




function ShowAdvtNo()
{
        document.forms[0].lovKey.value = "ApplnMtnLangAdvtNo" + 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=="ApplnMtnAddAdvtNoHrmRecApplnMtnLangDtlU") || (lovName=="ApplnMtnAddAdvtNoHrmRecApplnMtnLangDtlN"))
    {
      doBaseValidate();
    }
}
function ShowDesignation()
{
        document.forms[0].lovKey.value = "ApplnMtnLangDesignation" + 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 = "ApplnMtnLangApplnNo" + 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 doValidate()
{
  return  "HrmRecApplnMtnAddDtlValidateAction.do"; 
}
function ShowLangCode(i)
{
        document.forms[0].lovKey.value = "ApplnMtnLangCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.languageCode";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "langId,txtLanguageCode";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}

function ShowKnowledge(i)
{
        document.forms[0].lovKey.value = "ApplnMtnExpKnow" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmApplicationMaintenance.knowledgeLevel";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "knowledgeId,txtKnowledgeLevel";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecApplnMtnForm');
        return true;
        
}
function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}
</script>
