<%@ taglib uri="/tags/struts-bean-el" prefix="bean-el" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html-el" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/tags/esr-core" prefix="esrcore" %>
<%@ taglib uri="/tags/fw" prefix="fw" %>

<c:set var="expandableSectionCollapsed" scope="page"><bean-el:message key="label.expandableSectionCollapsed"/></c:set>
<c:set var="mmddyyyyText" scope="page"><bean-el:message key="label.mmddyyyy"/></c:set>

<script src="../scripts/ESR-Script.js" type="text/javascript"></script>
<c:if test="${financialDetailsForm.allowedToAddFinancials == 'false'}">
	<c:set var="financialsUpdateAllowed" value="false"></c:set>
</c:if>
<c:if test="${financialDetailsForm.allowedToEditFinancials == 'false'}">
	<c:set var="financialsUpdateAllowed" value="false"></c:set>
</c:if>
   <html-el:hidden property="sourceOfTest" />

<c:set var="finacialsReadOnlyData" value="false"></c:set>
<c:if test="${financialsUpdateAllowed == 'false'}">
	<c:set var="finacialsReadOnlyData" value="true"></c:set>
</c:if>

<c:set var="netWorthReadOnlyData" value="false"></c:set>
<c:if test="${financialDetailsForm.allowedToUpdateNetWorth == 'false'}">
    <c:set var="netWorthReadOnlyData" value="true"></c:set>
</c:if>

<table border="0" width="100%" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role = "presentation">
<tr><td>
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role = "presentation">
	<tr><td colspan="5" >
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellLowTableHead" role = "presentation">
		<tr>
		  <td class="moduleBrownBox"><img alt=""  src="../images/spacer.gif" width="29" height="1"/></td>
		  <td style="padding: 7 7" nowrap><bean:message key="label.income.title"/></td>
		</tr>			
	</table>
	</td></tr>	
</table>
<table summary="List of Incomes" role = "presentation">
  <tr> 
    <thead>
    <th scope="col" width="28%" class="moduleLabel"><div align="left"><font size="2"></font></div></th>
    <th scope="col" width="18%" class="moduleLabel"><div align="center">
		<bean:message key="label.income.totalEmployment"/></div></th>
    <th scope="col" width="18%" class="moduleLabel"><div align="center">
		<bean:message key="label.income.ranchFarm"/></div></th>
    <th scope="col" width="18%" class="moduleLabel"><div align="center">
		<bean:message key="label.income.other"/></div></th>
    <th scope="col" width="18%" class="moduleLabel">&nbsp;</th>
  </tr>
  </thead>
  
  <c:set var="incomeTotalEmploymentLabel"><bean-el:message key="label.income.totalEmployment"/></c:set>
  <c:set var="incomeRanchFarmLabel"><bean-el:message key="label.income.ranchFarm"/></c:set>
  <c:set var="incomeOtherLabel"><bean-el:message key="label.income.other"/></c:set>
  
  <tbody>
  <tr> 
    <td scope="row" class="moduleLabel"><div align="left"><esrcore:displayValue name="financialDetailsForm" property="displayName"/></div></td>
    <td class="moduleLabel"><div align="center">$ 
      <fw:label property="totalEmploymentIncome" forId="totalEmploymentIncomeId"><span style="display:none">totalEmploymentIncome</span></fw:label>
      <html-el:text title="${financialDetailsForm.name}'s ${incomeTotalEmploymentLabel} ($)" styleId="totalEmploymentIncomeId" styleClass="moduleEdit" property="totalEmploymentIncome" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue"><div align="center">$ 
      <fw:label property="netIncomeFromFarmRanchOrBusiness" forId="netIncomeFromFarmRanchOrBusinessId"><span style="display:none">netIncomeFromFarmRanchOrBusiness</span></fw:label>
      <html-el:text title="${financialDetailsForm.name}'s ${incomeRanchFarmLabel} ($)" styleClass="moduleEdit" property="netIncomeFromFarmRanchOrBusiness" styleId="netIncomeFromFarmRanchOrBusinessId" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue"><div align="center">$ 
      <fw:label property="otherIncome" forId="otherIncomeId"><span style="display:none">otherIncome</span></fw:label>
      <html-el:text title="${financialDetailsForm.name}'s ${incomeOtherLabel} ($)" styleClass="moduleEdit" property="otherIncome" styleId="otherIncomeId" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue">&nbsp;</td>
  </tr>

<c:if test="${not empty financialDetailsForm.spouseInfo.financialsId}">   
  <tr> 
    <td scope="row" class="moduleLabel"><div align="left"><esrcore:displayValue name="financialDetailsForm" property="spouseInfo.displayName"/></div></td>
    <td class="moduleLabel"><div align="center">$ 
    	<fw:label property="spouseInfo.totalEmploymentIncome" forId="spouseInfoTotalEmploymentIncomeId"><span style="display:none">spouseInfoTotalEmploymentIncome</span></fw:label>
    	<html-el:text title="${financialDetailsForm.spouseInfo.name}'s ${incomeTotalEmploymentLabel} ($)" styleClass="moduleEdit" styleId="spouseInfoTotalEmploymentIncomeId" property="spouseInfo.totalEmploymentIncome" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue"><div align="center">$ 
        <fw:label property="spouseInfo.netIncomeFromFarmRanchOrBusiness" forId="spouseInfoNetIncomeFromFarmRanchOrBusId"><span style="display:none">spouseInfoNetIncomeFromFarmRanchOrBus</span></fw:label>
    	<html-el:text title="${financialDetailsForm.spouseInfo.name}'s ${incomeRanchFarmLabel} ($)" styleClass="moduleEdit" property="spouseInfo.netIncomeFromFarmRanchOrBusiness" styleId="spouseInfoNetIncomeFromFarmRanchOrBusId" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue"><div align="center">$ 
        <fw:label property="spouseInfo.otherIncome" forId="spouseInfoOtherIncomeId"><span style="display:none">spouseInfoOtherIncome</span></fw:label>
    	<html-el:text title="${financialDetailsForm.spouseInfo.name}'s ${incomeOtherLabel} ($)" styleClass="moduleEdit" styleId="spouseInfoOtherIncomeId" property="spouseInfo.otherIncome" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue">&nbsp;</td>
  </tr>
</c:if>

<!-- Inactive spouse details -->
<c:if test="${not empty financialDetailsForm.spouseFinacialsIdList}"> 
 <c:forEach var="spouseInfo" items="${financialDetailsForm.spouseFinacialsIdList}" varStatus="status">
  <c:set var="counter" value="${status.count - 1}" />
  <c:set var="activeSpouse" value="${financialDetailsForm.spouseActiveList[counter]}" />
  <c:if test="${not activeSpouse}">
      <html-el:hidden property="spouseTotalIncome[${counter}]"/>
	  <html-el:hidden property="spouseIncomeFromRanch[${counter}]"/>
	  <html-el:hidden property="spouseOtherIncome[${counter}]"/>			  
  </c:if>		 
  <tr> 
    <td scope="row" class="moduleLabel"><div align="left"><c:out value="${financialDetailsForm.spouseNameList[counter]}" />
    (<c:out value="${financialDetailsForm.spouseRelationshipList[counter]}" />)</div></td>
    <td class="moduleLabel"><div align="center">$ 
    	<fw:label property="spouseTotalIncome[${counter}]" forId="spouseTotalIncome[${counter}]_id"><span style="display:none">spouseTotalIncome</span></fw:label>
    	<html-el:text title="${financialDetailsForm.spouseNameList[counter]}'s ${incomeTotalEmploymentLabel} ($)" styleClass="moduleEdit" styleId="spouseTotalIncome[${counter}]_id" property="spouseTotalIncome[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or not activeSpouse}"/>
                </div></td>
    <td class="moduleValue"><div align="center">$ 
    	<fw:label property="spouseIncomeFromRanch[${counter}]" forId="spouseIncomeFromRanch[${counter}]_id"><span style="display:none">spouseIncomeFromRanch</span></fw:label>
    	<html-el:text title="${financialDetailsForm.spouseNameList[counter]}'s ${incomeRanchFarmLabel} ($)" styleClass="moduleEdit" styleId="spouseIncomeFromRanch[${counter}]_id" property="spouseIncomeFromRanch[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or not activeSpouse}"/>
      </div></td>
    <td class="moduleValue"><div align="center">$ 
    	<fw:label property="spouseOtherIncome[${counter}]" forId="spouseOtherIncome[${counter}]_id"><span style="display:none">spouseOtherIncome</span></fw:label>
    	<html-el:text title="${financialDetailsForm.spouseNameList[counter]}'s ${incomeOtherLabel} ($)" styleClass="moduleEdit" styleId="spouseOtherIncome[${counter}]_id" property="spouseOtherIncome[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or not activeSpouse}"/>
      </div></td>
    <td class="moduleValue">&nbsp;</td>
  </tr>
  
  <html-el:hidden property="spouseUSCivilServiceIncome[${counter}]" />
  <html-el:hidden property="spouseInterestDividentAnuityIncome[${counter}]" />
  <html-el:hidden property="spouseUnemploymentIncome[${counter}]" />
  <html-el:hidden property="spouseSocialSecurityIncome[${counter}]" />
  <html-el:hidden property="spouseMilitaryRetirementIncome[${counter}]" />
  <html-el:hidden property="spouseRailroadRetirementIncome[${counter}]" />
  <html-el:hidden property="spouseOtherRetirementIncome[${counter}]" />
  <html-el:hidden property="spouseWorkersCompIncome[${counter}]" />
  <html-el:hidden property="spouseStocksAsset[${counter}]" />
  
 </c:forEach>
</c:if> 
	  	  	  
<c:if test="${not empty financialDetailsForm.depFinacialsIdList}"> 
 <c:forEach var="depInfo" items="${financialDetailsForm.depFinacialsIdList}" varStatus="status">
  <c:set var="counter" value="${status.count - 1}" />
 
  <tr> 
    <td scope="col" class="moduleLabel"><div align="left"><c:out value="${financialDetailsForm.depNameList[counter]}" />
    (<c:out value="${financialDetailsForm.depRelationshipList[counter]}" />)</div></td>
    <td class="moduleLabel"><div align="center">$ 
    	<fw:label property="depTotalIncome[${counter}]" forId="depTotalIncome[${counter}]_id"><span style="display:none">depTotalIncome</span></fw:label>
    	<html-el:text title="${financialDetailsForm.depNameList[counter]}'s ${incomeTotalEmploymentLabel} ($)" styleId="depTotalIncome[${counter}]_id" styleClass="moduleEdit" property="depTotalIncome[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
                </div></td>
    <td class="moduleValue"><div align="center">$ 
        <fw:label property="depIncomeFromRanch[${counter}]" forId="depIncomeFromRanch[${counter}]_id"><span style="display:none">depIncomeFromRanch</span></fw:label>
    	<html-el:text title="${financialDetailsForm.depNameList[counter]}'s ${incomeRanchFarmLabel} ($)" styleId="depIncomeFromRanch[${counter}]_id" styleClass="moduleEdit" property="depIncomeFromRanch[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue"><div align="center">$ 
    	<fw:label property="depOtherIncome[${counter}]" forId="depOtherIncome[${counter}]_id"><span style="display:none">depOtherIncome</span></fw:label>
    	<html-el:text title="${financialDetailsForm.depNameList[counter]}'s ${incomeOtherLabel} ($)" styleClass="moduleEdit" property="depOtherIncome[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
      </div></td>
    <td class="moduleValue">&nbsp;</td>
  </tr>
  
  <html-el:hidden property="depUSCivilServiceIncome[${counter}]" />
  <html-el:hidden property="depInterestDividentAnuityIncome[${counter}]" />
  <html-el:hidden property="depUnemploymentIncome[${counter}]" />
  <html-el:hidden property="depSocialSecurityIncome[${counter}]" />
  <html-el:hidden property="depMilitaryRetirementIncome[${counter}]" />
  <html-el:hidden property="depRailroadRetirementIncome[${counter}]" />
  <html-el:hidden property="depOtherRetirementIncome[${counter}]" />
  <html-el:hidden property="depWorkersCompIncome[${counter}]" />
  <html-el:hidden property="depStocksAsset[${counter}]" />
  
 </c:forEach>
</c:if> 
 </tbody>
 
</table>
	  
          <table border="0" width="100%" cellpadding="0" cellspacing="0" class="moduleShellTableBody" role = "presentation">
	          <tr><td colspan="5" >
	          <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellLowTableHead" role = "presentation">
				<tr>
				  <td class="moduleBrownBox"><img alt=""  src="../images/spacer.gif" width="29" height="1"/></td>
				  <td style="padding: 7 7" nowrap><bean:message key="label.expense.title"/></td>
				</tr>			
			  </table>
	          </td></tr>
</table>
<table summary="List of Expenses" role = "presentation">
	    <thead>
            <tr> 
	            <th scope="col" width="28%" class="moduleLabel">&nbsp;</th>
	            <th scope="col" width="18%" class="moduleLabel"><div align="center">
				  	<bean:message key="label.expense.edu"/></div></th>
	            <th scope="col" width="18%" class="moduleLabel"><div align="center">
				  	<bean:message key="label.expense.nonReimbMedical"/></div></th>
	            <th scope="col" width="18%" class="moduleLabel"><div align="center">
				  	<bean:message key="label.expense.adjustedMedical"/></div></th>
	            <th scope="col" width="18%" class="moduleLabel"><div align="center">
				  	<bean:message key="label.expense.funeral"/></div></th>
			</tr>
	    </thead>
	    

  	      <c:set var="expenseEduLabel"><bean-el:message key="label.expense.edu"/></c:set>
  	      <c:set var="expenseNonReimbMedicalLabel"><bean-el:message key="label.expense.nonReimbMedical"/></c:set>
  	      <c:set var="expenseAdjustedMedicalLabel"><bean-el:message key="label.expense.adjustedMedical"/></c:set>
	      <c:set var="expenseFuneralLabel"><bean-el:message key="label.expense.funeral"/></c:set>
	      
	    <tbody>
            <tr> 
              <td scope="row" class="moduleLabel"><div align="left"><esrcore:displayValue name="financialDetailsForm" property="displayName"/>
                </div></td>
              <td class="moduleValue"><div align="center">$ 
                <fw:label property="educationExpense" forId="educationExpenseId"><span style="display:none">educationExpense</span></fw:label>
              	<html-el:text title="${financialDetailsForm.name}'s ${expenseEduLabel} ($)" styleClass="moduleEdit" styleId="educationExpenseId" name="financialDetailsForm" property="educationExpense" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
                </div></td>
              <td class="moduleLabel"><div align="center">$ 
                <fw:label property="nonReimbMedicalExpense" forId="nonReimbMedicalExpenseId"><span style="display:none">nonReimbMedicalExpense</span></fw:label>
              	<html-el:text title="${financialDetailsForm.name}'s ${expenseNonReimbMedicalLabel} ($)"  styleClass="moduleEdit" styleId="nonReimbMedicalExpenseId" name="financialDetailsForm" property="nonReimbMedicalExpense" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
                </div></td>
              <td class="moduleValue"><div align="center">$ 
                 <fw:label property="adjustedMedicalExpense" forId="adjustedMedicalExpenseId"><span style="display:none">adjustedMedicalExpense</span></fw:label>
              	 <html-el:text title="${financialDetailsForm.name}'s ${expenseAdjustedMedicalLabel} ($)"  styleClass="moduleEdit" styleId="adjustedMedicalExpenseId" name="financialDetailsForm" property="adjustedMedicalExpense" size="15" maxlength="15" readonly="true"/>
				</div></td>
                <td class="moduleValue"><div align="center">$ 
                <fw:label property="funeralBurialExpense" forId="funeralBurialExpenseId"><span style="display:none">funeralBurialExpense</span></fw:label>
              	<html-el:text title="${financialDetailsForm.name}'s ${expenseFuneralLabel} ($)"  styleClass="moduleEdit" styleId="funeralBurialExpenseId" name="financialDetailsForm" property="funeralBurialExpense" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
                </div></td>
            </tr>

		
<c:if test="${not empty financialDetailsForm.depFinacialsIdList}"> 
 <c:forEach var="depInfo" items="${financialDetailsForm.depFinacialsIdList}" varStatus="status">
  <c:set var="counter" value="${status.count - 1}" />
			
            <tr> 
              <td class="moduleLabel"><div align="left"><c:out value="${financialDetailsForm.depNameList[counter]}" />
			  (<c:out value="${financialDetailsForm.depRelationshipList[counter]}" />)</div></td>
              <td class="moduleValue"><div align="center">$ 
                <fw:label property="depEduExpenses[${counter}]" forId="depEduExpenses[${counter}]_id"><span style="display:none">depEduExpenses</span></fw:label>
              	<html-el:text  title="${financialDetailsForm.depNameList[counter]}'s ${expenseEduLabel} ($)"  styleClass="moduleEdit" styleId="depEduExpenses[${counter}]_id" property="depEduExpenses[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData}"/>
                </div></td>
              <td class="moduleLabel"><div align="center"></div></td>
              <td class="moduleValue"><div align="center"></div></td>
              <td class="moduleValue"><div align="center"></div></td>
            </tr>
 </c:forEach>
</c:if> 
         </tbody>

 
          </table>
	  <table border="0" cellpadding="0" cellspacing="0" width="100%" class="moduleShellTableBody" role = "presentation">
	  <tr><td colspan="5" >
	   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="moduleShellLowTableHead" role = "presentation">
		<tr>
		  <td class="moduleBrownBox"><img alt=""  src="../images/spacer.gif" width="29" height="1"/></td>
		  <td style="padding: 7 7" nowrap><bean:message key="label.asset.title"/></td>
		</tr>			
	   </table>
	  </td></tr>	
	 </table>
	 <table summary="List of Assets" role = "presentation">
	  <thead>
      <tr> 
	      <th scope="col" width="28%" class="moduleLabel"><div align="left"></div></th>
	      <th scope="col" width="18%" class="moduleLabel"><div align="center">
				<bean:message key="label.asset.cash"/></div></th>
	      <th scope="col" width="18%" class="moduleLabel"><div align="center">
				<bean:message key="label.asset.real"/></div></th>
	      <th scope="col" width="18%" class="moduleLabel"><div align="center">
				<bean:message key="label.asset.other"/></div></th>
	      <th scope="col" width="18%" class="moduleLabel">&nbsp;</th>
      </tr>
      </thead>
      
      <c:set var="assetCashLabel"><bean-el:message key="label.asset.cash"/></c:set>
      <c:set var="assetRealLabel"><bean-el:message key="label.asset.real"/></c:set>
      <c:set var="assetOtherLabel"><bean-el:message key="label.asset.other"/></c:set>
      
      <tbody>
	  <tr> 
        <td scope="row" class="moduleLabel"><div align="left"><esrcore:displayValue name="financialDetailsForm" property="displayName"/></div></td>
        <td class="moduleLabel"><div align="center">$ 
            <fw:label property="cashAndBankAccountAsset" forId="cashAndBankAccountAssetId"><span style="display:none">cashAndBankAccountAsset</span></fw:label>
      		<html-el:text title="${financialDetailsForm.name}'s ${assetCashLabel} ($)" styleClass="moduleEdit" styleId="cashAndBankAccountAssetId" name="financialDetailsForm" property="cashAndBankAccountAsset" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue"><div align="center">$ 
            <fw:label property="realPropertyAsset" forId="realPropertyAssetId"><span style="display:none">realPropertyAsset</span></fw:label>
      		<html-el:text title="${financialDetailsForm.name}'s ${assetRealLabel} ($)" styleClass="moduleEdit" styleId="realPropertyAssetId" name="financialDetailsForm" property="realPropertyAsset" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue"><div align="center">$
            <fw:label property="otherPropertyAsset" forId="otherPropertyAssetId"><span style="display:none">otherPropertyAsset</span></fw:label> 
      		<html-el:text title="${financialDetailsForm.name}'s ${assetOtherLabel} ($)" styleClass="moduleEdit" styleId="otherPropertyAssetId" name="financialDetailsForm" property="otherPropertyAsset" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue">&nbsp;</td>
      </tr>

<c:if test="${not empty financialDetailsForm.spouseInfo.financialsId}">   
      
	  <tr> 
        <td class="moduleLabel"><div align="left"><esrcore:displayValue name="financialDetailsForm" property="spouseInfo.displayName"/></div></td>
        <td class="moduleLabel"><div align="center">$ 
            <fw:label property="spouseInfo.cashAndBankAccountAsset" forId="spouseInfoCashAndBankAccountAssetId"><span style="display:none">spouseInfoCashAndBankAccountAsset</span></fw:label>
    		<html-el:text title="${financialDetailsForm.spouseInfo.name}'s ${assetCashLabel} ($)" styleClass="moduleEdit" styleId="spouseInfoCashAndBankAccountAssetId" property="spouseInfo.cashAndBankAccountAsset" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue"><div align="center">$ 
            <fw:label property="spouseInfo.realPropertyAsset" forId="spouseInfoRealPropertyAssetId"><span style="display:none">spouseInfoRealPropertyAsset</span></fw:label>
    		<html-el:text title="${financialDetailsForm.spouseInfo.name}'s ${assetRealLabel} ($)"  styleClass="moduleEdit" styleId="spouseInfoRealPropertyAssetId" property="spouseInfo.realPropertyAsset" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
			</div></td>
        <td class="moduleValue"><div align="center">$ 
            <fw:label property="spouseInfo.otherPropertyAsset" forId="spouseInfoOtherPropertyAssetId"><span style="display:none">spouseInfoOtherPropertyAsset</span></fw:label>
    		<html-el:text title="${financialDetailsForm.spouseInfo.name}'s ${assetOtherLabel} ($)"  styleClass="moduleEdit" styleId="spouseInfoOtherPropertyAssetId" property="spouseInfo.otherPropertyAsset" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue">&nbsp;</td>
      </tr>
	  
</c:if>
	  
<c:if test="${not empty financialDetailsForm.spouseFinacialsIdList}"> 
 <c:forEach var="spouseInfo" items="${financialDetailsForm.spouseFinacialsIdList}" varStatus="status">
  <c:set var="counter" value="${status.count - 1}" />
  <c:set var="activeSpouse" value="${financialDetailsForm.spouseActiveList[counter]}" />
  <c:if test="${not activeSpouse}">
      <html-el:hidden property="spouseCashAsset[${counter}]"/>
	  <html-el:hidden property="spouseRealAsset[${counter}]"/>
	  <html-el:hidden property="spouseOtherAsset[${counter}]"/>			  
  </c:if>		  
      <tr> 
        <td class="moduleLabel"><div align="left"><c:out value="${financialDetailsForm.spouseNameList[counter]}" /> 
		(<c:out value="${financialDetailsForm.spouseRelationshipList[counter]}" />)</div></td>
        <td class="moduleLabel"><div align="center">$ 
            <fw:label property="spouseCashAsset[${counter}]" forId="spouseCashAsset[${counter}]_Id"><span style="display:none">spouseCashAsset</span></fw:label>
        	<html-el:text  title="${financialDetailsForm.spouseNameList[counter]}'s ${assetCashLabel} ($)" styleClass="moduleEdit" styleId="spouseCashAsset[${counter}]_Id" property="spouseCashAsset[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or not activeSpouse or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue"><div align="center">$ 
            <fw:label property="spouseRealAsset[${counter}]" forId="spouseRealAsset[${counter}]_Id"><span style="display:none">spouseRealAsset</span></fw:label>
        	<html-el:text  title="${financialDetailsForm.spouseNameList[counter]}'s ${assetRealLabel} ($)" styleClass="moduleEdit" styleId="spouseRealAsset[${counter}]_Id" property="spouseRealAsset[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or not activeSpouse or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue"><div align="center">$ 
            <fw:label property="spouseOtherAsset[${counter}]" forId="spouseOtherAsset[${counter}]_Id"><span style="display:none">spouseOtherAsset</span></fw:label>
        	<html-el:text  title="${financialDetailsForm.spouseNameList[counter]}'s ${assetOtherLabel} ($)"  styleClass="moduleEdit" property="spouseOtherAsset[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or not activeSpouse or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue">&nbsp;</td>
      </tr>
	  
  </c:forEach>
</c:if> 
		  		  
<c:if test="${not empty financialDetailsForm.depFinacialsIdList}"> 
 <c:forEach var="depInfo" items="${financialDetailsForm.depFinacialsIdList}" varStatus="status">
  <c:set var="counter" value="${status.count - 1}" />
	  
      <tr> 
        <td class="moduleLabel"><div align="left"><c:out value="${financialDetailsForm.depNameList[counter]}" /> 
		(<c:out value="${financialDetailsForm.depRelationshipList[counter]}" />)</div></td>
        <td class="moduleLabel"><div align="center">$ 
            <fw:label property="depCashAsset[${counter}]" forId="depCashAsset[${counter}]_Id"><span style="display:none">depCashAsset</span></fw:label>
        	<html-el:text  title="${financialDetailsForm.depNameList[counter]}'s ${assetCashLabel} ($)" styleClass="moduleEdit" styleId="depCashAsset[${counter}]_Id" property="depCashAsset[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue"><div align="center">$ 
            <fw:label property="depRealAsset[${counter}]" forId="depRealAsset[${counter}]_Id"><span style="display:none">depRealAsset</span></fw:label>
        	<html-el:text  title="${financialDetailsForm.depNameList[counter]}'s ${assetRealLabel} ($)" styleClass="moduleEdit" styleId="depRealAsset[${counter}]_Id" property="depRealAsset[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue"><div align="center">$ 
            <fw:label property="depOtherAsset[${counter}]" forId="depOtherAsset[${counter}]_Id"><span style="display:none">depOtherAsset</span></fw:label>
        	<html-el:text  title="${financialDetailsForm.depNameList[counter]}'s ${assetOtherLabel} ($)"  styleClass="moduleEdit" property="depOtherAsset[${counter}]" size="15" maxlength="15" readonly="${finacialsReadOnlyData or netWorthReadOnlyData}"/>
          </div></td>
        <td class="moduleValue">&nbsp;</td>
      </tr>
	  
  </c:forEach>
</c:if> 
</tbody>
</table>

   </td>
  </tr>
 </table>   