<%@ Control Language="C#" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Import Namespace="CommunityServer.Components" %>
<%@ Import Namespace="CommunityServer.Controls" %>

<div align=center>
<div class="CommonMessageArea">
	<cs:StatusMessage runat="server" id="formStatus" />
    <h4 class="CommonMessageTitle"><CS:ResourceLabel runat="server" ResourceName="ChangePassword_Title" /> <asp:Label id="UserName" runat=server /></h4>
	<div class="CommonMessageContent">
		<div class="CommonFormArea">
		<div class="CommonFormDescription">
			<CS:ResourceLabel runat="server" ResourceName="ChangePassword_Instructions" id="Resourcelabel1"/>
		</div>
		<table cellpadding="3" cellspacing="0" border="0" width="100%">            
			<tr id="showCurrentPassword" runat="Server" visible="true">
				<td align="left" class="CommonFormFieldName" nowrap="true">
					<CS:ResourceLabel runat="server" ResourceName="ChangePassword_CurrentPassword" />
				</td>
				<td align="left" class="CommonFormField" nowrap="true">
					<asp:textbox TextMode="Password" runat="server" id="Password" Columns="30" MaxLength="64"/>
        			<asp:RegularExpressionValidator id="passwordRegExValidator" runat="server" ControlToValidate="Password" Display=Dynamic Cssclass="validationWarning">*</asp:RegularExpressionValidator>
					<asp:requiredfieldvalidator id="ValidatePassword" runat="server" ControlToValidate="Password" Display=Dynamic Cssclass="validationWarning">*</asp:requiredfieldvalidator>
				</td>
			</tr>
			<tr>
				<td align="left" nowrap="true" class="CommonFormFieldName">
					<CS:ResourceLabel runat="server" ResourceName="ChangePassword_NewPassword" />
				</td>
				<td align="left" class="CommonFormField" nowrap="true">
					<asp:textbox TextMode="Password" runat="server" id="NewPassword1" Columns="30" MaxLength="64"/>
					<asp:requiredfieldvalidator id="ValidatePassword1" runat="server" ControlToValidate="NewPassword1" Display=Dynamic Cssclass="validationWarning">*</asp:requiredfieldvalidator>
        			<asp:RegularExpressionValidator id="newPasswordRegExValidator" runat="server" ControlToValidate="NewPassword1" Display=Dynamic Cssclass="validationWarning">*</asp:RegularExpressionValidator>
					<asp:CustomValidator ControlToValidate="NewPassword1" id="newPasswordContentValidator" EnableClientScript=false runat="server" Display=Dynamic Cssclass="validationWarning">*</asp:CustomValidator>
				</td>
			</tr>        
			<tr>
				<td align="left" nowrap="true" class="CommonFormFieldName">
					<CS:ResourceLabel runat="server" ResourceName="ChangePassword_ReEnterNewPassword" />
				</td>
				<td align="left" class="CommonFormField" nowrap="true">
					<asp:textbox TextMode="Password" runat="server" id="NewPassword2" Columns="30" MaxLength="64"/>
					<asp:requiredfieldvalidator id="ValidatePassword2" runat="server" ControlToValidate="NewPassword2" Display=Dynamic Cssclass="validationWarning">*</asp:requiredfieldvalidator>                 
					<asp:comparevalidator id="ComparePassword" runat="server" ControlToValidate="NewPassword2" ControlToCompare="NewPassword1" Display=Dynamic Cssclass="validationWarning">*</asp:comparevalidator>
				</td>        
			</tr>
			<tr>
				<td align="right" class="CommonFormField" colspan="2">
					<div>
						<asp:ValidationSummary id="ValidationMsg" runat="server" DisplayMode="BulletList" Width="100%" CssClass="txt2" />               
					</div>
      
					<asp:button id="ChangePasswordButton" runat="server" />
				</td>
			</tr>            
		</table>
	</div>
</div>
</div>	
