<%@ Control Language="C#" EnableTheming="false"  AutoEventWireup="false" Inherits="Subtext.Web.UI.Controls.PostComment" %>
<div id="commentform">
<h3>Post Comment</h3>
	<table cellSpacing="1" cellPadding="1" border="0">
		<tr>
			<td>Title</td>
			<td>
				<asp:TextBox id="tbTitle" runat="server" Size="40" Width="300px" CssClass="Textbox"></asp:TextBox></td>
			<td>
				<asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter a title"
					ControlToValidate="tbTitle"></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td>Name</td>
			<td>
				<asp:TextBox id="tbName" runat="server" Size="40" Width="300px" CssClass="Textbox"></asp:TextBox></td>
			<td>
				<asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="Please enter your name"
					ControlToValidate="tbName"></asp:RequiredFieldValidator></td>
		</tr>
		<tr>
			<td>Email</td>
			<td>
				<asp:TextBox id="tbEmail" runat="server" Size="40" Width="300px" CssClass="Textbox"></asp:TextBox>
			</td>
			<td>
				<asp:RegularExpressionValidator ID="vldEmail" runat="server" ControlToValidate="tbEmail" ValidationExpression="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" Display="dynamic" ErrorMessage="Email is not required, but it must be valid if specified." EnableClientScript="true" />
			</td>
		</tr>		
		<tr>
			<td>Url</td>
			<td>
				<asp:TextBox id="tbUrl" runat="server" Size="40" Width="300px" CssClass="Textbox"></asp:TextBox>
			</td>
			<td>
				<asp:RegularExpressionValidator ID="vldUrl" runat="server" ControlToValidate="tbUrl" ValidationExpression="^(https?://)?([\w-]+\.)+[\w-]+([\w-./?%&=:]*)?$" Display="dynamic" ErrorMessage="Url is not required, but it must be valid if specified." EnableClientScript="true" />
			</td>
		</tr>
		<tr>
			<td colSpan="3">Comment&nbsp;
				<asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter a comment"
					ControlToValidate="tbComment"></asp:RequiredFieldValidator><br />
				<asp:TextBox id="tbComment" runat="server" Rows="10" Columns="50" Width="100%" Height="193px"
					TextMode="MultiLine"></asp:TextBox></td>
		</tr>
		<tr>
			<td colSpan="3">
				<asp:CheckBox id="chkRemember" runat="server" Text="Remember Me?" Checked="true"></asp:CheckBox></td>
		</tr>
		<tr>
			<td>
				<asp:Button id="btnSubmit" CssClass="Button" runat="server" Text="Submit"></asp:Button></td>
			<td colspan="2">
				<asp:Label id="Message" runat="server" ForeColor="Red"></asp:Label></td>
		</tr>
	</table>
</div>
