<%@ 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   onkeydown="hotKeys(event);"; scroll=auto>

<html:form name="HrmRecAdvtMtnForm" action="HrmAdvMtnBaseAction" type="wenrgise.hrms.webtier.form.HrmRecAdvtMtnForm">
<bean:define id="ParentForm" name="HrmRecAdvtMtnForm" 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.HrmAdvertiesmentMaintenance.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 >
        <!--Inspection Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6>Advertisement Header</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.HrmAdvertiesmentMaintenance.referenceNo" /></td>
                  <td><enrgise:text  name="HrmRecAdvtMtnForm" property="referenceNo" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.referenceNo" maxlength="10" size="23" styleClass="required" disabledClass="required"  onchange="doChangeHeader()" /><enrgise:img height="16" name="HrmRecAdvtMtnForm" align="center" src="../includes/images/lov.jpg" styleClass="icon" property="butReferenceNo" onclick="return ShowRefNo();" /></td>              
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.entryMode" /></td>
                  <td><html:text  property="entryMode" alt="A" titleKey="hrm.HrmAdvertiesmentMaintenance.entryMode" maxlength="10" size="23" styleClass="optional"  readonly="true" onchange="doChangeHeader()" /><enrgise:img height="16" name="HrmRecAdvtMtnForm" align="center" src="../includes/images/lov.jpg" styleClass="icon" property="butEntryMode" onclick="return ShowEntryMode();" /></td>              
                  <td class="labelText"><bean:message  key="hrm.HrmAdvertiesmentMaintenance.referenceDate" /></td>
                  <td><html:text   property="referenceDate" alt="D" titleKey="hrm.HrmAdvertiesmentMaintenance.referenceDate" size="23"  styleClass="required" readonly="true" onchange="doChangeHeader()" /><enrgise:img width="16" name="HrmRecAdvtMtnForm" height="19" align="top" src="../includes/images/cal.gif" property="butReferenceDate" styleClass="icon"  onclick="showCalendar('referenceDate',this)" /></td>              
                  <td width="15%"></td>
           </tr>
           
            <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.mediaType" /></td>
                  <td><enrgise:select name="HrmRecAdvtMtnForm" property="mediaType" titleKey="hrm.HrmAdvertiesmentMaintenance.mediaType" styleClass="required" disabledClass="required" onchange="doChangeHeader()" >
                      <enrgise:option value="none" ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.none" /></enrgise:option>
                      <enrgise:option value="electronicMedia" ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.electronicMedia" /></enrgise:option>
                      <enrgise:option value="printMedia" ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.printMedia" /></enrgise:option>
                      <enrgise:option value="cyberMedia" ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.cyberMedia" /></enrgise:option>
                      </enrgise:select></td> 
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.mediaName" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="mediaName" alt="A" titleKey="hrm.HrmAdvertiesmentMaintenance.mediaName" maxlength="20" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" />
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.description" /></td>
                  <td><enrgise:textarea name="HrmRecAdvtMtnForm" property="description" alt="A" titleKey="hrm.HrmAdvertiesmentMaintenance.description"  cols="28" rows="2" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" /></td> 
           </tr>
           
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.minWrittenScoreA" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="minWrittenScoreA" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.minWrittenScoreA" maxlength="4" size="26" styleClass="optional" disabledClass="locked" onkeydown="isInteger(event)" onchange="doChangeHeader()" />
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.minWrittenScoreB" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="minWrittenScoreB" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.minWrittenScoreB" maxlength="4" size="26" styleClass="optional" disabledClass="locked" onkeydown="isInteger(event)" onchange="doChangeHeader()" />
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.minInterviewScore" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="minInterviewScore" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.minInterviewScore" maxlength="4" size="26" styleClass="optional" disabledClass="locked" onkeydown="isInteger(event)" onchange="doChangeHeader()" />
          </tr>
          <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.minInterviewScore2" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="minInterviewScore2" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.minInterviewScore2" maxlength="4" size="26" styleClass="optional" disabledClass="locked" onkeydown="isInteger(event)" onchange="doChangeHeader()" />
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.minInterviewScore3" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="minInterviewScore3" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.minInterviewScore3" maxlength="4" size="26" styleClass="optional" disabledClass="locked" onkeydown="isInteger(event)" onchange="doChangeHeader()" />
          </tr>
           <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.minTotalScore" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="minTotalScore" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.minTotalScore" maxlength="4" size="26" styleClass="optional" disabledClass="locked" onkeydown="isInteger(event)" onchange="doChangeHeader()" /></td>
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.lastDate" /></td>
                  <td><html:text name="HrmRecAdvtMtnForm" property="lastDate" alt="D" titleKey="hrm.HrmAdvertiesmentMaintenance.lastDate" size="23" styleClass="required" readonly="true" onchange="doChangeHeader()" /><enrgise:img name="HrmRecAdvtMtnForm" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butLastDate" styleClass="icon" onclick="showCalendar('lastDate',this)" /></td>              
                  <td colspan="2"></td>
          </tr>
          <tr>
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.venue" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="venue" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.venue" maxlength="5" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" />
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.date" /></td>
                  <td><html:text  property="date" titleKey="hrm.HrmAdvertiesmentMaintenance.date" size="23" styleClass="locked" readonly="true" onchange="doChangeHeader();" /><enrgise:img  width="15" height="19" align="top" styleClass="icon" name="HrmRecAdvtMtnForm" src="../includes/images/cal.gif"  property="butDateWalkin" onclick="showCalendar('date',this)"  /></td>             
                  <td class="labelText"><bean:message key="hrm.HrmAdvertiesmentMaintenance.time" /></td>
                  <td><enrgise:text name="HrmRecAdvtMtnForm" property="time" alt="N" titleKey="hrm.HrmAdvertiesmentMaintenance.time" maxlength="5" size="26" styleClass="optional" disabledClass="locked" onchange="doChangeHeader()" />
          </tr>
           <tr>
                   <td height="10"></td>          
           </tr>
      
      </table>
      
      
         <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
 	 <TR>
       <TD colspan=6>
        <!-- Material Details Table Starts -->
         <TABLE cellSpacing=0 cellPadding=0 >
           <tr>
                <td bgcolor="#4682B4" width="10"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                <td bgcolor="#4682B4" nowrap class=actTabText >Advertisement Detail<img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                <TD><IMG height=19  src="../includes/images/formtab_r.gif" width=10  border=0></TD>                              
                <TD width="100%" background="../includes/images/line_t.gif">&nbsp;</TD>
                <TD background="../includes/images/line_t.gif"><IMG height=1 src="../includes/images/pixel.gif" width=10 border=0></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:200px;width=1020px" >
  			<!-- 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.HrmAdvertiesmentMaintenance.grade" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.designation" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.applicantCategory" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.reservationCategory" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.totalVacancy" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.sex" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.minimumAge" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.maximumAge" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.maxAgeOnDate" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmAdvertiesmentMaintenance.amount" /></td>
                             
                         </tr> 
                <!--Insert Logic Iterate Here-->          
                   
                      <logic:iterate id="HrmAdvMtn" name="HrmRecAdvtMtnForm" property="arrHrmAdvMtn" type="wenrgise.hrms.bean.HrmRecAdvtMtnDtlBean" indexId="idx" >
                        
                         <logic:notEqual name="HrmAdvMtn" property="status" value="D">
                         <tr>
                              <TD class=tableText width="1%"><html:checkbox property="checked" value="check"  onclick='<%="boxClicked("+idx.toString()+")"%>' />
                              <html:hidden property="status"  name="HrmAdvMtn" /><html:hidden property="detailId"  name="HrmAdvMtn" />
                               <html:hidden property="txtDesignationId" name="HrmAdvMtn" />
                               <html:hidden property="txtApplicantCategoryId" name="HrmAdvMtn" />
                               <html:hidden property="txtReservationCategoryId" name="HrmAdvMtn" /> 
                               <html:hidden property="itemChecked" name="HrmAdvMtn" />
                               <html:hidden property="txtGradeCode" name="HrmAdvMtn" />
                               <html:hidden property="txtLevel" name="HrmAdvMtn" />
                               <html:hidden property="txtGradeId" name="HrmAdvMtn" /></TD>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtGrade" styleClass="required" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov.jpg" property="butForGrade" alt="<%=idx.toString()%>" class="icon" onclick="return ShowGrade(this.alt);" ></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtDesignation" styleClass="locked" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov.jpg" name="HrmAdvMtn" property="butDesg" class="icon" alt="<%=idx.toString()%>" onclick="return ShowClassLovDesig(this.alt);" ></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtApplicantCategory" styleClass="optional" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov.jpg" property="butAppCat" name="HrmAdvMtn" class="icon" alt="<%=idx.toString()%>" onclick="return ShowClassLovAppCat(this.alt);" ></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtReservationCategory" styleClass="required" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov.jpg" property="butResvCat" name="HrmAdvMtn" class="icon" alt="<%=idx.toString()%>" onclick="return ShowClassLovRsrvCat(this.alt);"></td>  
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtTotalVacancy" styleClass="optional" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:select name="HrmAdvMtn" property="txtSex" styleClass="required" onchange='<%="doChangeDetail("+idx.toString()+")"%>'>
                                                     <html:option value="" ></html:option>
                                                     <html:option value="B" ><bean:message key="hrm.HrmAdvertiesmentMaintenance.A" /></html:option>
                                                     <html:option value="M" ><bean:message key="hrm.HrmAdvertiesmentMaintenance.M" /></html:option>
                                                     <html:option value="F" ><bean:message key="hrm.HrmAdvertiesmentMaintenance.F" /></html:option>
                                                  </html:select></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtMinimumAge" styleClass="optional" alt="N" maxlength="2" onkeydown="isInteger(event)" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtMaximumAge" styleClass="optional" alt="N" maxlength="2" onkeydown="isInteger(event)" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtMaxAgeOnDate" styleClass="optional" readonly="true" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img src="../includes/images/cal.gif"  width=15 height=19 align="top" class="icon" property="butTxtMaxAgeOnDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtMaxAgeOnDate',this)" /></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtAmount" styleClass="optional" alt="N" maxlength="15" onkeydown="isFloat(event)" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                                                                                                   
                          </tr>
                           </logic:notEqual>
                           <logic:equal name="HrmAdvMtn" property="status" value="D">
                         <tr>
                              <TD class=tableText width="1%"><html:checkbox property="checked" value="check" onclick='<%="boxClicked("+idx.toString()+")"%>' />
                               <html:hidden property="status"  name="HrmAdvMtn" /><html:hidden property="detailId"  name="HrmAdvMtn" />
                               <html:hidden property="txtDesignationId" name="HrmAdvMtn" />
                               <html:hidden property="txtApplicantCategoryId" name="HrmAdvMtn" />
                               <html:hidden property="txtReservationCategoryId" name="HrmAdvMtn" /> 
                               <html:hidden property="itemChecked" name="HrmAdvMtn" />
                               <html:hidden property="txtGradeCode" name="HrmAdvMtn" />
                               <html:hidden property="txtLevel" name="HrmAdvMtn" />
                               <html:hidden property="txtGradeId" name="HrmAdvMtn" /></TD>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtGrade" styleClass="deletedRow" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov_dis.jpg" property="butForGrade" alt="<%=idx.toString()%>" ></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtDesignation" styleClass="deletedRow" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov_dis.jpg" name="HrmAdvMtn" property="butDesg" alt="<%=idx.toString()%>" ></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtApplicantCategory" styleClass="deletedRow" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov_dis.jpg" property="butAppCat" name="HrmAdvMtn" alt="<%=idx.toString()%>" ></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtReservationCategory" styleClass="deletedRow" readonly="true" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img height=16 align="center" src="../includes/images/lov_dis.jpg" property="butResvCat" name="HrmAdvMtn" alt="<%=idx.toString()%>" ></td>  
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtTotalVacancy" styleClass="deletedRow" readonly="true" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:select name="HrmAdvMtn" property="txtSex" styleClass="locked"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' disabled="true">
                                                     <html:option value="" ></html:option>
                                                     <html:option value="B" ><bean:message key="hrm.HrmAdvertiesmentMaintenance.B" /></html:option>
                                                     <html:option value="M" ><bean:message key="hrm.HrmAdvertiesmentMaintenance.M" /></html:option>
                                                     <html:option value="F" ><bean:message key="hrm.HrmAdvertiesmentMaintenance.F" /></html:option>
                                                  </html:select><html:hidden property="txtSex" /></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtMinimumAge" styleClass="deletedRow" readonly="true" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtMaximumAge" styleClass="deletedRow" readonly="true" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtMaxAgeOnDate" styleClass="deletedRow" readonly="true" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img src="..\includes\images\cal.gif"  width=15 height=19 align="top" class="icon" property="butTxtMaxAgeOnDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtMaxAgeOnDate',this)" /></td>
                              <TD class=tableText ><html:text name="HrmAdvMtn" property="txtAmount" styleClass="deletedRow" readonly="true" alt="N" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                                                                                                   
                          </tr>
                          </logic:equal>
                        </logic:iterate>
                      
                                                                
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
  
  <!-- Get details starts -->
                        <tr>
                <td>	
                <!--Buttons for Add Row and Save row-->
                  <jsp:include page="GenDetailMenu.jsp" flush="true" />
                  <td bgColor=#4682b4 width="15%"></td>       
		            </TD>
		            <td> </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 width=35% align=center bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                        <td bgColor=#4682b4></td>
                        <td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
                        <td bgColor=#4682b4 width="15%"></td>
                   </TR>                  
                </table>
            </td>
          </tr>
 
<!-- Container Table Ending Columns Starts-->
  </TD>
    
</TR>
</TBODY>
</TABLE>

<!-- Container Table Ends -->
<!-- These four hidden fields must be present in pages where there is a detail part -->
<html:hidden name="HrmRecAdvtMtnForm" property="screenName" value="HrmRecAdvtMtn" />
<html:hidden name="HrmRecAdvtMtnForm" property="forwardedPage" />
<html:hidden name="HrmRecAdvtMtnForm" property="positionRequested"  />
<html:hidden name="HrmRecAdvtMtnForm" property="screenMode"  />
<html:hidden name="HrmRecAdvtMtnForm" property="firstLoad"  />
<html:hidden property="headerPrimaryKey" name="HrmRecAdvtMtnForm"  />
<html:hidden property="txtSearchFields" name="HrmRecAdvtMtnForm"  />
<html:hidden property="txtDisplayFields" name="HrmRecAdvtMtnForm"  />
<html:hidden property="txtIndex" name="HrmRecAdvtMtnForm"  />
<html:hidden property="userPageRequested" />
<html:hidden property="userPositionRequested"  />
<html:hidden property="pageRequested" />
<html:hidden property="lovKey" name="HrmRecAdvtMtnForm"  />
<html:hidden property="detailDataChanged" name="HrmRecAdvtMtnForm" />
<html:hidden property="headerDataChanged" name="HrmRecAdvtMtnForm" />
<!-- Hidden fields for Header LOV -->
<html:hidden property="referenceNoId"  />
<html:hidden property="entryModeId"  />
<!-- Hidden fields for Detail LOV -->


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


<!-- Hidden fields end -->

</html:form>
</body>
</html:html>
<script>
function doQueryMode()
{

  return "HrmAdvMtnQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmAdvMtnNewModeAction.do";
}


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

function doSave()
{

  return "HrmAdvMtnSaveAction.do";
  
}

function doDelete()
{

  return "HrmAdvMtnDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmAdvMtnRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmAdvMtnGetDetailAction.do";
}

function doAddRow()
{

  return "HrmAdvMtnAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

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

  return "HrmAdvMtnExitAction.do";  
}
function doNextDetail()
{

  return "HrmAdvMtnGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmAdvMtnGetDetailPageAction.do"; 
}
function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmRecAdvtMtnOnLoadAction.do"; 
  }
}    
function doOnChangeLov(lovName)
{
  if(lovName=="classCodeHrmRecAdvtMtnU" || lovName=="HrmRecAdvtMtnGradeHrmRecAdvtMtnU")
  {
    document.forms[0].detailDataChanged.value="true";
   }
}
function ShowGrade(i)
{
        document.forms[0].lovKey.value = "HrmRecAdvtMtnGrade" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.grade";
        document.forms[0].txtIndex.value=i;
        document.forms[0].txtDisplayFields.value = "txtGradeId,txtGradeCode,txtGrade,txtLevel";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        return true;

}  
function ShowClassLovDesig(i)
{
        document.forms[0].lovKey.value = "classCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.designation";
        document.forms[0].queryParam.value="code=10";  
        document.forms[0].txtIndex.value=i;
        document.forms[0].txtDisplayFields.value = "txtDesignationId,txtDesignation";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        return true;

}  

function ShowClassLovAppCat(i)
{
        document.forms[0].lovKey.value = "classCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.applicantCategory";
        document.forms[0].queryParam.value="code=100";  
        document.forms[0].txtIndex.value=i;
        document.forms[0].txtDisplayFields.value = "txtApplicantCategoryId,txtApplicantCategory";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        return true;

}
function ShowClassLovRsrvCat(i)
{
        document.forms[0].lovKey.value = "classCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.reservationCategory";
        document.forms[0].queryParam.value="code=40";  
        document.forms[0].txtIndex.value=i;
        document.forms[0].txtDisplayFields.value = "txtReservationCategoryId,txtReservationCategory";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        return true;

}

function ShowClassLovSalBasis(i)
{
        document.forms[0].lovKey.value = "classCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.salaryBasis";
        document.forms[0].queryParam.value="code=50";  
        document.forms[0].txtIndex.value=i;
        document.forms[0].txtDisplayFields.value = "txtSalaryBasisId,txtSalaryBasis";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        return true;

}

function ShowClassLovScale(i)
{
        document.forms[0].lovKey.value = "classCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.scale";
        document.forms[0].queryParam.value="code=15";  
        document.forms[0].txtIndex.value=i;
        document.forms[0].txtDisplayFields.value = "txtScaleId,txtScale";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        return true;

}

function ShowRefNo()
{       

        
        document.forms[0].txtIndex.value ="";
        document.forms[0].lovKey.value = "RefNo" +  document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.referenceNo";
        document.forms[0].txtDisplayFields.value = "headerPrimaryKey,referenceNo";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        return true;
}
function ShowEntryMode()
{       

        
        document.forms[0].txtIndex.value ="";
        document.forms[0].lovKey.value = "EntryMode" +  document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAdvertiesmentMaintenance.entryMode";
        document.forms[0].txtDisplayFields.value = "entryMode";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmRecAdvtMtnForm');
        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>