<?xml version="1.0"?>
<!-- edited with XML Spy v2.5 NT  - http://www.xmlspy.com -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc">
	<xsl:import href="../xslc.xsl"/>
	<xsl:template match="/">
		<xsl:apply-templates select="document"/>
	</xsl:template>
	<xsl:template match="document">
		<xsl:call-template name="xslc:Page">
			<xsl:with-param name="Title" select="/document/Locales/LoginChangePasswordTitle"/>
			<xsl:with-param name="Head">
				<script language="javascript" src="{$XMLC_Portal}md5.js"/>
				<script language="javascript">
					<xsl:comment>
function ProcessPwd() {
  if (D = document.MainForm) {
    if (D.ProcessPwdDone.value != '1') {
      if (D.CurrentPassword) {
        D.CurrentPassword.value = calcMD5(D.CurrentPassword_.value);
        D.CurrentPassword_.value = '';
      }
      D.Password.value = calcMD5(D.Password_.value);
      D.Password_.value = '';
      D.Confirm.value = calcMD5(D.Confirm_.value);
      D.Confirm_.value = '';
      D.ProcessPwdDone.value = '1';
    }
  }
  else {
    alert('Password encryption failed.\nPlease upgrade your browser.');
  }
}
</xsl:comment>
				</script>
			</xsl:with-param>
			<xsl:with-param name="ActivePageName">FormChangePwd</xsl:with-param>
			<xsl:with-param name="Tabs">
				<Item Name="FormChangePwd" Caption="{/document/Locales/ChangePassword}" Hint="{/document/Locales/ChangePassword}" ImagePath="{$XMLC_PictosPath}button_login.gif"/>
			</xsl:with-param>
			<xsl:with-param name="DisplayTabControl">1</xsl:with-param>
			<xsl:with-param name="Body">
				<xsl:if test="/document/XMLC_Params/XMLC_Exception != ''">
					<div style="height: 10px; font-size: 1pt">&#160;</div>
					<table>
						<tr>
							<td width="40">
								<img src="{$XMLC_PictosPath}Error.gif"/>
							</td>
							<td>
								<xsl:variable name="VException" select="/document/XMLC_Params/XMLC_Exception"/>
								<xsl:variable name="VExceptionText" select="/document/Locales/*[name() = $VException]"/>
								<xsl:choose>
									<xsl:when test="$VExceptionText">
										<xsl:value-of select="$VExceptionText"/>
									</xsl:when>
									<xsl:otherwise>
										<xsl:value-of select="$VException"/>
									</xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
					</table>
				</xsl:if>
				<form name="MainForm" method="post" onsubmit="ProcessPwd();">
					<xsl:attribute name="action">
						<xsl:if test="/document/XMLC_Params/XMLC_UseXMLC_Action != '1'">XMLC_ChangePwd</xsl:if>
					</xsl:attribute>
					<xsl:if test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">
						<input type="hidden" name="XMLC_Action" value="XMLC_ChangePwd"/>
					</xsl:if>
					<input type="hidden" name="HasCurrentPwd" value="{/document/PARAMS/HasCurrentPwd}"/>
					<input type="hidden" name="UserName" value="{/document/PARAMS/UserName}"/>
					<input type="hidden" name="XMLC_BaseHREF" value="{/document/PARAMS/XMLC_BaseHREF}"/>
					<input type="hidden" name="ProcessPwdDone" value="0"/>
					<table border="0" width="100%">
						<xsl:if test="/document/PARAMS/HasCurrentPwd = 'True'">
							<tr>
								<td nowrap="">
									<b>
										<xsl:value-of select="/document/Locales/Password"/>
									</b>
								</td>
								<td nowrap="" width="100%">
									<input type="hidden" name="CurrentPassword"/>
									<input type="password" name="CurrentPassword_" style="width: 100%" class="clFlatTextInput"/>
								</td>
							</tr>
						</xsl:if>
						<tr>
							<td colspan="2">
								<hr size="1"/>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<b>
									<xsl:value-of select="/document/Locales/Rules"/>&#160;</b>
								<xsl:value-of select="/document/Locales/RulesText"/>
							</td>
						</tr>
						<tr>
							<td nowrap="">
								<b>
									<xsl:value-of select="/document/Locales/NewPassword"/>
								</b>
							</td>
							<td nowrap="" width="100%">
								<input type="hidden" name="Password"/>
								<input type="password" name="Password_" style="width: 100%" class="clFlatTextInput"/>
							</td>
						</tr>
						<tr>
							<td nowrap="">
								<b>
									<xsl:value-of select="/document/Locales/ConfirmPassword"/>
								</b>
							</td>
							<td nowrap="" width="100%">
								<input type="hidden" name="Confirm"/>
								<input type="password" name="Confirm_" style="width: 100%" class="clFlatTextInput"/>
							</td>
						</tr>
					</table>
					<br/>
					<input type="image" src="{$XMLC_SkinPath}spacer.gif" height="0" width="0"/>
					<table>
						<tr>
							<td>
								<xsl:call-template name="xslc:Button">
									<xsl:with-param name="Caption">
										<span>
											<b>
												<xsl:value-of select="/document/Locales/ChangePassword"/>
											</b>
										</span>
									</xsl:with-param>
									<xsl:with-param name="OnClick">SubmitForm('MainForm'); return false;</xsl:with-param>
								</xsl:call-template>
							</td>
						</tr>
					</table>
					<xsl:if test="/document/PARAMS[COMMENT!=&quot;&quot;]">
						<br/>
						<div style="margin-bottom: 4px">
							<xsl:variable name="VComment" select="/document/PARAMS/COMMENT"/>
							<xsl:value-of select="/document/Locales/*[name() = $VComment]"/>
						</div>
					</xsl:if>
				</form>
				<xsl:call-template name="xslc:PoweredBy"/>
			</xsl:with-param>
			<xsl:with-param name="Width">400</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
</xsl:stylesheet>
