<%@ 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="HrmTrngFacTrngDtlForm" action="HrmFacTrngDtlBaseAction" type="wenrgise.hrms.webtier.form.HrmTrngFacTrngDtlForm">
<bean:define id="ParentForm" name="HrmTrngFacTrngDtlForm" 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()" /><img  property="butInsert" src="../includes/images/insert_dis.jpg" /></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()" />
    <enrgise:img name="ParentForm" property="butDelete" onmouseover='this.src="../includes/images/delete_act.jpg"' onmouseout='this.src="../includes/images/delete.jpg"' alt="Delete (Ctrl+D)" src="../includes/images/delete.jpg" onclick="doBaseDelete()" /><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"  onclick="doBaseExit()"  onmouseover='this.src="../includes/images/exit_act.jpg"' onmouseout='this.src="../includes/images/exit.jpg"' alt="Exit (Alt+X)"  src="../includes/images/exit.jpg" /><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><html:text property="newPositionRequested" size="1" onkeydown="isInteger(event)" title=" " alt="N" /></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>
<html:hidden property="detailDataChanged" name="HrmTrngFacTrngDtlForm" />

<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10>TRAINING DETAILS</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>Training Calendar</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.HrmFacTrngDtl.calendarName" /></td>
                 <td><enrgise:text  property="calendarName" titleKey="hrm.HrmFacTrngDtl.calendarName" maxlength="15" size="23"  styleClass="optional" disabledClass="optional"   /><enrgise:img name="HrmTrngFacTrngDtlForm"  height="16" align="center" src="../includes/images/lov.jpg" property="butCalendarName"  onclick="return ShowTrngCalName();" /></td>
                 <td class=labelText><bean:message key="hrm.HrmFacTrngDtl.site" /></td>
                 <td colspan="3"><html:text  property="site" titleKey="hrm.HrmFacTrngDtl.site" maxlength="15" size="23"  styleClass="optional" readonly="true"  /><html:text  property="siteName" titleKey="hrm.HrmFacTrngDtl.site" maxlength="40" size="66" styleClass="optional" readonly="true" /></td>
                 
            </tr>  
            <TR> 
                  
                  <td class=labelText><bean:message key="hrm.HrmFacTrngDtl.courseName" /></td>
                  <td><enrgise:text  property="courseName" titleKey="hrm.HrmFacTrngDtl.courseName" size="23"  styleClass="optional" disabledClass="optional"   /><enrgise:img name="HrmTrngFacTrngDtlForm"  height="16" align="center" src="../includes/images/lov.jpg" property="butCourseName" onclick="return ShowTrngCourseName();" /></td>
                  <td class=labelText><bean:message key="hrm.HrmFacTrngDtl.institutionName" /></td>
                  <td><html:text  property="institutionName" titleKey="hrm.HrmFacTrngDtl.institutionName" size="26" styleClass="locked"  readonly="true"  /></td>
                  <td class=labelText><bean:message key="hrm.HrmFacTrngDtl.venue" /></td>
                 <td><html:text  property="venue" titleKey="hrm.HrmFacTrngDtl.venue" maxlength="40" size="26"  styleClass="optional" readonly="true"  /></td>
                
            </tr>
           
            <tr>
                 <td class=labelText><bean:message key="hrm.HrmFacTrngDtl.startDate" /></td>
                 <td><html:text  property="startDate" titleKey="hrm.HrmFacTrngDtl.startDate" maxlength="15" size="26"  styleClass="locked" readonly="true"  /></td>
                 <td class=labelText><bean:message key="hrm.HrmFacTrngDtl.endDate" /></td>
                 <td><html:text  property="endDate" titleKey="hrm.HrmFacTrngDtl.endDate" maxlength="15" size="26"  styleClass="locked" readonly="true"   /></td>
                 <td class="labelText"><bean:message key="hrm.HrmFacTrngDtl.courseStatus" /></td>
                  <td><enrgise:select property="courseStatus" alt="courseStatus"  styleClass="optional" disabledClass="optional"   >
                  <enrgise:option value="" ><bean:message   key="hrm.pleaseSelect" /></enrgise:option>      
                  <enrgise:option value="P" > <bean:message key="hrm.HrmFacTrngDtl.pending" /></enrgise:option>
                  <enrgise:option value="C" > <bean:message key="hrm.HrmFacTrngDtl.closed" /></enrgise:option>
                  </enrgise:select></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.HrmFacTrngDtl.subHeader1" /><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:250px">
                    <TABLE  border="0" cellSpacing=0 cellPadding=0>
                     <TBODY>
                          <tr>
                              <TD class=tableHeader width="1%"><input type=checkbox></TD>
                              <TD class=tableHeader ><bean:message key="hrm.HrmFacTrngDtl.skillArea" /></td>
                              <TD class=tableHeader ><bean:message key="hrm.HrmFacTrngDtl.nameOfFaculty" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmFacTrngDtl.fromDate" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmFacTrngDtl.toDate" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmFacTrngDtl.startTime" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmFacTrngDtl.endTime" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmFacTrngDtl.averageRating" /></td>
                      
                         </tr>  
                                <logic:iterate id="oHrmTrngFacTrngDtl" name="HrmTrngFacTrngDtlForm" property="arrHrmFacTrngDtl" type="wenrgise.hrms.bean.HrmTrngFacTrngDtlBean" indexId="idx" >
                                            <logic:notEqual name="oHrmTrngFacTrngDtl" property="status" value="D" >
                                            <tr>
                                              <td width="1%">
                                              <html:hidden property="facultyId"  name="oHrmTrngFacTrngDtl" />
                                              <html:hidden property="status"  name="oHrmTrngFacTrngDtl" />
                                              <html:hidden property="detailId"  name="oHrmTrngFacTrngDtl"  />
                                              <html:hidden property="itemChecked" name="oHrmTrngFacTrngDtl" />
                                              <html:hidden property="selectAll" value="check" />
                                              <html:checkbox property="checked"  name="HrmTrngFacTrngDtlForm"  alt="<%=idx.toString()%>" disabled="true" onclick="boxClicked(this.alt);" />
                                              </td>
                                              <TD class="tableText"><enrgise:text property="txtSkillArea"       name="oHrmTrngFacTrngDtl" style="width:100%" maxlength="60" styleClass="required" disabledClass="locked" onchange='<%="doChangeDetail("+ idx.toString() +")"%>' /></td>
                                              <TD class="tableText"><html:text property="txtNameOfFaculty" name="oHrmTrngFacTrngDtl" size="33%" style="width:90%" styleClass="required" readonly="true" onchange='<%="doChangeDetail("+ idx.toString() +")"%>' /><enrgise:img name="oHrmTrngFacTrngDtl" height="16" align="center" property="butFaculty" src="../includes/images/lov.jpg" alt="<%=idx.toString()%>" onclick="return ShowFacultyName(this.alt);" /></td> 
                                              <TD class="tableText"><html:text property="txtFromDate"      name="oHrmTrngFacTrngDtl" size="33%" style="width:80%" styleClass="required"  readonly="true" onchange='<%="doChangeDetail("+ idx.toString() +")"%>' /><enrgise:img name="oHrmTrngFacTrngDtl" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtFromDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtFromDate',this)" /></td>              
                                              <TD class="tableText"><html:text property="txtToDate"        name="oHrmTrngFacTrngDtl" size="33%" style="width:80%"  styleClass="required" readonly="true"  onchange='<%="doChangeDetail("+ idx.toString() +")"%>' /><enrgise:img name="oHrmTrngFacTrngDtl" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtToDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtToDate',this)" /></td>              
                                              <TD class="tableText"><enrgise:text property="txtStartTime"     name="oHrmTrngFacTrngDtl" style="width:100%" onkeypress="isTime(event)" maxlength="5" styleClass="required" disabledClass="locked" onchange='<%="doChangeDetail("+ idx.toString() +")"%>' /></td>                                
                                              <TD class="tableText"><enrgise:text property="txtEndTime"       name="oHrmTrngFacTrngDtl" style="width:100%" onkeypress="isTime(event)" maxlength="5" styleClass="required" disabledClass="locked" onchange='<%="doChangeDetail("+ idx.toString() +")"%>' /></td>                                
                                              <TD class="tableText"><html:text property="txtAverageRating" name="oHrmTrngFacTrngDtl" style="width:100%" styleClass="locked"  readonly="true" onchange='<%="doChangeDetail("+ idx.toString() +")"%>' /></td>                                
                                            </tr>
                                            </logic:notEqual>
                                          <logic:equal name="oHrmTrngFacTrngDtl" property="status" value="D"  > 
                                              <tr>
                                              <td width="1%">
                                              <html:hidden property="facultyId"  name="HrmFacTrng" />
                                              <html:hidden property="status"  name="HrmFacTrng" />
                                              <html:hidden property="detailId"  name="HrmFacTrng"  />
                                              <html:hidden property="itemChecked" name="HrmFacTrng" />
                                              <html:hidden property="selectAll" value="check" />
                                              <html:checkbox property="checked"  name="HrmTrngFacTrngDtlForm" disabled="true" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                              </td>
                                              <TD class="tableText"><html:text property="txtSkillArea"  style="width:100%" maxlength="20" styleClass="locked" onchange='<%="doChangeDetail("+ idx.toString() +")"%>' readonly="true" /></td>
                                              <TD class=tableText><enrgise:text property="txtNameOfFaculty" name="oHrmTrngFacTrngDtl" style="width:80%"  styleClass="deletedRow" disabledClass="deletedRow" onchange='<%="doChangeDetail(" + idx.toString() + ")"%>' /><enrgise:img name="oHrmTrngFacTrngDtl" height="16" align="center" property="butFaculty" src="../includes/images/lov.jpg" alt="<%=idx.toString()%>" onclick="return ShowFacultyName(this.alt);" /></td> 
                                              <TD class=tableText><enrgise:text property="txtFromDate"   name="oHrmTrngFacTrngDtl" style="width:80%"  styleClass="deletedRow" disabledClass="deletedRow"  onchange='<%="doChangeDetail(" + idx.toString() + ")"%>' /><enrgise:img name="oHrmTrngFacTrngDtl" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtFromDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtFromDate',this)" /></td>              
                                              <TD class=tableText><enrgise:text property="txtToDate"   name="oHrmTrngFacTrngDtl" style="width:80%"  styleClass="deletedRow" disabledClass="deletedRow"  onchange='<%="doChangeDetail(" + idx.toString() + ")"%>' /><enrgise:img name="oHrmTrngFacTrngDtl" width="16" height="19" align="top" src="../includes/images/cal.gif" property="butTxtToDate" alt="<%=idx.toString()%>" onclick="showCalendar('txtToDate',this)" /></td>              
                                              <TD class=tableText><enrgise:text property="txtStartTime"   name="oHrmTrngFacTrngDtl" style="width:100%"   styleClass="deletedRow" disabledClass="deletedRow" onchange='<%="doChangeDetail(" + idx.toString() + ")"%>' /></td>                                
                                              <TD class=tableText><enrgise:text property="txtEndTime"   name="oHrmTrngFacTrngDtl" style="width:100%"  styleClass="deletedRow" disabledClass="deletedRow" onchange='<%="doChangeDetail(" + idx.toString() + ")"%>' /></td>                                
                                              <TD class=tableText><enrgise:text property="txtAverageRating"   name="oHrmTrngFacTrngDtl" style="width:100%"  styleClass="deletedRow" disabledClass="deletedRow" readonly="true" onchange='<%="doChangeDetail(" + idx.toString() + ")"%>' /></td>                                
                                            </tr>
                                          </logic:equal>  
                                            
                          </logic:iterate>
                        
                      </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                <td>	
                <jsp:include page="GenDetailMenu.jsp" flush="true" />
		            </TD>
		            <td> </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>
                   </TR>
                </table>
            </td>
          </tr>
	
<!-- Container Table Ending Columns Starts-->
    
</TBODY>
</TABLE>

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

<html:hidden property="siteId" name="HrmTrngFacTrngDtlForm"  />
<html:hidden property="calId" name="HrmTrngFacTrngDtlForm"  />
<html:hidden property="courseId" name="HrmTrngFacTrngDtlForm"  />
<html:hidden property="instId" name="HrmTrngFacTrngDtlForm"  />
<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="HrmTrngFacTrngDtlForm"  />
<html:hidden property="txtSearchFields" name="HrmTrngFacTrngDtlForm"  />
<html:hidden property="txtDisplayFields" name="HrmTrngFacTrngDtlForm"  />
<html:hidden property="headerPrimaryKey" name="HrmTrngFacTrngDtlForm" />

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

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

<script>

function doQueryMode()
{

  return "HrmFacTrngDtlQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmFacTrngDtlNewModeAction.do";
}


function doExecute()
{

  return "HrmFacTrngDtlGetHeaderAction.do";
}

function doSave()
{

  return "HrmFacTrngDtlSaveAction.do";
  
}

function doDelete()
{

  return "HrmFacTrngDtlDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmFacTrngDtlRefreshAction.do";
  
}

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

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

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

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

function doAddRow()
{

  return "HrmFacTrngDtlAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "tableName";
}

function doPrevDetail()
{

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

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

  return "HrmFacTrngDtlGetDetailPageAction.do";
}

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

function doGetInsertData()
{

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

}

function ShowTrngCourseName()
{
        
        document.forms[0].lovKey.value = "TrngFacCrsInsLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmFacTrngDtl.courseName,hrm.HrmFacTrngDtl.institutionName";
        document.forms[0].txtDisplayFields.value = "courseId,calendarName,courseName,institutionName,startDate,endDate,instId,courseStatus";
        document.forms[0].queryParam.value = "calId= "+ document.forms[0].calId.value + ",siteId= "+ document.forms[0].siteId.value;
        document.forms[0].multipleFlag.value = false;
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngFacTrngDtlForm');
        return true;
}
function ShowFacultyName(iIndex)
{
        
        document.forms[0].lovKey.value = "TrngFacNameLOV" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmFacTrngDtl.nameOfFaculty";
        document.forms[0].txtIndex.value = iIndex;
        document.forms[0].txtDisplayFields.value = "facultyId,txtNameOfFaculty";
        //document.forms[0].queryParam.value = "instId="+ document.forms[0].instId.value + ",siteId="+ document.forms[0].siteId.value;
        document.forms[0].multipleFlag.value="false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmTrngFacTrngDtlForm');
        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>
              
