<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
	<xsl:output method="html" indent="no"/>
	<xsl:decimal-format NaN=""/>
	<xsl:param name="dvt_apos">'</xsl:param>
	<xsl:param name="ManualRefresh"></xsl:param>
	<xsl:param name="dvt_1_form_insertmode">1</xsl:param>
	<xsl:variable name="dvt_1_automode">0</xsl:variable>
	
	<xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
		<xsl:call-template name="dvt_1"/>
	</xsl:template>
	<xsl:template name="dvt_1">
		<xsl:variable name="dvt_StyleName">RepForm3</xsl:variable>
		<xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
		<table border="0" width="100%">
			<xsl:call-template name="dvt_1.rowinsert">
				<xsl:with-param name="IsInsertMode">
					<xsl:if test="$dvt_1_form_insertmode = '1'">1</xsl:if>
				</xsl:with-param>
			</xsl:call-template>
		</table>
		<xsl:call-template name="dvt_1.commandfooter">
			<xsl:with-param name="ShowFormActions">
				<xsl:if test="($dvt_1_automode = '0' and $dvt_1_form_insertmode)">1</xsl:if>
			</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template name="dvt_1.commandfooter">
		<xsl:param name="FirstRow" />
		<xsl:param name="LastRow" />
		<xsl:param name="RowLimit" />
		<xsl:param name="dvt_RowCount" />
		<xsl:param name="RealLastRow" />
		<xsl:param name="ShowFormActions" />
		<table cellspacing="0" cellpadding="4" border="0" width="100%">
			<tr>
				<xsl:if test="$ShowFormActions = '1'">
					<xsl:call-template name="dvt_1.formactions" />
				</xsl:if>
			</tr>
		</table>
	</xsl:template>
	<xsl:template name="dvt_1.formactions">
		<xsl:param name="Pos" select="position()" />
										
		<td nowrap="nowrap" class="ms-vb">
			<input type="button" value="Submit" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={../../Pages/ThankYou.aspx?from_x003D_ContactUs}')}" />
		</td>
		<td nowrap="nowrap" class="ms-vb" width="99%">
			<input type="button" value="Cancel" name="btnCancel" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel;__redirect={../../Pages/default.aspx}')}" />
		</td>
	</xsl:template>
	<xsl:template name="dvt_1.rowinsert">
		<xsl:param name="IsInsertMode" />
		<xsl:variable name="Pos">_new</xsl:variable>
		<xsl:choose>
			<xsl:when test="$IsInsertMode = '1'">
				<tr>
					<td>
						<table border="0" cellspacing="0" width="100%">
							<tr>
								<td width="25%" class="ms-vb">
									<b><span class="required">*</span>Name:</b>
								</td>
								<td width="75%" class="ms-vb">
									<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="New" FieldName="Title" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}" />
									<SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="Edit" />
								</td>
							</tr>
							<tr>
								<td width="25%" class="ms-vb">
									<b><span class="required">*</span>Email:</b>
								</td>
								<td width="75%" class="ms-vb">
									<SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="New" FieldName="Email" __designer:bind="{ddwrt:DataBind('i',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Email')}" />
									<SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="Email" ControlMode="Edit" />
								</td>
							</tr>
							<tr>
								<td width="25%" class="ms-vb">
									<b><span class="required">*</span>Subject:</b>
								</td>
								<td width="75%" class="ms-vb">
									<SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="New" FieldName="Subject" __designer:bind="{ddwrt:DataBind('i',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Subject')}" />
									<SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="Subject" ControlMode="Edit" />
								</td>
							</tr>
							<tr>
								<td width="25%" class="ms-vb">
									<b><span class="required">*</span>Message:</b>
								</td>
								<td width="75%" class="ms-vb">
									<SharePoint:FormField runat="server" id="ff4{$Pos}" ControlMode="New" FieldName="Message" __designer:bind="{ddwrt:DataBind('i',concat('ff4',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Message')}" />
									<SharePoint:FieldDescription runat="server" id="ff4description{$Pos}" FieldName="Message" ControlMode="Edit" />
								</td>
							</tr>
							<xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
								<tr>
									<td colspan="99" class="ms-vb">
										<span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="insert"></span>
									</td>
								</tr>
							</xsl:if>
						</table>
					</td>
				</tr>
			</xsl:when>
			<xsl:otherwise>
				<tr>
					<td width="100%" class="ms-vb">
						<a href="javascript: {ddwrt:GenFireServerEvent('__cancel;dvt_1_form_insertmode={1}')}">insert</a>
					</td>
				</tr>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
</xsl:stylesheet>