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

<html:form name="HrmPersonalDtlsForm" action="HrmPersonalDtlsPFBaseAction" type="wenrgise.hrms.webtier.form.HrmEmpPersDtlForm">
<bean:define id="ParentForm" name="HrmPersonalDtlsForm" toScope="request" />
<jsp:include page="GenIconMenu.jsp" flush="true" />


<html:hidden property="detailDataChanged" name="HrmPersonalDtlsForm" />
<!--Top Most Blue Bar-->
<TABLE cellSpacing=0 bgColor=#bdd0ef>
    <tr>
        <TD  colSpan=12 class=mainHeader height=10><bean:message key="hrm.HrmEmpPersonalDetails.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 >
    <TR>
        <TD>
        
        <TABLE cellSpacing=0 cellPadding=0 >
        <!--Application Header Starts -->
              <TR>
                    <TD class=subHeader colspan=6><bean:message key="hrm.HrmEmpPersonalDetails.subHeader1" /></TD>
              </TR>
              <TR>
                    <TD colspan=6 bgColor=#4682b4><enrgise:img name="HrmPersonalDtlsForm" property="photo" height="1" src="../includes/images/photo.gif" width="1" border="0" /></TD>
              </TR>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.employeeNo" /></td>
                  <td><html:text  property="employeeNo" alt="N" titleKey="hrm.HrmEmpPersonalDetails.employeeNo" maxlength="10" size="23" styleClass="required" onchange="doChangeHeader();" readonly="true" /><enrgise:img height="16" align="center" src="../includes/images/lov.jpg" name="HrmPersonalDtlsForm"  property="butEmployeeNo" onclick="return ShowEmployeeNo()" /></td>              
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.draftFlag" /></td>
                  <td><enrgise:checkbox property="draftFlag"  name="HrmPersonalDtlsForm"  styleClass="optional" disabledClass="locked" /></td>
                 
              </tr>
             <tr>
                  <td class="labelText"></td>
                  <td></td>
                  <td class="labelText"></td>
                  <td></td>
                  <td colspan=2> </td>
                  <td width="7%"></td>
              </tr>
              <tr>
                  <td class="labelText"><bean:message key="hrm.HrmEmpPersonalDetails.employeeName" /></td>
                  <td colspan="3"><enrgise:text  property="firstName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.firstName" maxlength="100" size="37" styleClass="required" disabledClass="required" onchange="doChangeHeader();" onkeypress="isName(event)"  /><enrgise:text  property="middleName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.middleName" maxlength="100" size="37" styleClass="optional" disabledClass="optional" onchange="doChangeHeader();" onkeypress="isName(event)" />
                  <enrgise:text  property="lastName" alt="ALPHA" titleKey="hrm.HrmEmpPersonalDetails.lastName" maxlength="100" size="37" styleClass="required" disabledClass="required" onchange="doChangeHeader();"  onkeypress="isName(event)"  /></td> 
                  <td> </td>                
              </tr>
             <tr height="30">
                    <td colspan="6"></td>
             </tr>
              
         </table>
      
  
      <table cellspacing=0 cellpadding=0 border=0>
      <!-- Detail Information Row starts -->
      <TR>
       <TD colspan=6>
        <!-- Personal Details Table Starts -->
         <TABLE cellSpacing=0 cellPadding=0 >
           <tr>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPersDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersDtls','HrmEmpPersPFDtlsGetTabAction.do')" ><bean:message key="hrm.HrmEmpPersonalDetails.personalDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAddDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAddDtls','HrmEmpPersPFDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.address" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabJoiningInfo" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersJoinInf','HrmEmpPersPFDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.joiningInfo" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabEmpHist" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersEmpHst','HrmEmpPersPFDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.employeeHistory" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPriorExp" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersPriorExp','HrmEmpPersPFDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.priorExperience" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabEduDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersEduDtls','HrmEmpPersPFDtlsGetTabAction.do')"><bean:message key="hrm.HrmEmpPersonalDetails.educationDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabPFDtls" styleClass="actTabText" disabledClass="lockedTab" src="../includes/images/formtab_r.gif"      rows="2"  ><bean:message key="hrm.HrmEmpPersonalDetails.pFDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabTrngDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersTrngDtls','HrmEmpPersPFDtlsGetTabAction.do')" ><bean:message key="hrm.HrmEmpPersonalDetails.trainingDetails" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAwardDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAward','HrmEmpPersPFDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.awardDtls" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabInsDtls" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersIns','HrmEmpPersPFDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.insDtls" /></enrgise:tab>
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabHealth" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersHealth','HrmEmpPersPFDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.health" /></enrgise:tab>
                <!--<enrgise:tab name="HrmEmpPersDtlsForm" property="tabLng" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmPersLngDtls','HrmEmpPersPFDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.languageDtls" /></enrgise:tab>-->
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabRef" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersRef','HrmEmpPersPFDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.refDtls" /></enrgise:tab>
                
                <!--Added By SUBHAM For New Requirement Of Asset Details Tab -->
                
                <enrgise:tab name="HrmEmpPersDtlsForm" property="tabAsset" styleClass="disTabText" disabledClass="lockedTab" src="../includes/images/formtab_lb.gif" rows="2" onclick= "doGetTab('HrmEmpPersAsset','HrmEmpPersPFDtlsGetTabAction.do')"  ><bean:message key="hrm.HrmEmpPersonalDetails.assetDtls" /></enrgise:tab>
                
                <td width="45%"> </td>
             
     
          </tr>                  
          <TR >
          
        
 <!-- Detail table Container starts -->
              <TD colspan=40>
                <TABLE cellSpacing=0 cellPadding=0 border=0>
                  <TBODY>
                   <TR>
                     <TD >
                       <DIV id=divDtlTable style="height:270px;width:1010px" >
  			<!-- Detail table starts -->
                        <TABLE cellSpacing=0 cellPadding=0>
                         <TBODY>
                          <tr>
                            <TD class=tableHeader width="1%"><html:checkbox property="selectAll" onclick="toggleCheckBox('checked')" /></TD>
                               <TD class=tableHeader ><bean:message key="hrm.HrmEmpPersonalDetailsPF.nomineeName" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsPF.relation" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsPF.dob" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsPF.address" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsPF.percentage" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsPF.total" /></td>
                              <TD class=tableHeader ><bean:message  key="hrm.HrmEmpPersonalDetailsPF.minor" /></td>
                         </tr>
                          <logic:iterate id="HrmPersDtlsPF" name="HrmPersonalDtlsForm" property="arrEmpPersDtlPF" type="wenrgise.hrms.bean.HrmEmpPersPFDtlBean" indexId="idx" >
                              <logic:notEqual name="HrmPersDtlsPF" property="status" value="D" >
                             <tr class='<bean:write name="HrmPersonalDtlsForm" property="listRowClass"/>'  >
                                <td >
                                <html:hidden property="status"  name="HrmPersDtlsPF" />
                                <html:hidden property="detailId"  name="HrmPersDtlsPF"  />
                                <html:checkbox property="checked"  name="HrmPersonalDtlsForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                <html:hidden property="itemChecked" name="HrmPersDtlsPF" />
                                <html:hidden property="itemChecked" name="HrmPersDtlsPF"  />
                               <html:hidden property="txtRelationId" name="HrmPersDtlsPF"  />
                               <html:hidden property="txtNomineeId" name="HrmPersDtlsPF"  />
                               
                                </td>
                                <TD class=tableText ><html:text property="txtNomineeName" name="HrmPersDtlsPF" styleClass="required" style="width:85%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><enrgise:img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov.jpg" property="butRelation" alt="<%=idx.toString()%>" onclick="return ShowNominee(this.alt)" /></td>
                                <TD class=tableText><html:text property="txtRelation" name="HrmPersDtlsPF"  styleClass="locked" style="width:100%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>   
                                <TD class=tableText ><html:text property="txtDob" name="HrmPersDtlsPF" styleClass="locked" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>   
                                <TD class=tableText ><enrgise:text property="txtAddress" formName="HrmPersonalDtlsForm" name="HrmPersDtlsPF" styleClass="optional" disabledClass="required" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                <TD class=tableText ><enrgise:text property="txtPercentage" formName="HrmPersonalDtlsForm" name="HrmPersDtlsPF" styleClass="required" disabledClass="required" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                                <TD class=tableText ><enrgise:select property="txtTotalAmount" styleClass="required" name="HrmPersDtlsPF" disabledClass="locked" onchange='<%="doChangeDetail("+idx.toString()+")"%>' >
                                                                  <enrgise:option value="Y" ><bean:message  key="hrm.HrmEmpPersonalDetailsPF.Y" /></enrgise:option>      
                                                                  <enrgise:option value="N" ><bean:message key="hrm.HrmEmpPersonalDetailsPF.N" /></enrgise:option>      
                                                      </enrgise:select></td> 
                                <TD class=tableText ><enrgise:text property="txtMinorDetails" formName="HrmPersonalDtlsForm" name="HrmPersDtlsPF" styleClass="optional" disabledClass="required" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' /></td>
                            </tr>
                            </logic:notEqual>
                            <logic:equal name="HrmPersDtlsPF" property="status" value="D" >
                             <tr class='<bean:write name="HrmPersonalDtlsForm" property="listRowClass"/>'  >
                                <td >
                                <html:hidden property="status"  name="HrmPersDtlsPF" />
                                <html:hidden property="detailId"  name="HrmPersDtlsPF"  />
                                <html:checkbox property="checked"  name="HrmPersonalDtlsForm" alt="<%=idx.toString()%>" onclick="boxClicked(this.alt);" />
                                <html:hidden property="itemChecked" name="HrmPersDtlsPF" />
                                <html:hidden property="itemChecked" name="HrmPersDtlsPF"  />
                               <html:hidden property="txtRelationId" name="HrmPersDtlsPF"  />
                               <html:hidden property="txtNomineeId" name="HrmPersDtlsPF"  />
                               
                                </td>
                                <TD class=tableText ><html:text property="txtNomineeName" name="HrmPersDtlsPF" styleClass="deletedRow" style="width:85%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><img name="HrmPersonalDtlsForm" height="16" align="center" src="../includes/images/lov_dis.jpg" property="butRelation" alt="<%=idx.toString()%>" /></td>
                                <TD class=tableText><html:text property="txtRelation" name="HrmPersDtlsPF"  styleClass="deletedRow" style="width:100%" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>   
                                <TD class=tableText ><html:text property="txtDob" name="HrmPersDtlsPF" styleClass="deletedRow" style="width:92%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /><img name="butDOB" width="15" height="19" align="top"  src="../includes/images/cal_dis.gif" /></td>   
                                <TD class=tableText ><html:text property="txtAddress" name="HrmPersDtlsPF" styleClass="deletedRow" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                                <TD class=tableText ><html:text property="txtPercentage" name="HrmPersDtlsPF" styleClass="deletedRow" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                                <TD class=tableText ><html:text property="txtTotalAmount" name="HrmPersDtlsPF" styleClass="deletedRow" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                                <TD class=tableText ><html:text property="txtMinorDetails" name="HrmPersDtlsPF" styleClass="deletedRow" style="width:100%" alt="A" onchange='<%="doChangeDetail("+idx.toString()+")"%>' readonly="true" /></td>
                            </tr>
                            </logic:equal>
                        </logic:iterate>
         
           <!--Insert Logic Iterate Here-->                                                      
                     </TBODY>
                    </TABLE>
                  </DIV>
                </TD>
              </TR>                     
  
 <!-- Get details starts -->
  
                          <TABLE border=0>
                        <tbody>
                         <tr>
                          <td colspan=11>	
                              <jsp:include page="GenDetailMenu.jsp" />
                             
                          </TD>
                          <td width="7%"></td>
                      </tr>
                      
                        </tbody>
                   </TABLE>
             
                      </TBODY>
                </TABLE>
              </td>
            </tr>



        </TABLE>
     </td>
	 </tr>
 

<!-- Bottom Blue Bar -->
       <TR>
            <td>
              <TABLE  cellspacing="0" cellpadding="0" border=0>
                    <tr >
                        <td width=45% align=center bgColor=#4682b4></td>
                        <td  bgColor=#4682b4></td>
                        <td bgColor=#4682b4><enrgise:button name="HrmPersonalDtlsForm" property="butDraftSave"  onclick="return doDraftSave();"  ><u>D</u>raft<u></u> Save</enrgise:button></td>
                        <td bgColor=#4682b4></td>
                        <td align=right bgColor=#4682b4><img src="../includes/images/man.jpg"></td>
                        <td width="7%"></td>
                   </TR>
                </table>
            </td>
          </tr>
 
<!-- Container Table Ending Columns Starts-->
  </TD>
    
</TR>
</TBODY>
</TABLE>

<!-- Container Table Ends -->
<!-- These four hidden fields must be present in pages where there is a detail part -->
<!-- Common Hidden Variables-->
<html:hidden name="HrmPersonalDtlsForm" property="screenName" value="HrmEmpPersPFDtls" />
<html:hidden name="HrmPersonalDtlsForm" property="forwardedPage" />
<html:hidden name="HrmPersonalDtlsForm" property="positionRequested" />
<html:hidden name="HrmPersonalDtlsForm" property="screenMode" />

<html:hidden property="txtIndex" name="HrmPersonalDtlsForm"  />
<html:hidden property="userPageRequested" name="HrmPersonalDtlsForm" />
<html:hidden property="userPositionRequested"  name="HrmPersonalDtlsForm" />
<html:hidden property="pageRequested"  name="HrmPersonalDtlsForm" />
<html:hidden property="selectAll" value="check" name="HrmPersonalDtlsForm" />

<html:hidden property="lovKey" name="HrmPersonalDtlsForm"  />
<html:hidden property="txtSearchFields" name="HrmPersonalDtlsForm"  />
<html:hidden property="txtDisplayFields" name="HrmPersonalDtlsForm"  />
<html:hidden property="headerPrimaryKey" name="HrmPersonalDtlsForm" />
<html:hidden property="headerDataChanged" name="HrmPersonalDtlsForm" />
<input type="hidden" name="multipleFlag" >
<input type="hidden" name="queryParam" >

<html:hidden property="firstLoad" name="HrmPersonalDtlsForm" />

<!-- Screen Specific variables -->
<html:hidden property="empNumberId" name="HrmPersonalDtlsForm"  />

<html:hidden property="draftSave" name="HrmPersonalDtlsForm"  />
<html:hidden property="empId" name="HrmPersonalDtlsForm" />
<!-- Hidden fields end -->

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

<script language="javascript">
function doChangeHeader()
{
 document.forms[0].headerDataChanged.value="true";
}
function doDraftSave()
{
 document.getElementsByName("draftSave")[0].value="true";
 return doBaseSave();
}
function doChangeHeader()
{
 document.getElementsByName("headerDataChanged")[0].value="true"; 
 //document.forms[0].headerDataChanged.value="true";
}

function doQueryMode()
{
 
  return "HrmPersonalDtlsPFQueryModeAction.do";
}


function doInsertMode()
{

  return "HrmPersonalDtlsPFNewModeAction.do";
}


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

function doSave()
{
  document.getElementsByName("headerDataChanged")[0].value="Y";
  //document.forms[0].headerDataChanged.value="Y";
  return "HrmPersonalDtlsPFSaveAction.do";
  
}

function doDelete()
{

  return "HrmPersonalDtlsPFDeleteAction.do";
  
}

function doRefresh()
{

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

  return "HrmPersonalDtlsPFExitAction.do";
  
}
function doPrevHeader()
{
  return "HrmPersonalDtlsPFGetNextHeaderAction.do"; 
}

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

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

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

function doAddRow()
{

  return "HrmPersonalDtlsPFAddRowAction.do"; 
}

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

function doGetDetailTableName()
{
  return "HrmPersonalDtlsPFBatch";
}

function doPrevDetail()
{

  return "HrmPersonalDtlsPFGetDetailPageAction.do";  
}

function doNextDetail()
{

  return "HrmPersonalDtlsPFGetDetailPageAction.do";
}

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


function doGetInsertData()
{

}
function ShowEmployeeNo()
{
        document.forms[0].queryParam.value ="employeeId="+ document.forms[0].empId.value ;
        document.forms[0].lovKey.value = "PFDtlsEmpNo" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetails.employeeNo,hrm.HrmEmpPersonalDetailsAddress.name";
        document.forms[0].txtDisplayFields.value = "empNumberId,employeeNo,firstName,middleName,lastName";
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        return true;
        
}
function ShowNominee(i)
{
        document.forms[0].lovKey.value = "PFDtlsNominee" + document.forms[0].screenName.value + document.forms[0].screenMode.value;
        document.forms[0].txtSearchFields.value = "hrm.HrmEmpPersonalDetailsPF.nomineeName";
        document.forms[0].txtIndex.value = i;
        document.forms[0].queryParam.value="employeeNo="+ document.forms[0].employeeNo.value ;
        document.forms[0].txtDisplayFields.value = "txtRelationId,txtNomineeName,txtRelation,txtDob";
        
        document.forms[0].multipleFlag.value = "false";
        showLov('<html:rewrite page="/hrms/jsp/CommonSearchScreen.jsp" />','HrmPersonalDtlsForm');
        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>    