<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<!-- Skin: Default Skin (Default Browser Type) -->
	<xsl:template match="/">
		<head>
			<!--[if lte IE 7]>
<link href="/css/nexgen09/fx3.0-hacks-ie.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
			<!--[if lte IE 6]>
<link href="/css/nexgen09/fx3.0-hacks-ie6.css" rel="stylesheet" type="text/css" media="screen" />
<![endif]-->
			<link href="/css/nexgen09/fx3.0-block-form.css" rel="stylesheet" type="text/css"/>
			<link href="/css/nexgen09/fx3.0-global.css" rel="stylesheet" type="text/css"/>
		</head>
		<DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"/>
		<div class="block form-elements">
			<div class="copy">
				<!--FORM HEADING-->
				<h2>
					<xsl:value-of select="/Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item/value/item[@name='page_title']/value"/>
				</h2>
				<p>
					<span in-context-edit="{Properties/Data/Datum[@ID='H1']/@ID}">
						<xsl:value-of disable-output-escaping="yes" select="Properties/Data/Datum[@ID='H1']"/>
					</span>
				</p>
				<form type="external" action="/cgi-bin/eform.cgi" method="post" name="calform">
					<xsl:comment> #Error NAME="address_error_msgs" Value='&lt;BR&gt;&lt;div class="error-details"&gt;&lt;h3&gt;Errors found&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;To continue, please address all comments in red below.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;' </xsl:comment>
					<!--<xsl:comment> #Error NAME="address_error_msgs" Value='&lt;BR&gt;&lt;SPAN &gt;To continue, please address all comments in red below.&lt;/SPAN&gt;' </xsl:comment>-->
					<!--END OF FORM HEADING-->
					<xsl:apply-templates select="//item[@name='Predefined_Field']" mode="PD"/>
					<xsl:apply-templates select="//value[.='Email']"/>
					<xsl:apply-templates select="//value[.='Date']"/>
					<xsl:apply-templates select="//value[.='Date2']"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Open_Text']/value"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Radio_Button']/value"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Check_Box']/value"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Scrolling_Menu']/value"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Textarea_Menu']"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Dropdown_Menu']"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Weight']"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Dimensions']"/>
					<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Open_Field']"/>
					<div class="col">
						<xsl:apply-templates select="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Email_Details']"/>
					</div>
				</form>
			</div>
		</div>
	</xsl:template>
	<!--FIELD NAMES AND INPUT BOXES FOR FIRST NAME, LAST NAME, COMPANY ETC...-->
	<xsl:template match="//item[@name='Predefined_Field']" mode="PD">
		<xsl:variable name="counter" select="position()"/>
		<xsl:variable name="required" select="value/item[@name='required']/value "/>
		<xsl:variable name="fldName" select="value/item[@name='FieldName']/value "/>
		<xsl:variable name="size" select="value/item[@name='size']/value "/>
		<xsl:variable name="minLength" select="value/item[@name='min']/value "/>
		<xsl:variable name="maxLength" select="value/item[@name='max']/value "/>
		<xsl:if test="not ($fldName = 'Email' or $fldName ='Date' or $fldName ='Date2') ">
			<fieldset class="clearfix">
				<xsl:if test="$required = 'required'">
					<div class="col prompt required">
						<xsl:call-template name="requiredField"/>
						<!--<xsl:comment> #Error NAME="<xsl:value-of select="concat($fldName,$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="translate($fldName,'_',' ')"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>-->
						<xsl:comment> #Error NAME="<xsl:value-of select="concat($fldName,$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt; &lt;font color="red"&gt; &lt;p&gt;Please enter <xsl:value-of select="translate($fldName,'_',' ')"/>. It is required.&lt;/p&gt; &lt;/font&gt; &lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat($fldName,$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<xsl:if test="not ($required = 'required') ">
					<div class="col prompt">
						<xsl:call-template name="requiredField"/>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat($fldName,$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="translate($fldName,'_',' ')"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat($fldName,$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<xsl:element name="input">
					<xsl:attribute name="type">hidden</xsl:attribute>
					<xsl:attribute name="name"><xsl:value-of select="concat($fldName,$counter,'_label')"/></xsl:attribute>
					<xsl:attribute name="value"><xsl:value-of select="translate($fldName,'_',' ')"/></xsl:attribute>
				</xsl:element>
				<div class="col">
					<xsl:element name="input">
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat($fldName,$counter)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="$size"/></xsl:attribute>
						<xsl:attribute name="minlength"><xsl:value-of select="$minLength"/></xsl:attribute>
						<xsl:attribute name="maxlength"><xsl:value-of select="$maxLength"/></xsl:attribute>
					</xsl:element>
				</div>
			</fieldset>
		</xsl:if>
	</xsl:template>
	<!--END OF FIELD NAMES AND INPUT BOXES FOR FIRST NAME, LAST NAME, COMPANY ETC...-->
	<!--Call template for required field (Predefined except 'Email' and 'Date' and 'Date2')-->
	<xsl:template name="requiredField">
		<xsl:variable name="fldName" select="value/item[@name='FieldName']/value "/>
		<xsl:if test="starts-with($fldName,'Acct')">
			<label for="">
				<xsl:text>Account No :</xsl:text>
			</label>
		</xsl:if>
		<xsl:if test="not(starts-with($fldName,'Acct'))">
			<label for="">
				<xsl:value-of select="translate($fldName,'_',' ')"/>
				<xsl:text> : </xsl:text>
			</label>
		</xsl:if>
		<br/>
	</xsl:template>
	<!--End of Call template for required field (Predefined except 'Email' and 'Date' and 'Date2')-->
	<!--Email Field-->
	<xsl:template match="//value[.='Email']">
		<xsl:variable name="required" select="../../item[@name='required']/value"/>
		<xsl:variable name="fldName">
			<xsl:value-of select="."/>
		</xsl:variable>
		<xsl:variable name="size" select="../../item[@name='size']/value "/>
		<xsl:variable name="minLength" select="../../item[@name='min']/value"/>
		<xsl:variable name="maxLength" select="../../item[@name='max']/value"/>
		<xsl:variable name="counteremail" select="position()"/>
		<xsl:if test="$fldName='Email'">
			<fieldset class="clearfix">
				<xsl:if test="$required = 'required'">
					<div class="col prompt required">
						<xsl:call-template name="requiredEmail"/>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat($fldName,$counteremail)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format for <xsl:value-of select="$fldName"/> address. Please try again.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<xsl:if test="not ($required = 'required') ">
					<div class="col prompt">
						<xsl:call-template name="requiredEmail"/>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat($fldName,$counteremail)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format for <xsl:value-of select="$fldName"/> address. Please try again.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<div class="col">
					<xsl:element name="input">
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat($fldName,$counteremail)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="$size"/></xsl:attribute>
						<xsl:attribute name="minlength"><xsl:value-of select="$minLength"/></xsl:attribute>
						<xsl:attribute name="maxlength"><xsl:value-of select="$maxLength"/></xsl:attribute>
					</xsl:element>
				</div>
			</fieldset>
		</xsl:if>
	</xsl:template>
	<!--End of Email Field-->
	<!--Email field call template-->
	<xsl:template name="requiredEmail">
		<xsl:variable name="fldName">
			<xsl:value-of select="."/>
		</xsl:variable>
		<label for="">
			<xsl:value-of select="$fldName"/>
			<xsl:text> : </xsl:text>
		</label>
		<br/>
	</xsl:template>
	<!--End of Email field call template-->
	<!--Date Field-->
	<xsl:template match="//value[.='Date']">
		<xsl:variable name="required" select="../../item[@name='required']/value"/>
		<xsl:variable name="fldName">
			<xsl:value-of select="."/>
		</xsl:variable>
		<xsl:variable name="size" select="../../item[@name='size']/value "/>
		<xsl:variable name="minLength" select="../../item[@name='min']/value"/>
		<xsl:variable name="maxLength" select="../../item[@name='max']/value"/>
		<xsl:variable name="dateCounter" select="position()"/>
		<xsl:if test="$fldName='Date'">
			<fieldset class="clearfix">
				<xsl:if test="$required = 'required'">
					<div class="col prompt required">
						<xsl:call-template name="requiredDate"/>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'1x_',$dateCounter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'1x_',$dateCounter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<xsl:if test="not ($required = 'required') ">
					<div class="col prompt">
						<xsl:call-template name="requiredDate"/>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'1x_',$dateCounter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'1x_',$dateCounter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<xsl:element name="input">
					<xsl:attribute name="type">hidden</xsl:attribute>
					<xsl:attribute name="name"><xsl:value-of select="concat(translate($fldName,'D','d'),'1x_',$dateCounter,'_label')"/></xsl:attribute>
					<xsl:attribute name="value"><xsl:value-of select="$fldName"/></xsl:attribute>
				</xsl:element>
				<div class="col">
					<SCRIPT LANGUAGE="JavaScript" SRC="/templates/components/javascript/global/CalendarPopup.js"/>
					<SCRIPT LANGUAGE="JavaScript">document.write(getCalendarStyles());</SCRIPT>
					<SCRIPT LANGUAGE="JavaScript">var cal1x_<xsl:value-of select="$dateCounter"/> = new CalendarPopup("testdiv1","english");</SCRIPT>
					<SCRIPT LANGUAGE="JavaScript">writeSource("jscal1x_<xsl:value-of select="$dateCounter"/>");</SCRIPT>
					<xsl:element name="input">
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat(translate($fldName,'D','d'),'1x_',$dateCounter)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="$size"/></xsl:attribute>
					</xsl:element>
					<xsl:text> </xsl:text>
					<xsl:text> </xsl:text>
					<A>
						<xsl:attribute name="HREF">#</xsl:attribute>
						<xsl:attribute name="onClick">cal1x_<xsl:value-of select="$dateCounter"/>.select(document.calform.date1x_<xsl:value-of select="$dateCounter"/>,'anchor1x_<xsl:value-of select="$dateCounter"/>','MM/dd/yyyy'); return false;</xsl:attribute>
						<xsl:attribute name="TITLE">Calender</xsl:attribute>
						<xsl:attribute name="NAME">anchor1x_<xsl:value-of select="$dateCounter"/></xsl:attribute>
						<xsl:attribute name="ID">anchor1x_<xsl:value-of select="$dateCounter"/></xsl:attribute>
						<img>
							<xsl:attribute name="border">0</xsl:attribute>
							<xsl:attribute name="src"><xsl:value-of select="substring-after('$URL_PREFIX/images/ascend/shared/calendar_icon.gif','')"/></xsl:attribute>
						</img>
					</A>
				</div>
			</fieldset>
		</xsl:if>
	</xsl:template>
	<!--END OF DATE FIELD-->
	<!--Date Field 2-->
	<xsl:template match="//value[.='Date2']">
		<xsl:variable name="required" select="../../item[@name='required']/value"/>
		<xsl:variable name="fldName">
			<xsl:value-of select="."/>
		</xsl:variable>
		<xsl:variable name="size" select="../../item[@name='size']/value "/>
		<xsl:variable name="minLength" select="../../item[@name='min']/value"/>
		<xsl:variable name="maxLength" select="../../item[@name='max']/value"/>
		<xsl:if test="$fldName='Date2'">
			<xsl:variable name="dateCounter2" select="position()"/>
			<fieldset class="clearfix">
				<xsl:if test="$required = 'required'">
					<div class="col prompt required">
						<xsl:call-template name="requiredDate"/>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'x_',$dateCounter2)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'x_',$dateCounter2,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<xsl:if test="not ($required = 'required') ">
					<div class="col prompt">
						<xsl:call-template name="requiredDate"/>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'x_',$dateCounter2)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat(translate($fldName,'D','d'),'x_',$dateCounter2,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid <xsl:value-of select="$fldName"/>. Please select a valid <xsl:value-of select="$fldName"/>.&lt;/SPAN&gt;' </xsl:comment>
					</div>
				</xsl:if>
				<xsl:element name="input">
					<xsl:attribute name="type">hidden</xsl:attribute>
					<xsl:attribute name="name"><xsl:value-of select="concat(translate($fldName,'D','d'),'x_',$dateCounter2,'_label')"/></xsl:attribute>
					<xsl:attribute name="value"><xsl:value-of select="$fldName"/></xsl:attribute>
				</xsl:element>
				<div class="col">
					<SCRIPT LANGUAGE="JavaScript" SRC="/templates/components/javascript/global/CalendarPopup.js"/>
					<SCRIPT LANGUAGE="JavaScript">document.write(getCalendarStyles());</SCRIPT>
					<SCRIPT LANGUAGE="JavaScript">var cal2x_<xsl:value-of select="$dateCounter2"/> = new CalendarPopup("testdiv1","english");</SCRIPT>
					<SCRIPT LANGUAGE="JavaScript">writeSource("jscal2x_<xsl:value-of select="$dateCounter2"/>");</SCRIPT>
					<xsl:element name="input">
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat(translate($fldName,'D','d'),'x_',$dateCounter2)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="$size"/></xsl:attribute>
					</xsl:element>
					<xsl:text> </xsl:text>
					<xsl:text> </xsl:text>
					<A>
						<xsl:attribute name="HREF">#</xsl:attribute>
						<xsl:attribute name="onClick">cal2x_<xsl:value-of select="$dateCounter2"/>.select(document.calform.date2x_<xsl:value-of select="$dateCounter2"/>,'anchor2x_<xsl:value-of select="$dateCounter2"/>','MM/dd/yyyy'); return false;</xsl:attribute>
						<xsl:attribute name="TITLE">Calender</xsl:attribute>
						<xsl:attribute name="NAME">anchor2x_<xsl:value-of select="$dateCounter2"/></xsl:attribute>
						<xsl:attribute name="ID">anchor2x_<xsl:value-of select="$dateCounter2"/></xsl:attribute>
						<img>
							<xsl:attribute name="border">0</xsl:attribute>
							<xsl:attribute name="src"><xsl:value-of select="substring-after('$URL_PREFIX/images/ascend/shared/calendar_icon.gif','')"/></xsl:attribute>
						</img>
					</A>
					<SCRIPT LANGUAGE="JavaScript" SRC="/templates/components/javascript/global/CalendarPopup.js"/>
					<SCRIPT LANGUAGE="JavaScript">document.write(getCalendarStyles());</SCRIPT>
					<SCRIPT LANGUAGE="JavaScript">var cal2x_<xsl:value-of select="$dateCounter2"/> = new CalendarPopup("testdiv1","english");</SCRIPT>
					<SCRIPT LANGUAGE="JavaScript">writeSource("jscal2x_<xsl:value-of select="$dateCounter2"/>");</SCRIPT>
					<xsl:element name="input">
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat(translate($fldName,'D','d'),'x_',$dateCounter2)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="$size"/></xsl:attribute>
					</xsl:element>
					<xsl:text> </xsl:text>
					<xsl:text> </xsl:text>
					<A>
						<xsl:attribute name="HREF">#</xsl:attribute>
						<xsl:attribute name="onClick">cal2x_<xsl:value-of select="$dateCounter2"/>.select(document.calform.date2x_<xsl:value-of select="$dateCounter2"/>,'anchor2x_<xsl:value-of select="$dateCounter2"/>','MM/dd/yyyy'); return false;</xsl:attribute>
						<xsl:attribute name="TITLE">Calender</xsl:attribute>
						<xsl:attribute name="NAME">anchor2x_<xsl:value-of select="$dateCounter2"/></xsl:attribute>
						<xsl:attribute name="ID">anchor2x_<xsl:value-of select="$dateCounter2"/></xsl:attribute>
						<img>
							<xsl:attribute name="border">0</xsl:attribute>
							<xsl:attribute name="src"><xsl:value-of select="substring-after('$URL_PREFIX/images/ascend/shared/calendar_icon.gif','')"/></xsl:attribute>
						</img>
					</A>
				</div>
			</fieldset>
		</xsl:if>
	</xsl:template>
	<!--END OF DATE FIELD 2-->
	<!--Date field call template-->
	<xsl:template name="requiredDate">
		<xsl:variable name="fldName">
			<xsl:value-of select="."/>
		</xsl:variable>
		<label for="">
			<xsl:value-of select="$fldName"/>
			<xsl:text> : </xsl:text>
		</label>
		<br/>
	</xsl:template>
	<!--End of Date field call template -->
	<!--OPEN TEXT-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Open_Text']/value">
		<fieldset class="clearfix">
			<p>
				<xsl:value-of select="item[@name='open_text_field_label']/value" disable-output-escaping="yes"/>
			</p>
		</fieldset>
	</xsl:template>
	<!--END OF OPEN TEXT-->
	<!--RADIO BUTTON GROUP-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Radio_Button']/value">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:if test="item[@name='required']/value = 'required'">
				<div class="col prompt required">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="item[@name='radio_field_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('radio_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="item[@name='radio_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('radio_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN /&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:if test="not (item[@name='required']/value = 'required') ">
				<div class="col prompt">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="item[@name='radio_field_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('radio_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="item[@name='radio_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('radio_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN /&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:element name="input">
				<xsl:attribute name="type">hidden</xsl:attribute>
				<xsl:attribute name="name"><xsl:value-of select="concat('radio_',$counter,'_label')"/></xsl:attribute>
				<xsl:attribute name="value"><xsl:value-of select="item[@name='radio_field_label']/value"/></xsl:attribute>
			</xsl:element>
			<div class="col">
				<xsl:for-each select="item[@name='radio_buttons']/value">
					<xsl:element name="input">
						<xsl:attribute name="id"><xsl:value-of select="//item[@name='radio_field_label']"/></xsl:attribute>
						<xsl:attribute name="type">radio</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat('radio_',$counter)"/></xsl:attribute>
						<xsl:attribute name="value"><xsl:value-of select="item[@name='rbutton_value']/value"/></xsl:attribute>
						<xsl:attribute name="class">radio</xsl:attribute>
						<xsl:value-of select="item[@name='rbutton_label']/value"/>
					</xsl:element>
				</xsl:for-each>
			</div>
		</fieldset>
	</xsl:template>
	<!--END OF RADIO BUTTON GROUP-->
	<!--CHECK BOX GROUP-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Check_Box']/value">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:if test="item[@name='required']/value = 'required'">
				<div class="col prompt required">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="item[@name='cbfield_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('cbfield_label_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="item[@name='cbfield_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="cbvalidation" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:if test="not (item[@name='required']/value = 'required') ">
				<div class="col prompt">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="item[@name='cbfield_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('cbfield_label_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="item[@name='cbfield_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="cbvalidation" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<!--<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="concat('cbfield_label_',$counter)"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="item[@name='cbfield_label']/value"/></xsl:attribute>
</xsl:element>-->
			<div class="col options">
				<xsl:variable name="cbgFieldName" select="item[@name='cbfield_label']/value"/>
				<xsl:for-each select="item[@name='checkbox']/value">
					<xsl:variable name="countercbg" select="position()"/>
					<p class="clearfix">
						<xsl:element name="input">
							<xsl:attribute name="type">checkbox</xsl:attribute>
							<xsl:attribute name="name"><xsl:value-of select="concat('checkbox_',$counter,'_',$countercbg)"/></xsl:attribute>
							<xsl:attribute name="value"><xsl:value-of select="item[@name='checkbox_value']/value"/></xsl:attribute>
							<xsl:attribute name="class">checkbox</xsl:attribute>
							<xsl:value-of select="item[@name='checkbox_label']/value"/>
						</xsl:element>
						<xsl:element name="input">
							<xsl:attribute name="type">hidden</xsl:attribute>
							<xsl:attribute name="name"><xsl:value-of select="concat('checkbox_',$counter,'_',$countercbg,'_label')"/></xsl:attribute>
							<xsl:attribute name="value"><xsl:value-of select="$cbgFieldName"/></xsl:attribute>
						</xsl:element>
					</p>
				</xsl:for-each>
			</div>
		</fieldset>
	</xsl:template>
	<!--END OF CHECK BOX GROUP-->
	<!--SELECT MULTIPLE OPTIONS GROUP-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Scrolling_Menu']/value">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:if test="item[@name='required']/value = 'required'">
				<div class="col prompt required">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="item[@name='smfield_label']/value"/>
						<br/> (Note about usage)
<a href="#" class="field-help" title="Field level help for this field">
							<img src="/images/global/nexgen09/icon-help-field-level.gif" alt="Field level help for this field"/>
						</a>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('smfield_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="item[@name='smfield_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('smfield_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:if test="not (item[@name='required']/value = 'required') ">
				<div class="col prompt">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="item[@name='smfield_label']/value"/>
						<br/> (Note about usage)
<a href="#" class="field-help" title="Field level help for this field">
							<img src="/images/global/nexgen09/icon-help-field-level.gif" alt="Field level help for this field"/>
						</a>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('smfield_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="item[@name='smfield_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('smfield_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:element name="input">
				<xsl:attribute name="type">hidden</xsl:attribute>
				<xsl:attribute name="name"><xsl:value-of select="concat('smfield_',$counter,'_label')"/></xsl:attribute>
				<xsl:attribute name="value"><xsl:value-of select="item[@name='smfield_label']/value"/></xsl:attribute>
			</xsl:element>
			<div class="col">
				<xsl:element name="select">
					<xsl:attribute name="name"><xsl:value-of select="concat('smfield_',$counter)"/></xsl:attribute>
					<xsl:attribute name="multiple">multiple</xsl:attribute>
					<xsl:attribute name="size">4</xsl:attribute>
					<xsl:attribute name="class">select-full</xsl:attribute>
					<xsl:for-each select="item[@name='Scrolling_Menu_Items']/value">
						<xsl:sort select="item[@name='scrolling_menu_label']/value" data-type="text"/>
						<xsl:element name="option">
							<xsl:attribute name="name"><xsl:value-of select="concat('smfield_',$counter)"/></xsl:attribute>
							<xsl:attribute name="value"><xsl:value-of select="item[@name='scrolling_menu_value']/value"/></xsl:attribute>
							<xsl:value-of select="item[@name='scrolling_menu_label']/value"/>
						</xsl:element>
					</xsl:for-each>
				</xsl:element>
			</div>
		</fieldset>
	</xsl:template>
	<!--END OF SELECT MULTIPLE OPTIONS GROUP-->
	<!--TEXT AREA -->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Textarea_Menu']">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:if test="item[@name='required']/value = 'required'">
				<div class="col prompt required">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="value/item[@name='textarea_field_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('textarea_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="value/item[@name='textarea_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('textarea_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:if test="not (item[@name='required']/value = 'required') ">
				<div class="col prompt">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="value/item[@name='textarea_field_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('textarea_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="value/item[@name='textarea_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('textarea_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<div class="col">
				<xsl:for-each select="value">
					<xsl:element name="input">
						<xsl:attribute name="type">hidden</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat('textarea_field_',$counter,'_label')"/></xsl:attribute>
						<xsl:attribute name="value"><xsl:value-of select="item[@name='textarea_field_label']/value"/></xsl:attribute>
					</xsl:element>
				</xsl:for-each>
				<xsl:for-each select="value">
					<xsl:element name="textarea">
						<xsl:attribute name="id"><xsl:value-of select="item[@name='textarea_field_label']/value"/></xsl:attribute>
						<xsl:attribute name="rows"><xsl:value-of select="item[@name='tarows']/value"/></xsl:attribute>
						<xsl:attribute name="cols"><xsl:value-of select="item[@name='tacolumns']/value"/></xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat('textarea_field_',$counter)"/></xsl:attribute>
						<xsl:attribute name="comment">comment</xsl:attribute>
						<xsl:attribute name="class">textarea-full</xsl:attribute>
					</xsl:element>
				</xsl:for-each>
			</div>
		</fieldset>
	</xsl:template>
	<!--END OF TEXT AREA -->
	<!--DROP DOWN SELECTION-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Dropdown_Menu']">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:if test="item[@name='required']/value = 'required'">
				<div class="col prompt required">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="value/item[@name='dmfield_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('dropdown_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="value/item[@name='dmfield_label']/value"/>. It is Required&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('dropdown_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:if test="not (item[@name='required']/value = 'required') ">
				<div class="col prompt">
					<xsl:element name="label">
						<xsl:attribute name="for"></xsl:attribute>
						<xsl:value-of select="value/item[@name='dmfield_label']/value"/>
						<xsl:text> :</xsl:text>
					</xsl:element>
					<br/>
					<p>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('dropdown_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please select <xsl:value-of select="value/item[@name='dmfield_label']/value"/>. It is Required&lt;/SPAN&gt;' </xsl:comment>
						<xsl:comment> #Error NAME="<xsl:value-of select="concat('dropdown_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;&lt;/SPAN&gt;' </xsl:comment>
					</p>
				</div>
			</xsl:if>
			<xsl:element name="input">
				<xsl:attribute name="type">hidden</xsl:attribute>
				<xsl:attribute name="name"><xsl:value-of select="concat('dropdown_field_',$counter,'_label')"/></xsl:attribute>
				<xsl:attribute name="value"><xsl:value-of select="value/item[@name='dmfield_label']/value"/></xsl:attribute>
			</xsl:element>
			<div class="col">
				<xsl:element name="select">
					<xsl:attribute name="name"><xsl:value-of select="concat('dropdown_field_',$counter)"/></xsl:attribute>
					<xsl:for-each select="value/item[@name='dropdown']/value">
						<option>
							<xsl:attribute name="value"><xsl:value-of select="item[@name='dropdown_value']/value"/></xsl:attribute>
							<xsl:value-of select="item[@name='dropdown_label']/value"/>
						</option>
					</xsl:for-each>
				</xsl:element>
			</div>
		</fieldset>
	</xsl:template>
	<!--END OF DROP DOWN SELECTION-->
	<!--WEIGHT FIELD ITEM-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Weight']">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:for-each select="value">
				<xsl:if test="item[@name='required']/value = 'required'">
					<div class="col prompt required">
						<xsl:element name="label">
							<xsl:attribute name="for"/>
							<xsl:element name="a">
								<xsl:attribute name="href"><xsl:value-of select="item[@name='weight_url']/value"/></xsl:attribute>
								<xsl:attribute name="target"><xsl:value-of select="item[@name='weight_url_target']/value"/></xsl:attribute>
								<xsl:value-of select="item[@name='weight_field_label']/value"/>
							</xsl:element>
							<xsl:text> :</xsl:text>
						</xsl:element>
						<br/>
						<p>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('weight_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="item[@name='weight_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('weight_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
						</p>
					</div>
				</xsl:if>
				<xsl:if test="not (item[@name='required']/value = 'required') ">
					<div class="col prompt">
						<xsl:element name="label">
							<xsl:attribute name="for"/>
							<xsl:element name="a">
								<xsl:attribute name="href"><xsl:value-of select="item[@name='weight_url']/value"/></xsl:attribute>
								<xsl:attribute name="target"><xsl:value-of select="item[@name='weight_url_target']/value"/></xsl:attribute>
								<xsl:value-of select="item[@name='weight_field_label']/value"/>
							</xsl:element>
							<xsl:text> :</xsl:text>
						</xsl:element>
						<br/>
						<p>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('weight_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="item[@name='weight_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('weight_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
						</p>
					</div>
				</xsl:if>
				<xsl:element name="input">
					<xsl:attribute name="type">hidden</xsl:attribute>
					<xsl:attribute name="name"><xsl:value-of select="concat('weight_field_',$counter,'_label')"/></xsl:attribute>
					<xsl:attribute name="value"><xsl:value-of select="item[@name='weight_field_label']/value"/></xsl:attribute>
					<!--<xsl:attribute name="id"><xsl:value-of select="item[@name='weight_field_label']/value"/></xsl:attribute>-->
				</xsl:element>
				<div class="col">
					<xsl:element name="input">
						<!--<xsl:attribute name="id"><xsl:value-of select="item[@name='weight_field_label']/value"/></xsl:attribute>-->
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat('weight_field_',$counter)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="item[@name='size']/value"/></xsl:attribute>
						<xsl:attribute name="minlength"><xsl:value-of select="item[@name='min']"/></xsl:attribute>
						<xsl:attribute name="maxlength"><xsl:value-of select="item[@name='max']"/></xsl:attribute>
					</xsl:element>
					<span>
						<xsl:text>&#x09;</xsl:text>
						<xsl:text/>
						<xsl:value-of select="item[@name='weight_field_name']/value"/>
					</span>
				</div>
			</xsl:for-each>
		</fieldset>
	</xsl:template>
	<!--END OF WEIGHT FIELD ITEM-->
	<!--DIMENSION FIELD ITEM-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Dimensions']">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:for-each select="value">
				<xsl:if test="item[@name='required']/value = 'required'">
					<div class="col prompt required">
						<xsl:element name="label">
							<xsl:attribute name="for"/>
							<xsl:element name="a">
								<xsl:attribute name="href"><xsl:value-of select="item[@name='dimensions_url']/value"/></xsl:attribute>
								<xsl:attribute name="target"><xsl:value-of select="item[@name='dimensions_url_target']/value"/></xsl:attribute>
								<xsl:value-of select="item[@name='dimensions_field_label']/value"/>
							</xsl:element>
							<xsl:text> :</xsl:text>
						</xsl:element>
						<br/>
						<p>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('dimensions_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="item[@name='dimensions_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('dimensions_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
						</p>
					</div>
				</xsl:if>
				<xsl:if test="not (item[@name='required']/value = 'required') ">
					<div class="col prompt">
						<xsl:element name="label">
							<xsl:attribute name="for"/>
							<xsl:element name="a">
								<xsl:attribute name="href"><xsl:value-of select="item[@name='dimensions_url']/value"/></xsl:attribute>
								<xsl:attribute name="target"><xsl:value-of select="item[@name='dimensions_url_target']/value"/></xsl:attribute>
								<xsl:value-of select="item[@name='dimensions_field_label']/value"/>
							</xsl:element>
							<xsl:text> :</xsl:text>
						</xsl:element>
						<br/>
						<p>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('dimensions_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="item[@name='dimensions_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
							<xsl:comment> #Error NAME="<xsl:value-of select="concat('dimensions_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
						</p>
					</div>
				</xsl:if>
				<xsl:element name="input">
					<xsl:attribute name="type">hidden</xsl:attribute>
					<xsl:attribute name="name"><xsl:value-of select="concat('dimensions_field_',$counter,'_label')"/></xsl:attribute>
					<xsl:attribute name="value"><xsl:value-of select="item[@name='dimensions_field_label']/value"/></xsl:attribute>
				</xsl:element>
				<div class="col">
					<xsl:element name="input">
						<!--<xsl:attribute name="id"><xsl:value-of select="item[@name='dimensions_field_label']/value"/></xsl:attribute>-->
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat('dimensions_field_',$counter)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="item[@name='size']"/></xsl:attribute>
						<xsl:attribute name="minlength"><xsl:value-of select="item[@name='min']"/></xsl:attribute>
						<xsl:attribute name="maxlength"><xsl:value-of select="item[@name='max']"/></xsl:attribute>
					</xsl:element>
					<span>
						<xsl:text>&#x09;</xsl:text>
						<xsl:text/>
						<xsl:value-of select="item[@name='dimensions_field_name']/value"/>
					</span>
				</div>
			</xsl:for-each>
		</fieldset>
	</xsl:template>
	<!--END OF DIMENSION FIELD ITEM-->
	<!--OPEN FIELD ITEM-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Open_Field']">
		<xsl:variable name="counter" select="position()"/>
		<fieldset class="clearfix">
			<xsl:for-each select="value">
				<div class="col prompt">
					<xsl:if test="item[@name='required']/value = 'required'">
						<div class="col prompt required">
							<xsl:element name="label">
								<xsl:attribute name="for"/>
								<xsl:element name="a">
									<xsl:attribute name="href"><xsl:value-of select="item[@name='open_url']/value"/></xsl:attribute>
									<xsl:attribute name="target"><xsl:value-of select="item[@name='open_url_target']/value"/></xsl:attribute>
									<xsl:value-of select="item[@name='open_field_label']/value"/>
								</xsl:element>
								<xsl:text> :</xsl:text>
							</xsl:element>
							<br/>
							<p>
								<xsl:comment> #Error NAME="<xsl:value-of select="concat('open_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="item[@name='open_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
								<xsl:comment> #Error NAME="<xsl:value-of select="concat('open_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
							</p>
						</div>
					</xsl:if>
					<xsl:if test="not (item[@name='required']/value = 'required') ">
						<div class="col prompt">
							<xsl:element name="label">
								<xsl:attribute name="for"/>
								<xsl:element name="a">
									<xsl:attribute name="href"><xsl:value-of select="item[@name='open_url']/value"/></xsl:attribute>
									<xsl:attribute name="target"><xsl:value-of select="item[@name='open_url_target']/value"/></xsl:attribute>
									<xsl:value-of select="item[@name='open_field_label']/value"/>
								</xsl:element>
								<xsl:text> :</xsl:text>
							</xsl:element>
							<br/>
							<p>
								<xsl:comment> #Error NAME="<xsl:value-of select="concat('open_field_',$counter)"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Please enter <xsl:value-of select="item[@name='open_field_label']/value"/>. It is required.&lt;/SPAN&gt;' </xsl:comment>
								<xsl:comment> #Error NAME="<xsl:value-of select="concat('open_field_',$counter,'_validation')"/>" Value='&lt;BR&gt;&lt;SPAN &gt;Invalid format / data entry.  Please re-enter your information.&lt;/SPAN&gt;' </xsl:comment>
							</p>
						</div>
					</xsl:if>
				</div>
				<xsl:element name="input">
					<xsl:attribute name="type">hidden</xsl:attribute>
					<xsl:attribute name="name"><xsl:value-of select="concat('open_field_',$counter,'_label')"/></xsl:attribute>
					<xsl:attribute name="value"><xsl:value-of select="item[@name='open_field_label']/value"/></xsl:attribute>
					<!--<xsl:attribute name="id"><xsl:value-of select="item[@name='open_field_label']/value"/></xsl:attribute>-->
				</xsl:element>
				<div class="col">
					<xsl:element name="input">
						<!--<xsl:attribute name="id"><xsl:value-of select="item[@name='open_field_label']/value"/></xsl:attribute>-->
						<xsl:attribute name="type">text</xsl:attribute>
						<xsl:attribute name="class">inputbox</xsl:attribute>
						<xsl:attribute name="name"><xsl:value-of select="concat('open_field_',$counter)"/></xsl:attribute>
						<xsl:attribute name="size"><xsl:value-of select="item[@name='size']"/></xsl:attribute>
						<xsl:attribute name="minlength"><xsl:value-of select="item[@name='min']"/></xsl:attribute>
						<xsl:attribute name="maxlength"><xsl:value-of select="item[@name='max']"/></xsl:attribute>
					</xsl:element>
					<span>
						<xsl:text>&#x09;</xsl:text>
						<xsl:text/>
						<xsl:value-of select="item[@name='open_label']/value"/>
					</span>
				</div>
			</xsl:for-each>
		</fieldset>
	</xsl:template>
	<!--END OF OPEN FIELD ITEM-->
	<!--BUTTONS SECTION-->
	<xsl:template match="Properties/Data/Datum/DCR/record/item/value/item[@name='form']/value/item[@name='Email_Details']">
		<fieldset class="clearfix">
			<div class="col prompt">
				<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
			</div>
			<div class="col">
				<input TYPE="reset" class="buttongray" value="Reset"/>
			</div>
			<div class="col">
				<input>
					<xsl:attribute name="type">submit</xsl:attribute>
					<xsl:variable name="buttonValue" select="value/item[@name='submitmessage']/value"/>
					<xsl:attribute name="value"><xsl:value-of select="translate($buttonValue,'s','S')"/></xsl:attribute>
					<xsl:attribute name="class">buttonpurple</xsl:attribute>
				</input>
			</div>
			<div class="form-elements-buttons double clearfix" style="width: 470px;">
				<button value="" class="btn-20-prpl">
					<span>Primary</span>
				</button>
				<button value="" class="btn-20-gr">
					<span>Secondary</span>
				</button>
				<a href="">Action link</a>
			</div>
		</fieldset>
	</xsl:template>
	<!--END OF BUTTONS SECTION-->
</xsl:stylesheet>
