<%@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="email_drop, App_Web_email_drop.aspx.cdcab7d2" title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="Server">

    <script language="javascript" type="text/javascript">
    function validate() {
        if (document.getElementById("<%=txtName.ClientID %>").value =="") {
            alert("Please Enter Your Name");
            document.getElementById("<%=txtName.ClientID%>").focus();
            return false;

        }
        if (document.getElementById("<%=txtEmailUSer.ClientID%>").value == "") 
        {
            alert("Please Submit Your EmailID");
            document.getElementById("<%=txtEmailUSer.ClientID%>").focus();
            return false;
        }
        
       
       
      
        
        if (document.getElementById("<%=txtEmailUSer.ClientID%>").value != "Enter Your Email") {
            var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
            var email = document.getElementById("<%=txtEmailUSer.ClientID%>").value;
            if (reg.test(email) == false) {

                alert('Invalid Email Address');
                return false;
            }
            if (document.getElementById("<%=txtRemarks.ClientID%>").value == "")
            {
                alert("Please Submit Your Remarks");
                document.getElementById("<%=txtRemarks.ClientID%>").focus();
                return false;
            }

        }
        return true;
    }


    function isAlphabet(evt) {

        var regex = new RegExp("^[0-9]+$");
        var key = String.fromCharCode(!evt.charCode ? evt.which : evt.charCode);
        if (!regex.test(key)) {

            return false;
        }
    }

    </script>
     <a href="http://blogs.assignmentsweb.com" target="_blank" class="blog">
        Blog
    </a>
    <div class="shamsul">
        <div class="shams">
            <div class="right_part" style="width: 50%; float: left; margin: auto">
                <div class="right_title" style="margin-left: 20px;">
                    <h2>
                        Send Mail</h2>
                </div>
                <div class="right_text" style="width: 100%; margin-left: 20px;">
                    <form>
                    <fieldset>
                        <legend>Please fill the form below:</legend>
                        <p>
                            <div class="name_cont">
                                To</div>
                            <asp:TextBox ID="txtEmail" runat="server" class="txtbox" Text="support@assignmentsweb.com"
                                ReadOnly="true"></asp:TextBox>
                        </p>
                        <p>
                            <div class="name_cont">
                                Name</div>
                            <asp:TextBox ID="txtName" runat="server" class="txtbox" MaxLength="50"></asp:TextBox>
                        </p>
                        <p>
                            <div class="name_cont">
                                Email</div>
                            <asp:TextBox ID="txtEmailUSer" runat="server" class="txtbox" MaxLength="50"></asp:TextBox>
                        </p>
                        <p>
                            <div class="name_cont">
                                Contact No</div>
                            <asp:TextBox ID="txtContact" runat="server" class="txtbox" onkeypress="javascript:return isAlphabet(event);"
                                MaxLength="12"></asp:TextBox>
                        </p>
                        <%--<p><div class="name_cont">Subject</div>
                
                <asp:TextBox ID="txtSubject" class="txtbox" TextMode="MultiLine" runat="server"></asp:TextBox>
                </p>--%>
                        <p>
                            <div class="name_cont">
                                Attach</div>
                            <%--<input name="textfield" type="file" class="txtbox" id="textfield" />--%>
                            <asp:FileUpload ID="flUload" runat="server" class="txtbox" />
                        </p>
                        <p>
                            <div class="name_cont">
                                Remark</div>
                            <%--<input name="textfield" type="text" class="txtbox" id="textfield" />--%>
                            <asp:TextBox ID="txtRemarks" runat="server" class="txtbox" TextMode="MultiLine"></asp:TextBox>
                        </p>
                        <p>
                            <center style="width: 71%">
                                <%--<a href="#"><img  src="images/submit.png" width="85" height="28" border="0" ></a>--%>
                                <asp:ImageButton ID="btnSubmit" runat="server" ImageUrl="images/submit.png" Width="85"
                                    Height="28" border="0" OnClientClick="javascript:return validate();" OnClick="btnSubmit_Click" />
                            </center>
                        </p>
                    </fieldset>
                    </form>
                </div>
            </div>
            <div class="right_part" style="width: 48%">
                <img src="images/email_logo.jpg" width="400" border="0" align="right" style="padding-right: 20px;"></div>
            <div class="clr">
            </div>
        </div>
      </div>
       
</asp:Content>