<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output omit-xml-declaration="yes"/>
<xsl:output method="html"/>

	<xsl:template match="/">
		<table cellspacing="0" class="cpsDialogPageTable">
			<tr valign="top" unselectable="on">
				<td unselectable="on" colspan="3" class="QBCPSLogoBanner">
					<div unselectable="on" class="QBRSLogoBannerHeader" width="100%">
						<img style="vertical-align:middle;" border="0" ID="I_5" src="images/insurance.gif" tabindex="-1"/>
						Supplemental Insurance Services
					</div>
				</td>
			</tr>
			<tr valign="top">
				<td class="cpsDialogPanel" colspan="2">
					<table cellspacing="0">
						<tr>
							<td colspan="2" class="cpsDialogTitle">
								Select AFLAC Products to Set Up
							</td>
						</tr>
						<tr>
							<td class="cpsValidationMessages" colspan="2">
								<span class="validationException" id="ErrorMessage">
								</span>
							</td>
						</tr>
						<tr>
							<td colspan="2" class="cpsDialogInstruction">
								Select the products you have set up with AFLAC for your plan.  You can choose to set up a pre-tax and post-tax deduction for each AFLAC product.
							</td>
						</tr>
						<tr><td colspan="2">&#160;</td></tr>
						<tr>
							<td valign="top" colspan="2">
								<table cellspacing="0" width="100%">
									<tr>
										<td width="100%">
										<form name="theForm">
											<table class="inputFieldTABLE" cellspacing="2" width="90%">
												<tr class="QBRSTableHeader">
													<td align="left" width="6%"></td>
													<td align="left" width="34%">Pre-Tax Products **</td>
													<td align="left" width="6%"></td>
													<td align="left" width="34%">Post-Tax Products</td>

												</tr>

												<xsl:apply-templates select="QBXML/AflacProductsQueryRq/AFLAC/AflacProducts"/>
											</table>
										</form>
											<xsl:call-template name="SelectAllButton"/>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<xsl:call-template name="ActionButtons"/>
					</table>
				</td>
				<td class="cpsDialogFAQHelp">
					<xsl:call-template name="QBRSHelp">
						<xsl:with-param name="ModuleName" select="'AFLAC'"/>
						<xsl:with-param name="ScreenName" select="'ProductsSetup'"/>
					</xsl:call-template>
				</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template match="AflacProducts">
		<tr style="display:inline" class="cpsPayrollOption">
			<td width="9%" id="td1">
				<input type="checkbox" id="checkbox1">
					<xsl:attribute name="itemNum">AFLAC<xsl:value-of select="FullName"/>Pre-Tax</xsl:attribute>
					<xsl:attribute name="value">AFLAC<xsl:value-of select="FullName"/>Pre-Tax</xsl:attribute>
					<xsl:attribute name="onClick">onCheckboxClicked(this);</xsl:attribute>
				</input>
			</td>
			<td width="53%" nowrap="true">AFLAC
				<xsl:value-of select="FullName"/>Pre-Tax
			</td>
			<td width="9%" id="td2">
				<input type="checkbox" id="checkbox2">
					<xsl:attribute name="itemNum">AFLAC<xsl:value-of select="FullName"/>Post-Tax</xsl:attribute>
					<xsl:attribute name="value">AFLAC<xsl:value-of select="FullName"/>Post-Tax</xsl:attribute>
					<xsl:attribute name="onClick">onCheckboxClicked(this);</xsl:attribute>
				</input>
			</td>
			<td width="53%" nowrap="true">AFLAC
				<xsl:value-of select="FullName"/>Post-Tax
			</td>

		</tr>
	</xsl:template>


	<xsl:template name="ActionButtons">
		<tr><td colspan="2"><hr size="1"></hr></td></tr>
		<tr>
			<td>
				<input type="button" class="submitButton" id="ACCancel" name="ACCancel" value=" Cancel " onClick="onClickCancel();">
					<xsl:attribute name="onmouseout">this.className="submitButton";</xsl:attribute>
					<xsl:attribute name="onmouseover">this.className="submitButtonHover";</xsl:attribute>
				</input>
			</td>
			<td align="right">
				<button style="width:80px" class="submitButton" id="ACContinue" name="ACContinue" label=" Continue " onClick="onClickContinue();">
					<xsl:attribute name="onmouseout">this.className="submitButton";</xsl:attribute>
					<xsl:attribute name="onmouseover">this.className="submitButtonHover";</xsl:attribute> Continue
				</button>
			</td>
		</tr>
	</xsl:template>

	<xsl:template name="SelectAllButton">
		<tr>
			<td colspan='2' align="left">
				<input type="button" class="submitButtonLeftFloat" id="ACSelectClear" name="ACSelectClear" value="Select All">
					<xsl:attribute name="onClick">onClickSelectAll();</xsl:attribute>
					<xsl:attribute name="onmouseout">this.className="submitButtonLeftFloat";</xsl:attribute>
					<xsl:attribute name="onmouseover">this.className="submitButtonLeftFloatHover";</xsl:attribute>
				</input>

                          <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>** Pre-Tax Payroll Items require a Section 125 plan to be set up.
                        </td>
		</tr>
	</xsl:template>

	<xsl:include href="AFLACHelp.xsl"/>
</xsl:stylesheet>


