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


<xsl:template name="PASSWORD-FORM">		
	
	<tr id="rowSetPassword">
		<td class="title-block">
		</td>
		<td class="input-block" align="right">
			<script type="text/javascript">
			function showPassword(){
				showElement(document.getElementById("rowPassword"), true);
				showElement(document.getElementById("rowPasswordConfirm"), true);
				showElement(document.getElementById("rowSetPassword"), false);
				return false;
			}
			</script>	
			<xsl:call-template name="BUTTON-CONTROL">
				<xsl:with-param name="class">sb-login-control-button</xsl:with-param>
				<xsl:with-param name="title"><xsl:value-of select="/SITEBUILDER-PAGE/LOCALE/CHANGE-PASSWORD"/></xsl:with-param>
				<xsl:with-param name="action">showPassword();</xsl:with-param>
			</xsl:call-template>
		</td>
	</tr>
	
	<tr id="rowPassword" style="display: none;">
		<td class="title-block">
			<xsl:apply-templates select="CONTROL[@NAME='password']" mode="label">
				<xsl:with-param name="require">true</xsl:with-param>
				<xsl:with-param name="type">password</xsl:with-param>
			</xsl:apply-templates>
		</td>
		<td class="input-block">
			<xsl:apply-templates select="CONTROL[@NAME='password']" mode="control">
				<xsl:with-param name="require">true</xsl:with-param>
				<xsl:with-param name="type">password</xsl:with-param>
			</xsl:apply-templates>
		</td>
	</tr>
	
	<tr id="rowPasswordConfirm" style="display: none;">
		<td class="title-block">
			<xsl:apply-templates select="CONTROL[@NAME='confirmPassword']" mode="label">
				<xsl:with-param name="require">true</xsl:with-param>
				<xsl:with-param name="type">password</xsl:with-param>
			</xsl:apply-templates>
		</td>
		<td class="input-block">
			<xsl:apply-templates select="CONTROL[@NAME='confirmPassword']" mode="control">
				<xsl:with-param name="require">true</xsl:with-param>
				<xsl:with-param name="type">password</xsl:with-param>
			</xsl:apply-templates>
		</td>
	</tr>
</xsl:template>

</xsl:stylesheet>