<%@ Control %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<div id="commentform">
<h3><CS:ResourceControl runat="server" ResourceName="Weblog_ContactForm" /></h3>
    <dl>
        <dt id ="NameTitle" runat="server"><label for="<%=tbName.ClientID %>"><CS:ResourceControl runat="server" ResourceName="Weblog_ContactForm_Name" /></label><asp:RequiredFieldValidator runat="server" ErrorMessage="*" ControlToValidate="tbName" /></dt>
        <dd id ="NameDesc" runat="server"><asp:TextBox id="tbName" runat="server" CssClass="smallbox" /></dd>
        
        <dt><label for="<%=tbEmail.ClientID %>"><CS:ResourceControl runat="server" ResourceName="Weblog_ContactForm_Email" /></label><asp:RequiredFieldValidator runat="server" ErrorMessage="*" ControlToValidate="tbEmail" /><asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="Invalid email address format" ControlToValidate="tbEmail" Display="Dynamic" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$">*</asp:RegularExpressionValidator></dt>
        <dd><asp:TextBox id="tbEmail" runat="server" CssClass="smallbox" /></dd>
        
        <dt><label for="<%=tbSubject.ClientID %>"><CS:ResourceControl runat="server" ResourceName="Weblog_ContactForm_Subject" /></label><asp:RequiredFieldValidator runat="server" ErrorMessage="*" ControlToValidate="tbSubject" /></dt>
        <dd><asp:TextBox id="tbSubject" runat="server" CssClass="smallbox" /></dd>        
        
        <dt><label for="<%=tbBody.ClientID %>"><CS:ResourceControl runat="server" ResourceName="Weblog_ContactForm_Body" /></label><asp:RequiredFieldValidator runat="server" ErrorMessage="*" ControlToValidate="tbBody" /></dt>
        <dd><asp:TextBox id="tbBody" runat="server" TextMode="MultiLine" /></dd>

        <dt><asp:Button id="btnSubmit" runat="server" Text="Send"></asp:Button>  <asp:Label Runat = "Server" ForeColor="Red" ID = "Msg" /></dt>
    </dl>
</div>