﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
	<xsl:output method="xml" indent="yes" omit-xml-declaration ="yes"/>
	<xsl:template match="/">
		<xsl:variable name="BrandID" select="AjaxRequest/Params/BrandID"></xsl:variable>
		<xsl:variable name="BrandName" select="AjaxRequest/Params/BrandName"></xsl:variable>
		<xsl:variable name="UserName" select="AjaxRequest/Params/UserName"></xsl:variable>
		<xsl:variable name="Phone" select="AjaxRequest/Params/Phone"></xsl:variable>
		<xsl:variable name="Interest" select="AjaxRequest/Params/Interest"></xsl:variable>
		<xsl:variable name="AboutUs" select="AjaxRequest/Params/AboutUs"></xsl:variable>
		<xsl:variable name="ParentName" select="AjaxRequest/Params/ParentName"></xsl:variable>
		<xsl:variable name="Age" select="AjaxRequest/Params/Age"></xsl:variable>
		<xsl:variable name="Time" select="AjaxRequest/Params/Time"></xsl:variable>
		<xsl:variable name="Email" select="AjaxRequest/Params/Email"></xsl:variable>
		<xsl:variable name="TypeCoach" select="AjaxRequest/Params/TypeCoach"></xsl:variable>
		<xsl:variable name="Request" select="AjaxRequest/Params/Request"></xsl:variable>
		<xsl:variable name="Origin" select="AjaxRequest/Params/Origin"></xsl:variable>

		<xsl:choose>
			<xsl:when test="$Origin = 'dragonkick'">
				<table class="tableMaster" cellpadding="5" cellspacing="5">
					<tr>
						<td colspan="2">
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
							</span>
						</td>
					</tr>
					<tr>
						<td width="35%">
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Name:
							</span>
						</td>
						<td width="65%">
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="normalize-space(AjaxRequest/Params/FirstName)"/>&#xa0;
								<xsl:value-of select="normalize-space(AjaxRequest/Params/LastName)"/>
							</span>
						</td>
					</tr>
					<xsl:if test="$ParentName != ''">
						<tr>
							<td>
								<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
									Parents Name:
								</span>
							</td>
							<td>
								<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
									<xsl:value-of select="$ParentName"/>
								</span>
							</td>
						</tr>
					</xsl:if>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Age:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Age"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Phone:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Phone"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Best Time To Call:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Time"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								E-mail:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Email"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Interested In:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Interest"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								How did you hear about us?:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$AboutUs"/>
							</span>
						</td>
					</tr>
				</table>
			</xsl:when>
			<xsl:otherwise>
				<table class="tableMaster" cellpadding="5" cellspacing="5">
					<tr>
						<td colspan="2">
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
							</span>
						</td>
					</tr>
					<tr>
						<td width="30%">
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Name:
							</span>
						</td>
						<td width="70%">
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$UserName"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Phone:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Phone"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Best Time To Call:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Time"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								E-mail:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$Email"/>
							</span>
						</td>
					</tr>
					<tr>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								Please describe what you are looking for:
							</span>
						</td>
						<td>
							<span style="font-family: Calibri, Verdana, Arial; font-size: 10pt; font-weight: bold; color: #376092;">
								<xsl:value-of select="$TypeCoach"/>
							</span>
						</td>
					</tr>
				</table>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>
