<%@ 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="HrmAttWrkGrpDayOffForm" action="HrmAttWrkGrpDayOffBaseAction" type="wenrgise.hrms.webtier.form.HrmAttWorkGroupDayOffForm">
<bean:define id="ParentForm" name="HrmAttWrkGrpDayOffForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmAttWrkGrpDayOff.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 -->
<div id=divBody>
<TABLE cellSpacing=0 cellPadding=0 border=0 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!--Work Group Detail Starts -->
            <TR>
                  <TD class=subHeader colspan=6>Work Group Detail</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.HrmAttWrkGrpDayOff.siteCode" /></td>
                  <td colspan="2" ><html:text  property="siteCode" altKey="hrm.HrmAttWrkGrpDayOff.siteCode" maxlength="10" size="23" styleClass="required" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butSiteCode" name="HrmAttWrkGrpDayOffForm" onclick=" return ShowSite()" />              
                                   <html:text  property="siteDescription" altKey="hrm.HrmAttWrkGrpDayOff.siteDesc" maxlength="40" size="40" styleClass="locked" readonly="true"  /></td>
                                   
                  <td class="labelText"><bean:message key="hrm.HrmAttWrkGrpDayOff.wrkGrpCode" /></td>
                  <td colspan="2" ><html:text  property="workGroupCode" altKey="hrm.HrmAttWrkGrpDayOff.wrkGrpCode" maxlength="10" size="23" styleClass="required" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butWrkGrpCode" name="HrmAttWrkGrpDayOffForm"  onclick=" return ShowWorkgroup();" />              
                                   <html:text  property="workGroupDescription" altKey="hrm.HrmAttWrkGrpDayOff.wrkGrpDesc" maxlength="40" size="40" styleClass="locked" readonly="true"   /></td>
           </tr>
           <tr>
                  <td height="10"></td>
           </tr>            
      </table>
      
      
         <table cellspacing=0 cellpadding=0 border=0>
         <!-- Detail Information Row starts -->
 	 <TR>
       <TD colspan=6>
        <!-- Scrutinized Applicant 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 >Work Group Day Off<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=6>
                <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                   <TR>
                     <TD >
                       <DIV id=divDtlTable style="height:270px" >
  			<!-- Detail table starts -->
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                          <tr>
                              <TD class=tableHeader width="1%"><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.startWeekDt" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.endWeekDt" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.fstRstDay" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.secRstDay" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.halfDay1" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.halfDay2" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.restWeek1" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.restWeekDay1" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.restWeek2" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmAttWorkGroupDayOff.restWeekDay2" /></td>
                         </tr>  
                           <logic:iterate id="HrmAttWGDO" name="HrmAttWrkGrpDayOffForm" property="arrAttWrkGrpDO" type="wenrgise.hrms.bean.HrmAttWorkGroupDayOffDtlBean" indexId="idx" >
                           <logic:notEqual name="HrmAttWGDO" property="status" value="D" >
                           <tr class='<bean:write name="HrmAttWrkGrpDayOffForm" property="listRowClass"/>'  >
                             <td><html:checkbox property="checked" name="HrmAttWrkGrpDayOffForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />    
                             <html:hidden property="itemChecked" name="HrmAttWGDO" /><html:hidden property="status" name="HrmAttWGDO" /><html:hidden property="detailId"  name="HrmAttWGDO" />
                              <TD class=tableText ><html:text property="txtStartWeekDate" name="HrmAttWGDO" styleClass="locked" titleKey="hrm.HrmAttWorkGroupDayOff.startWeekDt" style="width:82%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmAttWrkGrpDayOffForm" property="butStartWeekDate"  alt="<%=idx.toString()%>"  onclick="showCalendar('txtStartWeekDate',this)" /></td>
                              <TD class=tableText ><html:text property="txtEndWeekDate" name="HrmAttWGDO" styleClass="locked" titleKey="hrm.HrmAttWorkGroupDayOff.endWeekDt" style="width:82%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmAttWrkGrpDayOffForm" property="butEndWeekDate"  alt="<%=idx.toString()%>"  onclick="showCalendar('txtEndWeekDate',this)" /></td>
                              
                              <td class=tableText><html:select   property="txtFirstRestDay" name="HrmAttWGDO" style="width:100%" styleClass="required"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="7" > <bean:message key="hrm.HrmAttWorkGroupDayOff.sunday" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.monday" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.tuesday" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.wednesday" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.thursday" /></html:option>
                              <html:option value="5" > <bean:message key="hrm.HrmAttWorkGroupDayOff.friday" /></html:option>
                              <html:option value="6" > <bean:message key="hrm.HrmAttWorkGroupDayOff.saturday" /></html:option>
                              </html:select></td>
                              
                              
                              <td class=tableText><html:select   property="txtSecondRestDay" name="HrmAttWGDO" style="width:100%" styleClass="optional"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="7" > <bean:message key="hrm.HrmAttWorkGroupDayOff.sunday" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.monday" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.tuesday" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.wednesday" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.thursday" /></html:option>
                              <html:option value="5" > <bean:message key="hrm.HrmAttWorkGroupDayOff.friday" /></html:option>
                              <html:option value="6" > <bean:message key="hrm.HrmAttWorkGroupDayOff.saturday" /></html:option>
                              </html:select></td>
                              
                              <td class=tableText><html:select   property="txtHalfDay1" name="HrmAttWGDO" style="width:100%" styleClass="optional"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="7" > <bean:message key="hrm.HrmAttWorkGroupDayOff.sunday" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.monday" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.tuesday" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.wednesday" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.thursday" /></html:option>
                              <html:option value="5" > <bean:message key="hrm.HrmAttWorkGroupDayOff.friday" /></html:option>
                              <html:option value="6" > <bean:message key="hrm.HrmAttWorkGroupDayOff.saturday" /></html:option>
                              </html:select></td>

                              <td class=tableText><html:select   property="txtHalfDay2" name="HrmAttWGDO" style="width:100%" styleClass="optional"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="7" > <bean:message key="hrm.HrmAttWorkGroupDayOff.sunday" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.monday" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.tuesday" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.wednesday" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.thursday" /></html:option>
                              <html:option value="5" > <bean:message key="hrm.HrmAttWorkGroupDayOff.friday" /></html:option>
                              <html:option value="6" > <bean:message key="hrm.HrmAttWorkGroupDayOff.saturday" /></html:option>
                              </html:select></td>
                              
                              <td class=tableText><html:select   property="txtRestWeek1" name="HrmAttWGDO" style="width:100%" styleClass="optional"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.first" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.second" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.third" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.fourth" /></html:option>
                              </html:select></td>

                              <td class=tableText><html:select   property="txtRestWeekDay1" name="HrmAttWGDO" style="width:100%" styleClass="optional"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="7" > <bean:message key="hrm.HrmAttWorkGroupDayOff.sunday" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.monday" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.tuesday" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.wednesday" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.thursday" /></html:option>
                              <html:option value="5" > <bean:message key="hrm.HrmAttWorkGroupDayOff.friday" /></html:option>
                              <html:option value="6" > <bean:message key="hrm.HrmAttWorkGroupDayOff.saturday" /></html:option>
                              </html:select></td>

                              <td class=tableText><html:select   property="txtRestWeek2" name="HrmAttWGDO" style="width:100%" styleClass="optional"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.first" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.second" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.third" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.fourth" /></html:option>
                              </html:select></td>

                              <td class=tableText><html:select   property="txtRestWeekDay2" name="HrmAttWGDO" style="width:100%" styleClass="optional"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                              <html:option value="7" > <bean:message key="hrm.HrmAttWorkGroupDayOff.sunday" /></html:option>
                              <html:option value="1" > <bean:message key="hrm.HrmAttWorkGroupDayOff.monday" /></html:option>
                              <html:option value="2" > <bean:message key="hrm.HrmAttWorkGroupDayOff.tuesday" /></html:option>
                              <html:option value="3" > <bean:message key="hrm.HrmAttWorkGroupDayOff.wednesday" /></html:option>
                              <html:option value="4" > <bean:message key="hrm.HrmAttWorkGroupDayOff.thursday" /></html:option>
                              <html:option value="5" > <bean:message key="hrm.HrmAttWorkGroupDayOff.friday" /></html:option>
                              <html:option value="6" > <bean:message key="hrm.HrmAttWorkGroupDayOff.saturday" /></html:option>
                              </html:select></td>
                              
                            </tr>
                            </logic:notEqual>
                                <logic:equal name="HrmAttWGDO" property="status" value="D"  >
                                 <tr class='<bean:write name="HrmAttWrkGrpDayOffForm" property="listRowClass"/>'  >
                                   <td><html:checkbox property="checked" name="HrmAttWrkGrpDayOffForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />    
                                   <html:hidden property="itemChecked" name="HrmAttWGDO" /><html:hidden property="status" name="HrmAttWGDO" /><html:hidden property="detailId"  name="HrmAttWGDO" /></td>            
                                  <TD class=tableText ><html:text property="txtStartWeekDate" name="HrmAttWGDO" styleClass="deletedRow" titleKey="hrm.HrmAttEmployeeDayOff.startWeekDt" style="width:82%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmAttWrkGrpDayOffForm" property="butStartWeekDate"  alt="<%=idx.toString()%>"  onclick="showCalendar('txtStartWeekDate',this)" /></td>
                                  <TD class=tableText ><html:text property="txtEndWeekDate" name="HrmAttWGDO" styleClass="deletedRow" titleKey="hrm.HrmAttEmployeeDayOff.endWeekDt" style="width:82%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><enrgise:img src="../includes/images/cal.gif"  width="15" height="19" align="top" styleClass="icon" name="HrmAttWrkGrpDayOffForm" property="butEndWeekDate"  alt="<%=idx.toString()%>"  onclick="showCalendar('txtEndWeekDate',this)" /></td>
                                  
                                  <td class=tableText><html:select   property="txtFirstRestDay" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="7" > <bean:message key="hrm.HrmAttEmployeeDayOff.sunday" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.monday" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.tuesday" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.wednesday" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.thursday" /></html:option>
                                  <html:option value="5" > <bean:message key="hrm.HrmAttEmployeeDayOff.friday" /></html:option>
                                  <html:option value="6" > <bean:message key="hrm.HrmAttEmployeeDayOff.saturday" /></html:option>
                                  </html:select></td>
                                  
                                  
                                  <td class=tableText><html:select   property="txtSecondRestDay" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="7" > <bean:message key="hrm.HrmAttEmployeeDayOff.sunday" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.monday" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.tuesday" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.wednesday" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.thursday" /></html:option>
                                  <html:option value="5" > <bean:message key="hrm.HrmAttEmployeeDayOff.friday" /></html:option>
                                  <html:option value="6" > <bean:message key="hrm.HrmAttEmployeeDayOff.saturday" /></html:option>
                                  </html:select></td>
                                  
                                  <td class=tableText><html:select   property="txtHalfDay1" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="7" > <bean:message key="hrm.HrmAttEmployeeDayOff.sunday" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.monday" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.tuesday" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.wednesday" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.thursday" /></html:option>
                                  <html:option value="5" > <bean:message key="hrm.HrmAttEmployeeDayOff.friday" /></html:option>
                                  <html:option value="6" > <bean:message key="hrm.HrmAttEmployeeDayOff.saturday" /></html:option>
                                  </html:select></td>
    
                                  <td class=tableText><html:select   property="txtHalfDay2" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="7" > <bean:message key="hrm.HrmAttEmployeeDayOff.sunday" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.monday" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.tuesday" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.wednesday" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.thursday" /></html:option>
                                  <html:option value="5" > <bean:message key="hrm.HrmAttEmployeeDayOff.friday" /></html:option>
                                  <html:option value="6" > <bean:message key="hrm.HrmAttEmployeeDayOff.saturday" /></html:option>
                                  </html:select></td>
                                  
                                  <td class=tableText><html:select   property="txtRestWeek1" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.first" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.second" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.third" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.fourth" /></html:option>
                                  </html:select></td>
    
                                  <td class=tableText><html:select   property="txtRestWeekDay1" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="7" > <bean:message key="hrm.HrmAttEmployeeDayOff.sunday" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.monday" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.tuesday" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.wednesday" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.thursday" /></html:option>
                                  <html:option value="5" > <bean:message key="hrm.HrmAttEmployeeDayOff.friday" /></html:option>
                                  <html:option value="6" > <bean:message key="hrm.HrmAttEmployeeDayOff.saturday" /></html:option>
                                  </html:select></td>
    
                                  <td class=tableText><html:select   property="txtRestWeek2" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.first" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.second" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.third" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.fourth" /></html:option>
                                  </html:select></td>
    
                                  <td class=tableText><html:select   property="txtRestWeekDay2" name="HrmAttWGDO" style="width:100%" styleClass="deletedRow"    onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                  <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                  <html:option value="7" > <bean:message key="hrm.HrmAttEmployeeDayOff.sunday" /></html:option>
                                  <html:option value="1" > <bean:message key="hrm.HrmAttEmployeeDayOff.monday" /></html:option>
                                  <html:option value="2" > <bean:message key="hrm.HrmAttEmployeeDayOff.tuesday" /></html:option>
                                  <html:option value="3" > <bean:message key="hrm.HrmAttEmployeeDayOff.wednesday" /></html:option>
                                  <html:option value="4" > <bean:message key="hrm.HrmAttEmployeeDayOff.thursday" /></html:option>
                                  <html:option value="5" > <bean:message key="hrm.HrmAttEmployeeDayOff.friday" /></html:option>
                                  <html:option value="6" > <bean:message key="hrm.HrmAttEmployeeDayOff.saturday" /></html:option>
                                  </html: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 -->
<html:hidden name="HrmAttWrkGrpDayOffForm"  property="screenMode" />
<html:hidden name="HrmAttWrkGrpDayOffForm"  property="screenName" value="HrmAttWorkGroupDayOff" />
<html:hidden property="forwardedPage" name="HrmAttWrkGrpDayOffForm"  />
<html:hidden  property="positionRequested" name="HrmAttWrkGrpDayOffForm"  />
<html:hidden property="pageRequested" name="HrmAttWrkGrpDayOffForm" />
<html:hidden property="userPageRequested" name="HrmAttWrkGrpDayOffForm" />
<html:hidden property="userPositionRequested" name="HrmAttWrkGrpDayOffForm" />
<html:hidden property="firstLoad" name="HrmAttWrkGrpDayOffForm"  />

<html:hidden property="headerPrimaryKey" name="HrmAttWrkGrpDayOffForm" />
<html:hidden property="headerDataChanged" name="HrmAttWrkGrpDayOffForm" />
<html:hidden property="detailDataChanged" name="HrmAttWrkGrpDayOffForm" />
<html:hidden property="txtIndex" name="HrmAttWrkGrpDayOffForm"  />
<html:hidden property="siteId" name="HrmAttWrkGrpDayOffForm"  />
<html:hidden property="workGroupId" name="HrmAttWrkGrpDayOffForm"  />




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




<html:hidden property="lovKey" name="HrmAttWrkGrpDayOffForm"  />
<html:hidden property="txtSearchFields" name="HrmAttWrkGrpDayOffForm"  />
<html:hidden property="txtDisplayFields" name="HrmAttWrkGrpDayOffForm"  />


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

  return "HrmAttWorkGroupDayOffQueryModeAction.do";
}

function doOnLoad()
{
  if(document.forms[0].firstLoad.value!="false")
  {
    return  "HrmAttWorkGroupDayOffOnLoadAction.do"; 
  }
}
function doInsertMode()
{

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

  return "HrmAttWorkGroupDayOffExitAction.do";
}
function doDelete()
{

  return "HrmAttWorkGroupDayOffDeleteAction.do";
  
}

 function doSave()
{ 
  document.forms[0].screenMode.value = 'U';
  document.forms[0].detailDataChanged.value = 'true';
  document.forms[0].headerDataChanged.value = 'true';
  return "HrmAttWorkGroupDayOffSaveAction.do";  
}
function doValidate()
{
 return "HrmAttWorkGroupDayOffValidateAction.do";
}

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

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

function doAddRow()
{
  
  return "HrmAttWorkGroupDayOffAddRowAction.do"; 
}

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


function doPrevDetail()
{
  return "HrmAttWorkGroupDayOffDetailPageAction.do";  
}

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

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

function doOnChangeLov(lovName)
{
  if(lovName == 'AttSiteHrmAttWorkGroupDayOffN')
  {
    doBaseValidate();
  } 
  if(lovName == 'AttSiteHrmAttWorkGroupDayOffQ')
  {
    doBaseValidate();
  } 
  if(lovName == 'AttWorkGroupHrmAttWorkGroupDayOffN')
  {
    doBaseValidate();
  } 
  if(lovName == 'AttWorkGroupHrmAttWorkGroupDayOffQ')
  {
    doBaseValidate();
  }      
}

function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}

function ShowWorkgroup()
{
   document.forms[0].lovKey.value = "AttWorkGroup" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
   document.forms[0].txtDisplayFields.value = "workGroupId,workGroupCode,workGroupDescription";
   document.forms[0].txtSearchFields.value = "hrm.HrmAttWrkGrpDayOff.wrkGrpCode,hrm.HrmAttWrkGrpDayOff.wrkGrpDesc";
   document.forms[0].queryParam.value="siteId="+document.forms[0].siteId.value ;
   document.forms[0].txtIndex.value ="";
   document.forms[0].multipleFlag.value = "false";
   showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />', 'HrmAttWrkGrpDayOffForm');
   return true;
}

function ShowSite()
{
        document.forms[0].lovKey.value = "AttSite" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmAttWrkGrpDayOff.siteCode,hrm.HrmAttWrkGrpDayOff.siteDesc";
        document.forms[0].txtDisplayFields.value = "siteId,siteCode,siteDescription";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmAttWrkGrpDayOffForm');
        return true;
        
}

</script>