<%@ 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" />
  <meta http-equiv=pragma content=no-cache>
</head>

<BODY scroll=auto >

<html:form name="HrmTrngCalForm" action="HrmTrnCalBaseAction" type="wenrgise.hrms.webtier.form.HrmTrngCalForm">
<bean:define id="ParentForm" name="HrmTrngCalForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />
<html:hidden property="detailDataChanged" name="HrmTrngCalForm" />

<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmTrnCalMainHeader.title" /></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><bean:message key="hrm.HrmTrnCalSubHeader.title" /></TD>
            </TR>
            <TR>
                  <TD colspan=12 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>
            
            
            <TR> 
            
                  <td class=labelText><bean:message key="hrm.HrmTrnCal.calendarName" /></td>
                  <td colspan="1"><enrgise:text  property="calendarName" titleKey="hrm.HrmTrnCal.calendarName" maxlength="200" alt="A" size="23"  styleClass="required" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img name="HrmTrngCalForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butCalendarName" onclick="return ShowTrngCalName();" /></td>
               
                 
                 
                  <td width="15%" class=labelText><bean:message key="hrm.HrmTrnCal.startDate" /></td>
                  <td><enrgise:text  property="startDate" titleKey="hrm.HrmTrnCal.startDate" maxlength="15" alt="D" size="23"  styleClass="required" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img name="HrmTrngCalForm" width="15" height="19" align="top" src="../includes/images/cal.gif" property="butStartDate"  onclick="showCalendar('startDate',this)" /></td>
                  <td width="15%" class=labelText><bean:message key="hrm.HrmTrnCal.endDate" /></td>
                  <td ><enrgise:text  property="endDate" titleKey="hrm.HrmTrnCal.endDate" maxlength="15" alt="D" size="23"  styleClass="required" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img name="HrmTrngCalForm" width="15" height="19" align="top" src="../includes/images/cal.gif" property="butEndDate"   onclick="showCalendar('endDate',this)" /></td>
                  <td width="10%"></td>
          
            </TR>
            
            <tr>
                  <td class=labelText><bean:message key="hrm.HrmTrnCal.site" /></td>
                  <td colspan="5"><enrgise:text  property="site" titleKey="hrm.HrmTrnCal.site" maxlength="20" alt="N" size="23"  styleClass="required" disabledClass="required"  onchange="doChangeHeader();" /><enrgise:img name="HrmTrngCalForm" height="16" align="center" src="../includes/images/lov.jpg"  property="butSite" onclick="return ShowTrngSite();" /><enrgise:text property="siteName" maxlength="255" size="66" styleClass="locked" disabledClass="locked" onchange="doChangeHeader();" /></td>
            </tr>
           
                     
            
            <tr height="10">
                <td colspan="6"></td>
            </tr>
         </table>
        
                      
         <table cellspacing=0 cellpadding=0 border=0>
          <!-- Detail Information Row starts -->
          <TR>
            <TD colspan=6>
            <!-- Tab Table Starts -->
            <TABLE cellSpacing=0 cellPadding=0 >
            <tr>                                             
                          <td bgcolor="#4682B4"><img src="../includes/images/pixel.gif" width="10" height="1" border="0"></td>
                          <td bgcolor="#4682B4" nowrap class=actTabText ><bean:message key="hrm.HrmTrnCalTabHeader.title" /><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 height=10>
              
            <!-- Detail table Container starts -->
              <TD colSpan=5>
              <TABLE cellSpacing=0 cellPadding=0 border=0>
                <TBODY>
                 <TR>
                  <TD >
                  <DIV id=divDtlTable style="height:280px;width:1010px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                          <tr>
                            <TD class=tableHeader width="1%"><input type="checkbox" name="selectAll"  onclick="toggleCheckBox('checked')"  /></TD>
                            <TD class=tableHeader width="6%"><bean:message key="hrm.HrmTrnCal.txtInstituteName" /></td>
                            <TD class=tableHeader width="5%"><bean:message key="hrm.HrmTrnCal.txtCourseCode" /></td>
                            <TD class=tableHeader width="6%"><bean:message key="hrm.HrmTrnCal.txtCourseName" /></td>
                            <TD class=tableHeader width="6%"><bean:message key="hrm.HrmTrnCal.txtVenue" /></td>
                            
                            <TD class=tableHeader width="9%"><bean:message key="hrm.HrmTrnCal.txtType" /></td>
                            <TD class=tableHeader width="6%"><bean:message key="hrm.HrmTrnCal.txtDuration" /></td>
                           
                            <TD class=tableHeader width="6%"><bean:message key="hrm.HrmTrnCal.txtStartDate" /></td>
                            <TD class=tableHeader width="6%"><bean:message key="hrm.HrmTrnCal.txtEndDate" /></td>
                            <TD class=tableHeader width="4%"><bean:message key="hrm.HrmTrnCal.txtStrength" /></td>
                            <TD class=tableHeader width="9%"><bean:message key="hrm.HrmTrnCal.txtFee" /></td>
                            <TD class=tableHeader width="4%"><bean:message key="hrm.HrmTrnCal.txtRatingScheme" /></td>
                            <TD class=tableHeader width="6%"><bean:message key="hrm.HrmTrnCal.txtStatus" /></td>
                         </tr> 
                         <logic:iterate id="HrmTrngCal" name="HrmTrngCalForm" property="arrHrmTrngCal" type="wenrgise.hrms.bean.HrmTrngCalDtlBean" indexId="idx" >
                                       <logic:notEqual name="HrmTrngCal" property="status" value="D" >
                                          <tr>
                                              <td  class=tableText>
                                              <html:hidden property="status"  name="HrmTrngCal" />
                                              <html:hidden property="detailId"  name="HrmTrngCal" />
                                              <html:hidden property="itemChecked" name="HrmTrngCal" />
                                               <html:hidden property="ratingId"  name="HrmTrngCal" />
                                              <html:hidden property="txtInstId"  name="HrmTrngCal" />
                                              <html:hidden property="txtInsCode"  name="HrmTrngCal" />
                                              <html:hidden property="txtCourseId"  name="HrmTrngCal" />
                                              <html:hidden property="selectAll"  value="check"  />
                                              <html:hidden property="txtStatus"  name="HrmTrngCal"  />
                                              <html:checkbox property="checked"  name="HrmTrngCalForm"  alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                              </td>
                                              
                                              <td class=tableText ><html:text property="txtInstituteName" name="HrmTrngCal"  styleClass="required"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><enrgise:img name="HrmTrngCalForm" height="16" align="center"  src="../includes/images/lov.jpg" property="TxtInstituteName" alt="<%=idx.toString()%>" onclick="return ShowInstituteName(this.alt)" /></td>
                                              <logic:notEmpty property="txtInstId"  name="HrmTrngCal" >
                                                <td  class=tableText><html:text property="txtCourseCode" name="HrmTrngCal"  styleClass="required" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><enrgise:img name="HrmTrngCalForm" height="16" align="center"  src="../includes/images/lov.jpg" property="TxtCourseCode" alt="<%=idx.toString()%>" onclick="return ShowCourseCode(this.alt)" /></td>
                                                <td class=tableText ><html:text property="txtCourseName" name="HrmTrngCal"  styleClass="locked" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true"  /></td>
                                              </logic:notEmpty>
                                              <logic:empty property="txtInstId"  name="HrmTrngCal" >
                                                <td  class=tableText><html:text property="txtCourseCode" name="HrmTrngCal"  styleClass="required" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><img name="HrmTrngCalForm" height="16" align="center"  src="../includes/images/lov_dis.jpg" name="TxtCourseCode" alt="<%=idx.toString()%>" /></td>
                                                <td class=tableText ><html:text property="txtCourseName" name="HrmTrngCal"  styleClass="locked" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true"  /></td>
                                              </logic:empty>
                                              <td  class=tableText><enrgise:text formName="HrmTrngCalForm"  property="txtVenue" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="optional" disabledClass="required"  maxlength="20" onchange='<%="doChangeDetail("+idx.toString()+")"%>'   /></td>
                                              <td class=tableText><enrgise:select formName="HrmTrngCalForm"  property="txtType" name="HrmTrngCal" styleClass="optional"  disabledClass="locked"  onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                              <enrgise:option value="" > <bean:message key="hrm.pleaseSelect" /></enrgise:option>
                                              <enrgise:option value="B" > <bean:message key="hrm.HrmTrnCal.beginner" /></enrgise:option>
                                              <enrgise:option value="A" > <bean:message key="hrm.HrmTrnCal.advanced" /></enrgise:option>
                                              <enrgise:option value="W" > <bean:message key="hrm.HrmTrnCal.workshop" /></enrgise:option>
                                              <enrgise:option value="O" > <bean:message key="hrm.HrmTrnCal.onLocation" /></enrgise:option>
                                              <enrgise:option value="C" > <bean:message key="hrm.HrmTrnCal.campusCourse" /></enrgise:option>
                                              </enrgise:select></td> 
                                              <td class=tableText ><enrgise:text formName="HrmTrngCalForm"  property="txtDuration" onkeypress="isInteger(event)"  name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="required" disabledClass="required"  maxlength="4" size="15" onchange='<%="doChangeDetail("+idx.toString()+")"%>'   /></td>
                                              
                                              <td class=tableText ><html:text property="txtStartDate" name="HrmTrngCal" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.name)"  styleClass="required" readonly="true" /><enrgise:img name="HrmTrngCalForm" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtStartDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtStartDate',this)"  /></td>              
                                              <td class=tableText ><html:text property="txtEndDate" name="HrmTrngCal"  alt="<%=idx.toString()%>" styleClass="required" onchange="doChangeDetail(this.name)" readonly="true" /><enrgise:img name="HrmTrngCalForm" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtEndDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtEndDate',this)"  /></td>              
                                              <td class=tableText ><enrgise:text formName="HrmTrngCalForm"  property="txtStrength" onkeypress="isInteger(event)"  name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="optional" disabledClass="required"  maxlength="4" onchange='<%="doChangeDetail("+idx.toString()+")"%>'   /></td>
                                              <td  class=tableText><enrgise:text formName="HrmTrngCalForm"  property="txtFee" onkeypress="isInteger(event)"  name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="optional" disabledClass="required"  maxlength="18" onchange='<%="doChangeDetail("+idx.toString()+")"%>'   /></td>
                                              <td  class=tableText><enrgise:text formName="HrmTrngCalForm"  property="txtRatingScheme" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="required" disabledClass="required"  maxlength="20" onchange='<%="doChangeDetail("+idx.toString()+")"%>' onmouseover="this.title=this.value"   /><enrgise:img name="HrmTrngCalForm" height="16" align="center"  src="../includes/images/lov.jpg" property="butRating" alt="<%=idx.toString()%>" onclick="return ShowRating(this.alt)" /></td>
                                              <td class=tableText><enrgise:select formName="HrmTrngCalForm"  property="txtStatus"  name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="required"  disabledClass="required" onchange='<%="doChangeDetail("+idx.toString()+")"%>'    >
                                              <enrgise:option value="" > <bean:message key="hrm.pleaseSelect" /></enrgise:option>
                                              <enrgise:option value="P" > <bean:message key="hrm.HrmTrnCal.pending" /></enrgise:option>
                                              <enrgise:option value="C" > <bean:message key="hrm.HrmTrnCal.closed" /></enrgise:option>
                                              </enrgise:select></td> 
                                          </tr>
                                        </logic:notEqual>
                                        <logic:equal name="HrmTrngCal" property="status" value="D"  >
                                             <tr>
                                              <td  class=tableText>
                                              <html:hidden property="status"  name="HrmTrngCal" />
                                              <html:hidden property="detailId"  name="HrmTrngCal" />
                                              <html:hidden property="itemChecked" name="HrmTrngCal" />
                                              <html:hidden property="txtInstId"  name="HrmTrngCal" />
                                              <html:hidden property="txtInsCode"  name="HrmTrngCal" />
                                               <html:hidden property="ratingId"  name="HrmTrngCal" />
                                              <html:hidden property="txtCourseId"  name="HrmTrngCal" />
                                              <html:hidden property="selectAll"  value="check"  />
                                              <html:hidden property="txtStatus"  name="HrmTrngCal"  />
                                              <html:checkbox property="checked"  name="HrmTrngCalForm" disabled="true" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                              </td>
                                              
                                              <td class=tableText ><html:text property="txtInstituteName" name="HrmTrngCal"  styleClass="deletedRow" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  readonly="true" /><img name="HrmTrngCalForm" height="16" align="center"  src="../includes/images/lov_dis.jpg" property="TxtInstituteName" alt="<%=idx.toString()%>" /></td>
                                              <td  class=tableText><html:text property="txtCourseCode" name="HrmTrngCal"  styleClass="deletedRow"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true"  /><img name="HrmTrngCalForm" height="16" align="center"  src="../includes/images/lov_dis.jpg" property="TxtCourseCode" alt="<%=idx.toString()%>" /></td>
                                              <td class=tableText ><html:text property="txtCourseName" name="HrmTrngCal"  styleClass="deletedRow" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  readonly="true" /></td>
                                              <td  class=tableText><html:text property="txtVenue" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="deletedRow" onchange='<%="doChangeDetail("+idx.toString()+")"%>'  readonly="true"  /></td>
                                       
                                              <td class=tableText><html:select property="txtType" name="HrmTrngCal" styleClass="locked"  disabled="true" >
                                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                              <html:option value="B" > <bean:message key="hrm.HrmTrnCal.beginner" /></html:option>
                                              <html:option value="A" > <bean:message key="hrm.HrmTrnCal.advanced" /></html:option>
                                              <html:option value="W" > <bean:message key="hrm.HrmTrnCal.workshop" /></html:option>
                                              <html:option value="O" > <bean:message key="hrm.HrmTrnCal.onLocation" /></html:option>
                                              <html:option value="C" > <bean:message key="hrm.HrmTrnCal.campusCourse" /></html:option>
                                              </html:select></td><html:hidden property="txtType" /> 
                                               <td class=tableText ><html:text property="txtDuration" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="deletedRow" onchange='<%="doChangeDetail("+idx.toString()+")"%>'   /></td>
                                             
                                              <td class=tableText ><html:text property="txtStartDate" name="HrmTrngCal" alt="<%=idx.toString()%>" onchange="doChangeDetail(this.name)"  styleClass="deletedRow" readonly="true" /><img name="HrmTrngCalForm" width="16" height="19" align="top" src="../includes/images/cal_dis.gif" property="butTxtStartDate" alt="<%=idx.toString()%>"  /></td>              
                                              <td class=tableText ><html:text property="txtEndDate" name="HrmTrngCal"  alt="<%=idx.toString()%>" styleClass="deletedRow" readonly="true" /><img name="HrmTrngCalForm" width="16" height="19" align="top" src="../includes/images/cal_dis.gif" property="butTxtEndDate" alt="<%=idx.toString()%>" /></td>              
                                              <td class=tableText ><html:text property="txtStrength" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="deletedRow" readonly="true"   /></td>
                                              <td  class=tableText><html:text  property="txtFee" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="deletedRow" readonly="true"  /></td>
                                              <td  class=tableText><html:text property="txtRatingScheme" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="deletedRow" readonly="true"    /><img name="HrmTrngCalForm" height="16" align="center"  src="../includes/images/lov_dis.jpg" property="butRating" alt="<%=idx.toString()%>" /></td>
                                              <td class=tableText><html:select property="txtStatus" name="HrmTrngCal" alt="<%=idx.toString()%>" styleClass="locked" disabled="true"   >
                                              <html:option value="" > <bean:message key="hrm.pleaseSelect" /></html:option>
                                              <html:option value="P" > <bean:message key="hrm.HrmTrnCal.pending" /></html:option>
                                              <html:option value="C" > <bean:message key="hrm.HrmTrnCal.closed" /></html:option>
                                              </html:select></td><html:hidden property="txtStatus" /> 
                                          </tr>
                                          </logic:equal>
                        </logic:iterate>
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                    <td colspan="11">	
                         <jsp:include page="GenDetailMenu.jsp" flush="true" />
                         
                    </TD>
                    <td width="12%"></td>
		           </tr>
        </TABLE>
      </td>
     </tr>
   </TABLE>
</td>
</tr>
              <!-- Tab Table Ends -->

      <!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr>
                        <td width=40% 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 width="12%"></td>
                   </TR>
                </table>
            </td>
          </tr>
	
<!-- Container Table Ending Columns Starts-->
    
</TBODY>
</TABLE>

<!-- Container Table Ends -->
<html:hidden name="HrmTrngCalForm"  property="screenMode" />
<html:hidden name="HrmTrngCalForm"  property="screenName" value="HrmTrngCal" />
<html:hidden name="HrmTrngCalForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmTrngCalForm" />
<html:hidden property="txtIndex" name="HrmTrngCalForm"  />

<html:hidden property="calId" name="HrmTrngCalForm"  />
<html:hidden property="siteId" name="HrmTrngCalForm"  />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<html:hidden property="userPageRequested"  />
<html:hidden property="userPositionRequested" />
<html:hidden property="pageRequested" />

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

<html:hidden property="headerPrimaryKey" name="HrmTrngCalForm" />

<html:hidden property="headerDataChanged" name="HrmTrngCalForm" />


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

<SCRIPT>


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

function doQueryMode()
{

  return "HrmTrngCalQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmTrngCalNewModeAction.do";
}


function doExecute()
{

  return "HrmTrngCalGetHeaderAction.do";
}

function doSave()
{

  return "HrmTrngCalSaveAction.do";
  
}

function doDelete()
{

  return "HrmTrngCalDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmTrngCalRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{

  return "HrmTrngCalGetDetailAction.do";
}

function doAddRow()
{

  return "HrmTrngCalAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

  return "HrmTrngCalGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmTrngCalGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmTrngCalGetDetailPageAction.do"; 
}
function doExit()
{
  return  "HrmTrngCalExitAction.do"; 
}
function doValidate()
{
  return  "HrmTrngCalValidateAction.do"; 
}
function doGetInsertData()
{}

function ShowTrngCalName()
{
        
        document.forms[0].lovKey.value = "TrngCalNameLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTrnCal.calendarName";
        document.forms[0].txtDisplayFields.value = "calId,calendarName,startDate,endDate";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngCalForm');
        return true;
}
function ShowTrngSite()
{
        
        document.forms[0].lovKey.value = "TrngSiteLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTrnCal.site,hrm.HrmTrnCal.siteName";
        document.forms[0].txtDisplayFields.value = "siteId,site,siteName";
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngCalForm');
        return true;
}


function ShowInstituteName(i)
{
        
        document.forms[0].lovKey.value = "TrngInsName" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTrnCal.insCode,hrm.HrmTrnCal.txtInstituteName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "txtInstId,txtInsCode,txtInstituteName";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngCalForm');
     }
function doOnChangeLov(lovName)
{
   if((lovName=="TrngInsNameHrmTrngCalU"))
    {
      doBaseValidate();
    }
}
function ShowCourseCode(i)
{
              
        document.forms[0].lovKey.value = "TrngCrsCdLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTrnCal.txtCourseCode,hrm.HrmTrnCal.courseName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "txtCourseId,txtCourseCode";
        document.forms[0].multipleFlag.value="false";
        document.forms[0].queryParam.value="txtInstId="+document.getElementsByName("txtInstId")[i].value;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngCalForm');
        return true;
}
function boxClicked(val)
{    
    if(document.getElementsByName("checked")[val].checked)
    {      
      document.getElementsByName("itemChecked")[val].value = "Y";      
    }
    else
    {     
      document.getElementsByName("itemChecked")[val].value = "N";     
    }      
}

function ShowRating(i)
{
        
        document.forms[0].lovKey.value = "TrngRating" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmTrnCal.txtRatingScheme";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "ratingId,txtRatingScheme";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngCalForm');
     }

</script>
                
              
              
              
              
              
              
              
              
              
