<%@ Control Language="VB" AutoEventWireup="false" CodeFile="EnterInformation.ascx.vb" Inherits="Controls_EnterInformation" %>
<%@ Register Src="~/Controls/CustomContent.ascx" TagName="CustomContent" TagPrefix="uc" %>
 
<div class="dotruleCenter">
<asp:ValidationSummary ID="vldSummaryEnterInformation" runat="server" DisplayMode="List" HeaderText="<img src='../Images/error-icon_big.gif' />"/>
	<table>
	<%If IsExistingUser Then%>
	    <tr>
	        <td>If the below information is incorrect please contact us at 1-888-GET CHARTER (1-888-438-2427)</td>
	    </tr>	    
	<%End If%>	
	    <tr>
	        <td align="right">
				<label for="txtFirstName"><span class="orange">*</span> First Name:&nbsp;&nbsp;</label>				        
	        </td>
	        <td>
	            <asp:TextBox ID="txtFirstName" runat="server" MaxLength="30"/>
				<asp:RequiredFieldValidator ID="vldFirstNameRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtFirstName" 
				Display="Dynamic" ErrorMessage="<b>First Name </b> is required."></asp:RequiredFieldValidator>	
	        </td>
	    </tr>
	    <tr>
	        <td align="right">
				<label for="txtLastName"><span class="orange">*</span> Last Name:&nbsp;&nbsp;</label>				
	        </td>
	        <td>
	        <asp:TextBox ID="txtLastName" runat="server" MaxLength="30"/>
				<asp:RequiredFieldValidator ID="vldLastNameRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtLastName" 
				    Display="Dynamic" ErrorMessage="<b>Last Name </b> is required."></asp:RequiredFieldValidator>	        
	        </td>	        
	    </tr>
	    <tr>
	        <td align="right">
			    <label for="lblAddress1">Street Address:&nbsp;&nbsp;</label>				
	        </td>
	        <td>
    	        <asp:label ID="lblAddress1" runat="server" CssClass="preFill" />	        
	        </td>	        
	    </tr>
	    <tr>
	        <td align="right">
				<label for="lblAddress2">Apt. or Unit:&nbsp;&nbsp;</label>				
	        </td
	        <td>
    	        <asp:label ID="lblAddress2" runat="server" CssClass="preFill" />	        
	        </td>
	    </tr>
	    <tr>
	        <td align="right">
				<label for="lblCity">City:&nbsp;&nbsp;</label>				
	        </td>
	        <td>
	            <asp:label ID="lblCity" runat="server" CssClass="preFill" />	        
	        </td>
	    </tr>
	    <tr>
	        <td align="right">
				<label for="">State:&nbsp;&nbsp;</label>				
	        </td>
	        <td>
    	        <asp:label ID="lblState" runat="server" CssClass="preFill" />	        
	        </td>
	    </tr>
	    <tr>
	        <td align="right">
				<label for="lblZipCode">Zip Code:&nbsp;&nbsp;</label>				
	        </td>
	        <td>
	            <asp:label ID="lblZipCode" runat="server" CssClass="preFill" />	        
	        </td>
	    </tr>
	    <tr>
	        <td align="right">
				<label for="txtPhone"><span class="orange">*</span> Phone Number:&nbsp;&nbsp;</label>
	        </td>
	        <td>
				<asp:TextBox ID="txtPhone" runat="server" MaxLength="10"/>
				<asp:RequiredFieldValidator ID="vldPhoneRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtPhone" 
				    Display="Dynamic" ErrorMessage="Please enter your <b>&nbsp;Phone Number</b> including area code."></asp:RequiredFieldValidator>
				<asp:RegularExpressionValidator ID="vldPhoneRegEx" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtPhone"
				    Display="Dynamic" ErrorMessage="Please enter valid <b>Phone Number</b>." ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}|\(?\d{3}\)?[-\s.\s ]?\d{3}[-. ]\d{4}|(\d{10})"></asp:RegularExpressionValidator>	        	        
	        </td>
	    </tr>
	    <tr>
	        <td align="right">
				<label for="txtEmail"><span class="orange"></span> E-Mail Address:&nbsp;&nbsp;</label>
	        </td>
	        <td>
				<asp:TextBox ID="txtEmail" runat="server" />
				<asp:RegularExpressionValidator ID="vldEmailRegEx" runat="server" ControlToValidate="txtEmail" Text="<img src='../Images/error-icon_small.gif'/>"
				    Display="Dynamic" ErrorMessage="Please enter a valid <b>e-mail</b>." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>	        	        
	        </td>
	    </tr>
	    <tr>
	        <td colspan="2">
	            &nbsp;&nbsp;
	        </td>
	    </tr>	    
	    <tr>
	        <td colspan="2">
	            <uc:CustomContent ID="MovingToAddressContent" ContentKey="orderflow:enterinformation:movingtoaddress" runat="server" />
	        </td>
	    </tr>	    
	    <tr>
	        <td align="right">		        
		        <asp:RadioButtonList ID="rblDisplayMovingToAddress"  runat="server" RepeatDirection="Horizontal" AutoPostBack="true">
		            <asp:ListItem>Yes</asp:ListItem>
		            <asp:ListItem Selected>No</asp:ListItem>
		        </asp:RadioButtonList>
	        </td>
	        <td>
	        
	        </td>
	    </tr>
	    <asp:Panel ID="pnlMovingToAddress" runat="server" Visible="false" DefaultButton="btnNext">
	        <tr>
	            <td align="right">
    	            <label for="txtMovingToAddress1"><span class="orange">*</span> Street Address:&nbsp;&nbsp;</label>		                 
	            </td>
	            <td>
    	            <asp:TextBox  ID="txtMovingToAddress1" runat="server"  MaxLength="100"/>
				    <asp:RequiredFieldValidator 
				    ID="vldMovingToAddress1"  
				    ControlToValidate="txtMovingToAddress1" 
				    ErrorMessage="Please enter your <b>&nbsp;Moving To Street Address</b>." runat="server" Text="<img src='../Images/error-icon_small.gif'/>" Display="Dynamic" ></asp:RequiredFieldValidator>    	            
	            </td>
	        </tr>
	        <tr>
	            <td align="right">
    	            <label for="txtMovingToAddress2"><span class="orange"></span> Apt or Unit:&nbsp;&nbsp;</label>		                 
	            </td>
	            <td>
    	            <asp:TextBox  ID="txtMovingToAddress2" runat="server"  MaxLength="100"/>
    	            
	            </td>
	        </tr>
	        <tr>
	            <td align="right">
    	            <label for="txtMovingToCity"><span class="orange">*</span> City:&nbsp;&nbsp;</label>		                
	            </td>
	            <td>
        	        <asp:TextBox  ID="txtMovingToCity" runat="server"  MaxLength="100"/> 
				    <asp:RequiredFieldValidator 
				    ID="vldMovingToCity"  
				    ControlToValidate="txtMovingToCity" 
				    ErrorMessage="Please enter your <b>&nbsp;Moving To City</b>." runat="server" Text="<img src='../Images/error-icon_small.gif'/>" Display="Dynamic" ></asp:RequiredFieldValidator>    	                    	        
	            </td>
	        </tr>
	        <tr>
	            <td align="right">
    	            <label for="txtMovingToState"><span class="orange">*</span> State:&nbsp;&nbsp;</label>		                
	            </td>
	            <td>
        	        <asp:TextBox  ID="txtMovingToState" runat="server"  MaxLength="2"/> 
				    <asp:RequiredFieldValidator 
				    ID="vldMovingToState"  
				    ControlToValidate="txtMovingToState" 
				    ErrorMessage="Please enter your <b>&nbsp;Moving To State</b>." runat="server" Text="<img src='../Images/error-icon_small.gif'/>" Display="Dynamic" ></asp:RequiredFieldValidator>    	                    	        
	            </td>
	        </tr>	       
	        <tr>
	            <td align="right">
    	            <label for="txtMovingToZipCode"><span class="orange">*</span> Zip Code:&nbsp;&nbsp;</label>		                
	            </td>
	            <td>
        	        <asp:TextBox  ID="txtMovingToZipCode" runat="server"  MaxLength="5"/> 
				    <asp:RequiredFieldValidator 
				    ID="vldMovingToZipCode"  
				    ControlToValidate="txtMovingToZipCode" 
				    ErrorMessage="Please enter your <b>&nbsp;Moving To ZipCode</b>." runat="server" Text="<img src='../Images/error-icon_small.gif'/>" Display="Dynamic" ></asp:RequiredFieldValidator>    	                    	        
	            </td>
	        </tr> 
	     </asp:Panel>
 	    	    	    	    	    	    	    	    
	</table>
	
	<div id="basic">
		<fieldset id="solo">	

			<div class="revCheck">
			    <asp:CheckBox ID="chkBillingInfo" runat="server" AutoPostBack="true" CausesValidation="false" visible="false" />
			    <label for="chkBillingInfo" visible="false"><!--Specify a separate billing address--></label>
			</div>

			<asp:Panel ID="pnlBillingInfo" runat="server" DefaultButton="btnNext" style="height:150px">
				<div class="fm-req">
					<label for="txtBillingAddress1"><span class="orange">*</span> Street Address:</label>
					<asp:TextBox ID="txtBillingAddress1" runat="server" MaxLength="60" />
					<asp:RequiredFieldValidator ID="vldBillingAddress1Required" runat="server" Text="<img src='../Images/error-icon_small.gif'/>"  ControlToValidate="txtBillingAddress1" 
					    Display="Dynamic" ErrorMessage="<b>Street Address</b> for Billing Address is required."></asp:RequiredFieldValidator>
				</div>
				<div>
					<label for="txtBillingAddress2">Apt. or Unit:</label>
					<asp:TextBox ID="txtBillingAddress2" runat="server" MaxLength="60" />
				</div>
				<div class="fm-req">
					<label for="txtBillingCity"><span class="orange">*</span> City:</label>
					<asp:TextBox ID="txtBillingCity" runat="server" MaxLength="60" />
					<asp:RequiredFieldValidator ID="vldBillingCityRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtBillingCity" 
					    Display="Dynamic" ErrorMessage="<b>City</b> for Billing Address is required for Billing Address."></asp:RequiredFieldValidator>
				</div>
				<div class="fm-req">
					<label for="ddlBillingState"><span class="orange">*</span> State:</label>
					<asp:DropDownList ID="ddlBillingState" runat="server" ></asp:DropDownList>
					<asp:RequiredFieldValidator ID="vldBillingStateRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="ddlBillingState" InitialValue=""
					    Display="Dynamic" ErrorMessage="<b>State</b> for Billing Address is required for Billing Address."></asp:RequiredFieldValidator>
				</div>
				<div class="fm-req">
					<label for="txtBillingZipCode"><span class="orange">*</span> Zip Code:</label>
					<asp:TextBox ID="txtBillingZipCode" runat="server" MaxLength="10" />
					<asp:RequiredFieldValidator ID="vldBillingZipCodeRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtBillingZipCode" 
					    Display="Dynamic" ErrorMessage="Please enter your 5 digit <b>Zip Code</b> OR Zip+4 Code for Billing Address."></asp:RequiredFieldValidator>
					<asp:RegularExpressionValidator ID="vldBillingZipCodeRegEx" runat="server" ControlToValidate="txtBillingZipCode"
					    Display="Dynamic" Text="<img src='../Images/error-icon_small.gif'/>" ErrorMessage="Please enter valid <b>Zip Code</b> for Billing Address." ValidationExpression="\d{5}(-\d{4})?"></asp:RegularExpressionValidator>
				</div>
			</asp:Panel>


            <asp:Panel ID="pnlChkShipping" runat="server">
			    <div class="revCheck">
                    <asp:CheckBox ID="chkShippingInfo" runat="server" AutoPostBack="true" CausesValidation="false" />
                    <label for="chkShippingInfo" id="lblShippingInfo" runat="server">Specify a separate shipping address</label>
			    </div>
            </asp:Panel>
            
			<asp:Panel ID="pnlShippingInfo" runat="server" DefaultButton="btnNext" style="height:175px; margin-top:20px">
				<div class="fm-req">
					<label for="txtShippingAddress1"><span class="orange">*</span> Street Address:</label>
					<asp:TextBox ID="txtShippingAddress1" runat="server" MaxLength="60" />
					<asp:RequiredFieldValidator ID="vldShippingAddress1Required" runat="server" Text="<img src='../Images/error-icon_small.gif'/>"  ControlToValidate="txtShippingAddress1" 
					    Display="Dynamic" ErrorMessage="<b>Street Address</b> for Shipping Address is required."></asp:RequiredFieldValidator>
				</div>
				<div>
					<label for="txtShippingAddress2">Apt. or Unit:</label>
					<asp:TextBox ID="txtShippingAddress2" runat="server" MaxLength="60" />
				</div>
				<div class="fm-req">
					<label for="txtShippingCity"><span class="orange">*</span> City:</label>
					<asp:TextBox ID="txtShippingCity" runat="server" MaxLength="60" />
					<asp:RequiredFieldValidator ID="vldShippingCityRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtShippingCity" 
					    Display="Dynamic" ErrorMessage="<b>City</b> for Shipping Address is required."></asp:RequiredFieldValidator>
				</div>
				<div class="fm-req">
					<label for="ddlShippingState"><span class="orange">*</span> State:</label>
					<asp:DropDownList ID="ddlShippingState" runat="server" ></asp:DropDownList>
					<asp:RequiredFieldValidator ID="vldShippingStateRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="ddlShippingState" InitialValue=""
					    Display="Dynamic" ErrorMessage="<b>State</b> for Shipping Address is required."></asp:RequiredFieldValidator>
				</div>
				<div class="fm-req">
					<label for="txtShippingZipCode"><span class="orange">*</span> Zip Code:</label>
					<asp:TextBox ID="txtShippingZipCode" runat="server" MaxLength="10" />
					<asp:RequiredFieldValidator ID="vldShippingZipCodeRequired" runat="server" Text="<img src='../Images/error-icon_small.gif'/>" ControlToValidate="txtShippingZipCode" 
					    Display="Dynamic" ErrorMessage="Please enter your 5 digit <b>Zip Code</b> OR Zip+4 Code for Shipping Address."></asp:RequiredFieldValidator>
					<asp:RegularExpressionValidator ID="vldShippingZipCodeRegEx" runat="server" ControlToValidate="txtShippingZipCode"
					    Display="Dynamic" Text="<img src='../Images/error-icon_small.gif'/>" ErrorMessage="Please enter valid <b>Zip Code</b> for Shipping Address." ValidationExpression="\d{5}(-\d{4})?"></asp:RegularExpressionValidator>
				</div>
			</asp:Panel>
		</fieldset>
	</div> 
</div>

<table cellpadding="0" cellspacing="0" style="width:98%">
    <tr>
	    <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
	    <td><asp:ImageButton ID="btnBack" runat="server" ImageUrl="../Images/but_back.gif" AlternateText="Continue" /></td>
	    <td style="text-align:right"><asp:ImageButton ID="btnNext" runat="server" ImageUrl="../Images/but_continueArrows.gif" AlternateText="Continue" /></td>
    </tr>
</table> 
