<%@ 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="HrmPrmViewAssForm" action="HrmPrmViewAssBaseAction" type="wenrgise.hrms.webtier.form.HrmPrmViewAssForm">
<bean:define id="ParentForm" name="HrmPrmViewAssForm" 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.HrmPrmViewAss.mainHeader" /></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 >
<tbody>
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!-- Header Starts -->
            <TR>
                  <TD class=subHeader colspan=6><bean:message key="hrm.HrmPrmViewAss.subHeader1" /></TD>
            </TR>
            <TR>
                  <TD colspan=6 bgColor=#4682b4><IMG height=1 src="../includes/images/pixel.gif" width=1 border=0></TD>
            </TR>           
          
           <tr>
                
                <td class="labelText"><bean:message key="hrm.HrmPrmViewAss.prmNo" /></td>
               <td colspan=3><html:text  property="prmNo"  maxlength="10" size="23" styleClass="required" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="butprmID" name="HrmPrmViewAssForm" onclick=" ShowprmID()" />
               <html:text  property="noticeDesc"  maxlength="10" size="60" styleClass="required" readonly="true" /></td>
               <td colspan=2></td>
           </tr>
           <tr>
               <td class="labelText"><bean:message key="hrm.HrmPrmViewAss.toPosition" /></td>
               <td><html:text  property="toPosition"  maxlength="10" size="23" styleClass="required" readonly="true"/><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" property="buttoPositionID" name="HrmPrmViewAssForm" onclick="ShowtoPositionID()" />
                <html:text  property="positionDesc"  maxlength="10" size="60" styleClass="required" readonly="true" /></td>
               <td colspan=2></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>
        <!-- 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 >Marks Obtained And Points Rewarded<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="85%" 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:220px;width:1020px" >
                    <TABLE  border="0" cellSpacing=0 cellPadding=0 id="HrmPrmViewAss">
                     <TBODY>
                          <tr>
                              <TD class=tableHeader width="1%"><html:checkbox  property="selectAll"  onclick="toggleCheckBox('checked')"  /></td>
                              <TD class=tableHeader width="5%"><bean:message key="hrm.HrmPrmViewAss.empNo" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmPrmViewAss.empName" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmPrmViewAss.fromPosCode" /></td>
                             
                              <TD class=tableHeader width="5%"><bean:message key="hrm.HrmPrmViewAss.scale" /></td>
                              <TD class=tableHeader width="5%"><bean:message key="hrm.HrmPrmViewAss.srvYrs" /></td>
                              <TD class=tableHeader width="5%"><bean:message key="hrm.HrmPrmViewAss.currSrvYrs" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmPrmViewAss.srvYrsPoints" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmPrmViewAss.avgAparPts" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmPrmViewAss.aparPts" /></td>
                              <TD class=tableHeader width="5%"><bean:message key="hrm.HrmPrmViewAss.writtenTestMarks" /></td>
                              <TD class=tableHeader width="5%"><bean:message key="hrm.HrmPrmViewAss.writtenTestPts" /></td>
                              <TD class=tableHeader width="5%"><bean:message  key="hrm.HrmPrmViewAss.GDMarks" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmPrmViewAss.GDPts" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmPrmViewAss.interviewMarks" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmPrmViewAss.interviewPts" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmPrmViewAss.totalPtsAwarded" /></td>
                              <TD class=tableHeader width="3%"><bean:message key="hrm.HrmPrmViewAss.eligProm" /></td>
                         </tr>                             
                            <logic:iterate id="HrmPrmViewAss" name="HrmPrmViewAssForm" property="arylstPrmViewAss" type="wenrgise.hrms.bean.HrmPrmViewAssDtlBean" indexId="idx" >
                                      <logic:notEqual name="HrmPrmViewAss" property="status" value="D" >
                                         <tr>
                                              <td><html:hidden property="itemChecked" name="HrmPrmViewAss" /><html:hidden property="status"  name="HrmPrmViewAss" /><html:hidden property="detailId"  name="HrmPrmViewAss"  /><html:hidden property="employeeId" name="HrmPrmViewAss" /><html:hidden property="hdnPrevDtlId" name="HrmPrmViewAss" /><html:hidden property="hdnPromEligibility" name="HrmPrmViewAss" /><html:hidden property="positionId" name="HrmPrmViewAss" />
                                              <html:hidden property="scaleId" name="HrmPrmViewAss" /><html:hidden property="headerPositionId" name="HrmPrmViewAss" /><html:checkbox property="checked" value="check"  alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                              <TD class=tableText ><html:text property="txtEmpNo" size="15" name="HrmPrmViewAss"  titleKey="hrm.HrmPrmViewAss.empNo" readonly="true" styleClass="required"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /><img src="../includes/images/lov.jpg" height="15" class="icon" align="center" name="butEmployeeCode"  alt="<%=idx.toString()%>"  onclick=" return ShowEmployeeCode(this.alt);" /></td>                                                               
                                              <TD class=tableText><html:text property="txtEmpName" size="15" name="HrmPrmViewAss" titleKey="hrm.HrmPrmViewAss.empName" readonly="true" styleClass="optional"   onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                                               
                                              <TD class=tableText ><html:text property="txtFromPosCode" size="15" name="HrmPrmViewAss"  titleKey="hrm.HrmPrmViewAss.fromPosCode" readonly="true" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>    
                                              
                                              <TD class=tableText ><html:text property="txtScale" size="15" name="HrmPrmViewAss"  titleKey="hrm.HrmPrmViewAss.scale" readonly="true" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtSrvYrs" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.srvYrs" readonly="true" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText ><html:text property="txtCurrSrvYrs" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.currSrvYrs" readonly="true" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtSrvYrsPoints" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.srvYrsPoints" readonly="true" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText ><html:text property="txtAvgAparPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.avgAparPts" readonly="true" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                               <TD class=tableText ><html:text property="txtAparPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.avgAparPts" readonly="true" styleClass="optional" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText ><html:text property="txtWrittenTestMarks" size="15" name="HrmPrmViewAss" onkeypress="isFloat(event)" maxlength="5" titleKey="hrm.HrmPrmViewAss.writtenTestMarks" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText ><html:text property="txtWrittenTestPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.writtenTestPts" readonly="true" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtGDMarks" size="15" name="HrmPrmViewAss" onkeypress="isFloat(event)" maxlength="5" titleKey="hrm.HrmPrmViewAss.GDMarks" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText ><html:text property="txtGDPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.GDPts" readonly="true" styleClass="optional" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtInterviewMarks" size="15" name="HrmPrmViewAss" onkeypress="isFloat(event)" maxlength="5" titleKey="hrm.HrmPrmViewAss.interviewMarks" styleClass="optional"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText><html:text property="txtInterviewPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.interviewPts" styleClass="optional" readonly="true" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText><html:text property="txtTotalPtsAwarded" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.totalPtsAwarded" styleClass="optional" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD align="center"><html:checkbox   property="txtEligProm" name="HrmPrmViewAss"  onchange='<%="doChangeDetail("+idx.toString()+");doChangeText("+idx.toString()+")"%>'  /></td> 
                                           </tr>
                            </logic:notEqual>
                            <logic:equal name="HrmPrmViewAss" property="status" value="D"  >
                                           <tr >
                                              <td><html:hidden property="itemChecked" name="HrmPrmViewAss" /><html:hidden property="status"  name="HrmPrmViewAss" /><html:hidden property="detailId"  name="HrmPrmViewAss"  /><html:hidden property="employeeId" name="HrmPrmViewAss" /><html:hidden property="hdnPrevDtlId" name="HrmPrmViewAss" /><html:hidden property="hdnPromEligibility" name="HrmPrmViewAss" /><html:hidden property="positionId" name="HrmPrmViewAss" />
                                              <html:hidden property="scaleId" name="HrmPrmViewAss" /><html:hidden property="headerPositionId" name="HrmPrmViewAss" />
                                              <html:checkbox property="checked" value="check" name="HrmPrmViewAssForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" /></td>
                                              <TD class=tableText ><html:text property="txtEmpNo" size="15" name="HrmPrmViewAss"  maxlength="6"  titleKey="hrm.HrmPrmViewAss.empNo" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                                               
                                              <TD class=tableText><html:text property="txtEmpName" size="15" name="HrmPrmViewAss"  maxlength="6"  titleKey="hrm.HrmPrmViewAss.empName" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                                               
                                              <TD class=tableText ><html:text property="txtFromPosCode" size="15" name="HrmPrmViewAss"  maxlength="6"  titleKey="hrm.HrmPrmViewAss.fromPosCode" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>    
                                              
                                              <TD class=tableText ><html:text property="txtScale" size="15" name="HrmPrmViewAss"   maxlength="9" titleKey="hrm.HrmPrmViewAss.scale" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtSrvYrs" size="15" name="HrmPrmViewAss" maxlength="9" titleKey="hrm.HrmPrmViewAss.srvYrs" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText ><html:text property="txtCurrSrvYrs" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.currSrvYrs" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtSrvYrsPoints" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.srvYrsPoints" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText ><html:text property="txtAvgAparPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.avgAparPts" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                               <TD class=tableText ><html:text property="txtAparPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.avgAparPts" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText ><html:text property="txtWrittenTestMarks" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.writtenTestMarks" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText ><html:text property="txtWrittenTestPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.writtenTestPts" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtGDMarks" size="15" name="HrmPrmViewAss"  maxlength="2" titleKey="hrm.HrmPrmViewAss.GDMarks" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText ><html:text property="txtGDPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.GDPts" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>   
                                              <TD class=tableText><html:text property="txtInterviewMarks" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.interviewMarks" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText><html:text property="txtInterviewPts" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.interviewPts" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD class=tableText><html:text property="txtTotalPtsAwarded" size="15" name="HrmPrmViewAss"  maxlength="9" titleKey="hrm.HrmPrmViewAss.totalPtsAwarded" styleClass="deletedRow" readonly="true"  onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>                                
                                              <TD align="center"><html:checkbox   property="txtEligProm" name="HrmPrmViewAss" styleClass="deletedRow"  onchange='<%="doChangeDetail("+idx.toString()+");doChangeText("+idx.toString()+")"%>'  /></td> 
                                           </tr>
                            </logic:equal>
                         </logic:iterate>
                        
                  
                     </TBODY>
                      </TABLE>
                      </DIV>
                      </TD>
                    </TR>
               <tr>
                <td colspan="6">	
                <!--Buttons for Add Row and Save row-->
                   <jsp:include page="GenDetailMenu.jsp" flush="true" />
                   <td  width="12%"></td>
		            </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 property="screenName" name="HrmPrmViewAssForm" value="HrmPrmViewAss" />
<html:hidden name="HrmPrmViewAssForm"  property="forwardedPage" />
<html:hidden property="positionRequested" name="HrmPrmViewAssForm" />
<html:hidden property="screenMode" name="HrmPrmViewAssForm"  />

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

<html:hidden property="headerPrimaryKey" name="HrmPrmViewAssForm" />
<html:hidden property="headerDataChanged" name="HrmPrmViewAssForm" />
<html:hidden property="detailDataChanged" name="HrmPrmViewAssForm" />

<!-- addded for LOV -->

<html:hidden property="lovKey" name="HrmPrmViewAssForm"  />
<html:hidden property="firstLoad" name="HrmPrmViewAssForm"  />
<html:hidden property="txtSearchFields" name="HrmPrmViewAssForm"  />
<html:hidden property="txtDisplayFields" name="HrmPrmViewAssForm"  />
<html:hidden property="txtIndex" name="HrmPrmViewAssForm"  />

<html:hidden property="siteID" name="HrmPrmViewAssForm"  />
<html:hidden property="prmID" name="HrmPrmViewAssForm"  />
<html:hidden property="toPositionID" name="HrmPrmViewAssForm"  />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >
<html:hidden property="changeEnb" name="HrmPrmViewAssForm"  />
<html:hidden property="toHeirarchy" name="HrmPrmViewAssForm"  />



</html:form>
</BODY>
</html:html>
       
<script language="javascript">

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

function doValidate(obj)
{
  return "HrmPrmViewAssValidateAction.do"; 
}
function doQueryMode()
{
  document.forms[0].changeEnb.value="S";  
  
  document.forms[0].prmNo.value="";
  document.forms[0].noticeDesc.value="";
  document.forms[0].toPosition.value="";
  document.forms[0].positionDesc.value="";
  
  return "HrmPrmViewAssQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmPrmViewAssNewModeAction.do";
}


function doExecute()
{

  return "HrmPrmViewAssGetHeaderAction.do";
}



function doDelete()
{

  return "HrmPrmViewAssDeleteAction.do";
  
}

function doRefresh()
{

  return "HrmPrmViewAssRefreshAction.do";
  
}

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

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

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

function doGetDetail()
{
  document.forms[0].changeEnb.value="T";
  document.forms[0].screenMode.value="U";
  return "HrmPrmViewAssGetDetailAction.do";
}

function doAddRow()
{

  return "HrmPrmViewAssAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmPrmViewAss";
}

function doPrevDetail()
{

  return "HrmPrmViewAssGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmPrmViewAssGetDetailPageAction.do";
}

function doJumpDetail()
{
  return  "HrmPrmViewAssGetDetailPageAction.do"; 
}
function doExit()
{
  return  "HrmPrmViewAssExitAction.do"; 
}


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



function ShowsiteID()
{
        document.forms[0].lovKey.value = "HrmPrmViewAssSiteCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
       document.forms[0].txtSearchFields.value = "hrm.HrmPrmViewAss.siteCode,hrm.HrmPrmViewAss.siteDesc";
        document.forms[0].txtDisplayFields.value = "siteID,siteCode,siteDesc";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmViewAssForm');
        return true;
        
}

function ShowprmID()
{
        document.forms[0].lovKey.value = "HrmPrmViewAssNoticeCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
       document.forms[0].txtSearchFields.value = "hrm.HrmPrmViewAss.noticeNo,hrm.HrmPrmViewAss.siteDesc";
        document.forms[0].txtDisplayFields.value = "prmID,prmNo,noticeDesc";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmViewAssForm');
        return true;
        
}

function ShowtoPositionID()
{ 
         document.forms[0].queryParam.value ="NoticeNo="+ document.forms[0].prmID.value +" " ;
        document.forms[0].lovKey.value = "HrmPrmViewAssPromotionCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
       document.forms[0].txtSearchFields.value = "hrm.HrmPrmViewAss.posCode,hrm.HrmPrmViewAss.siteDesc";
        document.forms[0].txtDisplayFields.value = "headerPrimaryKey,toPositionID,toPosition,positionDesc,toHeirarchy";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmViewAssForm');
        return true;        
}
function ShowEmployeeCode(i)
{ 
        document.forms[0].queryParam.value ="Heirarchy="+ document.forms[0].toHeirarchy.value +","+"ntcDtlId="+document.forms[0].headerPrimaryKey.value;
        document.forms[0].lovKey.value = "HrmPrmEmployeeNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmPrmViewAss.empNo,hrm.HrmPrmViewAss.empName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "employeeId,txtEmpNo,txtEmpName,positionId,scaleId,txtFromPosCode,txtScale";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmViewAssForm');
}
function ShowPositionCode(i)
{        
        document.forms[0].lovKey.value = "HrmPrmDtlPositionCode" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmPrmViewAss.fromPosCode,hrm.HrmPrmViewAss.posDesc";
        document.forms[0].txtIndex.value = i;
        document.forms[0].txtDisplayFields.value = "positionId,txtFromPosCode,txtPosDesc";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPrmViewAssForm');
}

function doOnChangeLov(lovName)
{
   if((lovName=="HrmPrmViewAssNoticeCodeHrmPrmViewAssQ" || lovName=="HrmPrmViewAssPromotionCodeHrmPrmViewAssQ") )
    {
    doBaseValidate();
    }
}

function doSave()
{
var oTable = document.getElementById(doGetDetailTableName());
    if(oTable == null)
    {
      return;
    }
    var iTr2 = parseInt(oTable.rows.length)-1;  
for(i=0; i<iTr2; i++)
{
document.getElementsByName("hdnPrevDtlId")[i].value=document.all.headerPrimaryKey.value;
document.getElementsByName("headerPositionId")[i].value=document.all.toPositionID.value;
if(document.getElementsByName("txtEligProm")[i].checked)
  {   
    document.getElementsByName("hdnPromEligibility")[i].value = "Y";
   }
  else
  {  
  document.getElementsByName("hdnPromEligibility")[i].value = "N";
  }
  } 
 
  return "HrmPrmViewAssSaveAction.do";
  
}


</script>

