<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

	<xsl:strip-space elements="*"/>
	<xsl:output method="html" indent="yes" encoding="utf-8"/>
	
	<xsl:template match="COMMENT-FORM">
	</xsl:template>	
	
	<xsl:template match="COMMENT-FORM" mode="initAfterBody">
		<xsl:call-template name="MODAL-FORM">
			<xsl:with-param name="formName">modalForm</xsl:with-param>
			<xsl:with-param name="formTitle" select="/SITEBUILDER-PAGE/LOCALE/FORM-TITLE"/>
			<!--<xsl:with-param name="helpHint" select="/SITEBUILDER-PAGE/LOCALE/HELP-HINT"/>-->
			<!--<xsl:with-param name="closeHint" select="@CLOSE-HINT"/>-->
			<xsl:with-param name="additionalFormStyle">width: 650px; height: 450px;</xsl:with-param>
			<xsl:with-param name="content" select="current()" />
			<xsl:with-param name="onCloseAction">sbNavigationObject.go();</xsl:with-param>
		</xsl:call-template>
	</xsl:template>	
		
	<xsl:template name="COMMENT-FORM-FIELDS">
		<script type="text/javascript" src="/modules/Blogger/js/Comment.js?{$version}.{$build}"/>
		<table border="0" style="width:100%; padding: 6px;" class="sb-formtable">
			<tr>
				<td class="sb-formview-row">
					<xsl:apply-templates select="CONTROL[@NAME='subject']" mode="TITLE-TOP">
						<xsl:with-param name="require">on</xsl:with-param>
						<xsl:with-param name="controlClass">sb-control-input-input</xsl:with-param>
						<xsl:with-param name="onChange">top.sbApplyChangesObject.registerChange();</xsl:with-param>
					</xsl:apply-templates>
				</td>				
			</tr>
			<tr>
				<td class="sb-formview-row">
					<xsl:apply-templates select="CONTROL[@NAME='author']" mode="TITLE-TOP">
						<xsl:with-param name="require">on</xsl:with-param>
						<xsl:with-param name="controlClass">sb-control-input-input</xsl:with-param>
						<xsl:with-param name="onChange">top.sbApplyChangesObject.registerChange();</xsl:with-param>
					</xsl:apply-templates>
				</td>				
			</tr>
			<tr>
				<td>
					<span><xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/COMMENT"/></span><br/>
					<xsl:apply-templates select="WYSIWYG" />
				</td>
			</tr>
		</table>			
		<!--
		<input type="hidden" name="parent_id">
			<xsl:attribute name="value"><xsl:value-of select="@POST-ID"/></xsl:attribute>
		</input>
		-->
	</xsl:template>	
	
	
</xsl:stylesheet>	