﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <xsl:variable name ="Finance" select ="normalize-space(WeeklySettings/Finance)"></xsl:variable>
    <xsl:variable name ="Family" select ="normalize-space(WeeklySettings/Family)"></xsl:variable>
    <xsl:variable name ="Fun" select ="normalize-space(WeeklySettings/Fun)"></xsl:variable>
    <xsl:variable name ="Faith" select ="normalize-space(WeeklySettings/Faith)"></xsl:variable>
    <xsl:variable name ="Fitness" select ="normalize-space(WeeklySettings/Fitness)"></xsl:variable>
    <div id="div_WeeklyEmailDigest">
      <div id="div_WeeklyEmailDigest_Close" style="margin-top:5px; margin-right:5px; text-align:right; display: none;">
        <span class="link" onclick="return CloseItemBox('div_WeeklyEmailDigest','-99')">[ X ]</span>
      </div>
      <div style="margin:10px;">
        <span class="labelHeader">
          To receive communications from our Virtual Coaches, please select below:
        </span>
      </div>
      <div>
        <table class="tableMaster">
          <tr style="margin:10px;">
            <td width="10%"></td>
            <td width="50%"></td>
            <td width="15%"></td>
            <td width="15%"></td>
            <td width="10%"></td>
          </tr>
          <tr>
            <td></td>
            <td class="labelBold">Enable Health and Fitness Coach</td>
            <xsl:if test ="$Fitness != 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FitnessYes" type="radio" name="WDChoicesFitness" value="1" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FitnessNo" type="radio" name="WDChoicesFitness" value="0" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <xsl:if test ="$Fitness = 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FitnessYes" type="radio" name="WDChoicesFitness" value="1" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FitnessNo" type="radio" name="WDChoicesFitness" value="0" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td class="labelBold">Enable Finance and Career Coach</td>
            <xsl:if test ="$Finance != 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FinanceYes" type="radio" name="WDChoicesFinance" value="1" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FinanceNo" type="radio" name="WDChoicesFinance" value="0" class="label" checked="true"
                       onclick="return Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <xsl:if test ="$Finance = 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FinanceYes" type="radio" name="WDChoicesFinance" value="1" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FinanceNo" type="radio" name="WDChoicesFinance" value="0" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td class="labelBold">Enable Travel and Entertainment Coach</td>
            <xsl:if test ="$Fun != 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FunYes" type="radio" name="WDChoicesFun" value="1" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FunNo" type="radio" name="WDChoicesFun" value="0" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <xsl:if test ="$Fun = 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FunYes" type="radio" name="WDChoicesFun" value="1" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FunNo" type="radio" name="WDChoicesFun" value="0" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td class="labelBold">Enable Family and Household Coach</td>
            <xsl:if test ="$Family !=1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FamilyYes" type="radio" name="WDChoicesFamily" value="1" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FamilyNo" type="radio" name="WDChoicesFamily" value="0" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <xsl:if test="$Family = 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FamilyYes" type="radio" name="WDChoicesFamily" value="1" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FamilyNo" type="radio" name="WDChoicesFamily" value="0" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td class="labelBold">Enable Spirituality and Contribution Coach</td>
            <xsl:if test ="$Faith != 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FaithYes" type="radio" name="WDChoicesFaith" value="1" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FaithNo" type="radio" name="WDChoicesFaith" value="0" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <xsl:if test ="$Faith = 1">
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FaithYes" type="radio" name="WDChoicesFaith" value="1" class="label" checked="true"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  Yes
                </input>
              </td>
              <td>
                <input id="div_WeeklyEmailDigest_Choices_FaithNo" type="radio" name="WDChoicesFaith" value="0" class="label"
                       onclick="Settings_saveVirtualCoachSettings(
                       'div_WeeklyEmailDigest_Choices_FitnessYes','div_WeeklyEmailDigest_Choices_FitnessNo',
                       'div_WeeklyEmailDigest_Choices_FinanceYes','div_WeeklyEmailDigest_Choices_FinanceNo',
                       'div_WeeklyEmailDigest_Choices_FunYes','div_WeeklyEmailDigest_Choices_FunNo',
                       'div_WeeklyEmailDigest_Choices_FamilyYes','div_WeeklyEmailDigest_Choices_FamilyNo',
                       'div_WeeklyEmailDigest_Choices_FaithYes','div_WeeklyEmailDigest_Choices_FaithNo','4')">
                  No
                </input>
              </td>
            </xsl:if>
            <td></td>
          </tr>
        </table>
      </div>
    </div>
  </xsl:template>
</xsl:stylesheet>
