<%@ Page Language="C#" MasterPageFile="~/masterpages/eDashboard.master" AutoEventWireup="True"
    Inherits="site_HITS_Subscriber_Details" Title="Brightstar Device Protection: Subscriber Details"
    Culture="auto" UICulture="auto" Theme="eMain" CodeBehind="Details.aspx.cs" %>

<%@ Register Src="~/Controls/GridViews/ClaimHistory.ascx" TagName="ClaimHistory"
    TagPrefix="uc2" %>
<%@ Register Src="~/Controls/CallRecording/CallSummary.ascx" TagName="CallSummary"
    TagPrefix="uc2" %>
<%@ Register Src="~/Controls/PhoneNumber.ascx" TagName="PhoneNumber" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/ChildHeader.ascx" TagName="ChildHeader" TagPrefix="uc" %>
<%@ Register Src="~/Controls/PersistNav.ascx" TagName="PersistNav" TagPrefix="uc" %>
<%@ Register Src="~/Controls/HITSCalendar.ascx" TagName="HITSCalendar" TagPrefix="uc" %>
<%@ Register Assembly="eSecuritel.HITS.UI.Components" Namespace="eSecuritel.HITS.UI.Components"
    TagPrefix="cc1" %>
<%@ Register Src="~/Controls/NotesControl.ascx" TagName="NotesControl" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GridViews/NoteHistory.ascx" TagName="NoteHistory" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GridViews/NoteHistoryWithPaging.ascx" TagName="NoteHistoryWithPaging" TagPrefix="eSecuritelHITSControls" %>
<%@ Register Src="~/Controls/Claims/ESNPopupWindow.ascx" TagName="ESNPopupWindow"
    TagPrefix="uc" %>
<%@ Register Src="~/Controls/ClientCarrierDropDowns.ascx" TagName="ClientCarrierDropDowns"
    TagPrefix="uc1" %>
<%@ Register Assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI" TagPrefix="cc2" %>
<%@ Register TagPrefix="eSecuritelHITSControls" Namespace="WebSite.Controls" Assembly="WebSite" %>
<%@ Register Src="~/Controls/NewRatePlanSelectionGrid.ascx" TagName="NewRatePlanSelectionGrid"
    TagPrefix="eSecuritelHITSControls" %>

<%@ Register Src="~/Controls/GridViews/ArchivedHandsetHistory.ascx" TagPrefix="uc" TagName="ArchivedHandsetHistory" %>

<%@ Register Src="~/Controls/AddressValidationLookup.ascx" TagPrefix="uc" TagName="ucAddressLookupDlg"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    <script src="<%=ResolveClientUrl("~/script/MaskedInput-1.4.0.min.js")%>" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        function TabContainer1_ActiveTabChanged(sender, e) {
            var manageRecordingURL = window.location.href.split('WebSite')[0] + "WebSite/ManageRecording.aspx";
            var url = manageRecordingURL + "?TabIndex=" + sender.get_activeTabIndex() + "&PageUrl=" + window.location.href.split('?')[0] + "&TabId=TabContainer1";
            $.ajax({ url: url, cache: false });

            jQuery(function ($) {
                //$("#date").mask("99/99/9999", { placeholder: "mm/dd/yyyy" });
                $(".PhoneMask").mask("999-999-9999");
                //$("#tin").mask("99-9999999");
                //$("#ssn").mask("999-99-9999");
            });
        }
    </script>
    <script src="../../../script/eSetFormControls.js" type="text/javascript"></script>
    <asp:CustomValidator ID="Validator1" runat="server" ErrorMessage="" Visible="false" />
    <cc1:ExtendedValidationSummary ID="m_extValidationSummaryTop" runat="server" HeaderText="<%$ Resources: SubscriberManagement, HeaderTextFollowingItemsUpdating %>" />

   

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <h1>
                    <asp:Literal ID="m_SubscriberDetailsHeader" runat="server" Text="<%$ Resources: SubscriberManagement, SubscriberDetailsHeaderText %>" />
                </h1>
            </td>
            <td valign="top">
                <uc:PersistNav ID="PersistNav1" runat="server" />
            </td>
        </tr>
    </table>
    <uc:ChildHeader ID="ChildHeader1" runat="server" />
    <div align="center">
        <%--<asp:Button ID="m_btnEscalation" runat="server" Text="Escalation" CausesValidation="false"
            CssClass="pagebutton" />--%>
        <input id="m_btnEscalation" type="button" runat="server" value="<%$ Resources: EscalationManagement, ButtonEscalation %>"
            visible="false" />
    </div>
    <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" OnClientActiveTabChanged="TabContainer1_ActiveTabChanged">
        <ajaxToolkit:TabPanel ID="tabPanelGeneral" runat="server" HeaderText="<%$ Resources: OrganizationManagement, GeneralHeaderLabel %>">
            <ContentTemplate>
                <h2>
                    <asp:Literal ID="m_litGeneralInfo" runat="server" Text="<%$ Resources: AdministrationManagement,LabelGeneralInformation %>" />
                    <asp:Label ID="lblStatus" runat="server" />
                </h2>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr style="background-color: #585d7d; color: #fff;">
                        <td align="left" style="width: 25%" nowrap="nowrap">
                            <asp:HyperLink ID="m_hypApproved" runat="server" ForeColor="Yellow" />
                            ,
                            <asp:HyperLink ID="m_hypLosses" runat="server" ForeColor="Yellow" />
                        </td>
                        <td colspan="2" align="center" style="width: 50%" nowrap="nowrap">
                            <asp:Literal ID="m_litSubscriberName" runat="server" />
                        </td>
                        <td align="right" style="width: 25%" nowrap="nowrap">
                            <span style="text-align: right; color: Yellow;">
                                <asp:Literal ID="m_litActiveTitle" runat="server" />
                            </span>
                        </td>
                    </tr>
                </table>
                <div class="greyblock">
                    <span style="color: #ff0000">* </span>
                    <asp:Literal ID="m_litRequired" runat="server" Text="<%$ Resources: Default, LabelIndicatesRequiredField %>" />
                    <asp:UpdatePanel runat="server" ID="asp_UpdatePanel4154" UpdateMode="Conditional">
                        <ContentTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                <tr>
                                    <asp:Panel ID="m_pnlOrganizationDetails" runat="server">
                                        <%--<td align="right">
                                            <asp:Literal ID="m_litCarrier" runat="server" Text="<%$ Resources : OrganizationManagement,LabelClientColon %>" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="m_ddlCarrier" AutoPostBack="true" runat="server" />
                                        </td>--%>
                                        <td align="right" colspan="2">
                                            <div id="client-dd-subscriberSearchDetails" class="client-dd-subscriberSearchDetails">
                                                <uc1:ClientCarrierDropDowns ID="ucClientCarrierDropDowns" runat="server" LabelWidth="140"
                                                    ShowAllEntry="false" OnClientChanged="ucClientCarrierDropDowns_ClientChanged"
                                                    OnCarrierChanged="ucClientCarrierDropDowns_CarrierChanged" OrientationOfDropDowns="Vertical"
                                                    ShowValidator="true" Enabled="false" />
                                            </div>
                                        </td>
                                    </asp:Panel>
                                    <td align="right">
                                        <div>
                                            <asp:Literal ID="m_litAccountNumber" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAccountNumberSign %>" />
                                            <span style="color: #ff0000">* </span>
                                        </div>
                                        <div style="margin-top: 30px">
                                            <asp:Literal ID="m_litLastName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelLastName %>" />
                                            <span style="color: #ff0000">* </span>
                                        </div>

                                    </td>
                                    <td>
                                        <div>
                                            <asp:TextBox ID="m_txtAccountNumber" runat="server" CssClass="subscriberSearchDetails-input" />
                                            <asp:RequiredFieldValidator ID="m_rfAccountNumber" runat="server" ControlToValidate="m_txtAccountNumber"
                                                Display="Dynamic" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageAccountNumberRequired %>"
                                                ToolTip="<%$ Resources: SubscriberManagement, ToolTipAccountNumberRequired %>"
                                                Text="<%$ Resources: Default, ValidatorText %>" />
                                        </div>
                                        <div style="margin-top: 14px">
                                            <asp:TextBox ID="m_txtLastName" runat="server" CssClass="subscriberSearchDetails-input" />
                                            <asp:RequiredFieldValidator ID="m_rfLastName" runat="server" ControlToValidate="m_txtLastName"
                                                Display="Dynamic" Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageLastNameRequired %>"
                                                ToolTip="<%$ Resources: SubscriberManagement, ToolTipLastNameRequired %>" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="select-sub-first-td-width">
                                        <asp:Literal ID="m_litFirstName" runat="server" Text="<%$ Resources: SubscriberManagement, LabelFirstName %>" />
                                    </td>
                                    <td class="select-sub-second-td-width">
                                        <asp:TextBox ID="m_txtFirstName" runat="server" CssClass="subscriberSearchDetails-input" />
                                    </td>
                                    <td align="right">
                                        <asp:Literal ID="m_litAddress1" runat="server" Text="<%$ Resources: AddressResources, Address1 %>" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="m_txtAddress1" runat="server" CssClass="subscriberSearchDetails-input" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litAddress2" runat="server" Text="<%$ Resources: AddressResources, Address2 %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:TextBox ID="m_txtAddress2" runat="server" CssClass="subscriberSearchDetails-input" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litCity" runat="server" Text="<%$ Resources: AddressResources, City %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:TextBox ID="m_txtCity" runat="server" CssClass="subscriberSearchDetails-input" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litCountry" runat="server" Text="<%$ Resources: AddressResources, Country %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:DropDownList ID="m_ddlCountry" runat="server" OnSelectedIndexChanged="m_ddlCountry_SelectedIndexChanged" AutoPostBack="true"
                                            CssClass="subscriberSearchDetails-select" />
                                        <asp:CustomValidator ID="m_cvCountry" runat="server" ControlToValidate="m_ddlCountry"
                                            Text="<%$ Resources: Default, ValidatorText %>" OnServerValidate="m_cvCountry_ServerValidate" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litZip" runat="server" Text="<%$ Resources: AddressResources, Zip %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:TextBox ID="m_txtZip" runat="server" CssClass="subscriberSearchDetails-input" />
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidatorZIP" runat="server" ControlToValidate="m_txtZip"
                                            ValidationExpression="<%$ Resources:AddressResources, ZipValidation %>" Text="<%$ Resources:Default, ValidatorText %>"
                                            Display="Dynamic" ErrorMessage="<%$ Resources:AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>"
                                            ToolTip="<%$ Resources:AddressResources,ErrorMessageZipCodeisInAnInvalidFormat %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litState" runat="server" Text="<%$ Resources: AddressResources, State  %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:DropDownList ID="m_ddlState" runat="server" CssClass="subscriberSearchDetails-select">
                                            <asp:ListItem Text="<%$ Resources: Default, HeaderListDropDownTextSelect %>"></asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:CustomValidator ID="m_cvState" runat="server" ControlToValidate="m_ddlState"
                                            Text="<%$ Resources: Default, ValidatorText %>" OnServerValidate="m_cvState_ServerValidate" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litHomePhone" runat="server" Text="<%$ Resources: SubscriberManagement, LabelHomePhoneColon %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc1:PhoneNumber ID="m_ucHomePhone" runat="server" Required="false" />
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litAltPhone" runat="server" Text="<%$ Resources: SubscriberManagement, LabelAltPhone %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc1:PhoneNumber ID="m_ucAltPhone" runat="server" Required="false" />
                                        <asp:Literal ID="m_litAltExt" runat="server" Text="<%$ Resources: SubscriberManagement, LabelExt %>" />
                                        <asp:TextBox ID="m_txtExt" runat="server" Width="40px" />&nbsp;
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litEmail" runat="server" Text="<%$ Resources: SubscriberManagement, LabelEmailColon %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:TextBox ID="m_txtEmail" runat="server" CssClass="subscriberSearchDetails-input" />
                                        <asp:RegularExpressionValidator ID="m_regExValEmail" runat="server" ControlToValidate="m_txtEmail"
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Text="<%$ Resources: Default, ValidatorText %>"
                                            Display="Dynamic" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageEmailInvalidFormat %>"
                                            ToolTip="<%$ Resources: SubscriberManagement, ToolTipEmailInvalidFormat %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litHotlinedOn" runat="server" Text="<%$ Resources: SubscriberManagement, HotlinedOnLabel %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc:HITSCalendar Enabled="false" ID="m_calHotlinedOn" runat="server" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litSubscriberSince" runat="server" Text="<%$ Resources: SubscriberManagement, LabelSubscriberSince %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc:HITSCalendar ID="m_calSubscriberSince" runat="server" Required="true" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litTerminationDate" runat="server" Text="<%$ Resources: SubscriberManagement, LabelTerminationDate %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc:HITSCalendar Enabled="false" ID="m_calTerminationDate" runat="server" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litCoveredSince" runat="server" Text="<%$ Resources: SubscriberManagement, CoveredSinceLabel %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc:HITSCalendar ID="m_calSubscriberCoveredSince" runat="server" Required="true" />
                                    </td>
                                </tr>
                                <tr style="display: none;">
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litTerminationReason" runat="server" Text="<%$ Resources: SubscriberManagement, TerminationReasonLabel %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:DropDownList ID="m_ddlTerminationReason" CssClass="subscriberSearchDetails-select" Enabled="false" runat="server" DataTextField="RefName"
                                            DataValueField="ID" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="Literal2" runat="server" Text="<%$ Resources: SubscriberManagement, CoverageEffectiveLabel %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc:HITSCalendar ID="m_CalCoverageEffectiveDate" runat="server" Required="false" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litAccountType" runat="server" Text="<%$ Resources: SubscriberManagement, AccountTypeLabel %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:DropDownList ID="m_ddlAccountType" runat="server" CssClass="subscriberSearchDetails-select" DataTextField="RefName" DataValueField="ID">
                                        </asp:DropDownList>
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="litCreateDate" runat="server" Text="<%$ Resources: SubscriberManagement, CreateDate %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:TextBox ID="m_txtCreateDate" runat="server" Enabled="False" CssClass="subscriberSearchDetails-input" />
                                    </td>
                                </tr>
                                  <tr>
                                    <td align="right">
                                        <asp:Literal ID="Literal17" runat="server" Text="<%$ Resources: ClaimsManagement, ClaimConversionCountLabel %>" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="m_txtClaimConversionCount" runat="server" Enabled="false" CssClass="subscriberSearchDetails-input"></asp:TextBox>
                                    </td>
                                    <td align="right">
                                        <asp:Literal ID="litTaxExempt" runat="server" Text="<%$ Resources: SubscriberManagement, LabelTaxExempt %>" />  
                                    </td>
                                    <td>
                                        <asp:CheckBox runat="server" ID="chkTaxExempt"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Literal ID="litOverrideSecurityAuthentication" runat="server" Text="<%$ Resources: SubscriberManagement, OverrideSecurityAuthenticationLabel %>" />                                           
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="chkOverrideSecurityAuthentication" runat="server" />
                                    </td>
                                    <td align="right">
                                        <asp:Literal ID="litTaxExemptCode" runat="server" Text="<%$ Resources: SubscriberManagement, LabelTaxExemptCode %>"/> 
                                    </td>
                                    <td>
                                        <asp:Label ID="lblTaxExemptCode" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <h2>
                    <asp:Literal ID="m_litHandsetInformation" runat="server" Text="<%$ Resources: HandsetManagement, LabelHandsetInformation %>" />
                </h2>
                <div class="greyblock">
                    <span style="color: #ff0000">* </span>
                    <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Default, LabelIndicatesRequiredField %>" />
                    <asp:UpdatePanel runat="server" ID="asp_UpdatePanel4436">
                        <%--<Triggers>
                            <asp:AsyncPostBackTrigger ControlID="m_ddlCarrier" EventName="SelectedIndexChanged" />
                        </Triggers>--%>
                        <ContentTemplate>
                            <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <div id="subscriberSearchDetails-lblSupplier" class="subscriberSearchDetails-lblSupplier">
                                            <asp:Literal ID="m_litSupplier" runat="server" Text="<%$ Resources: SubscriberManagement, SupplierLabel %>" />
                                        </div>
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:Literal ID="m_litSupplierName" runat="server" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal Visible="false" ID="m_litWarrantExpiresOn" runat="server" Text="<%$ Resources: SubscriberManagement, WarrantyExpiresLabel %>" />
                                    </td>
                                    <td nowrap="nowrap">
                                        <span style="color: #ff0000; font-size: xx-small;">
                                            <asp:Literal Visible="false" ID="m_litWarrantyExpiresOnDate" runat="server" />
                                        </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" class="select-sub-first-td-width" nowrap="nowrap">
                                        <asp:Literal ID="m_litMIN" runat="server" Text="<%$ Resources: SubscriberManagement, MINLabel %>" />
                                    </td>
                                    <td class="select-sub-second-td-hi-width" nowrap="nowrap">
                                        <uc1:PhoneNumber ID="uc_txtMIN" runat="server" Required="true" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <div id="subscriberSearchDetails-ESN" class="subscriberSearchDetails-ESN">
                                            <asp:Literal ID="m_litESN_IMEI" runat="server" Text="<%$ Resources: HandsetManagement, LabelESNIMEI %>" />
                                        </div>
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td nowrap="nowrap">
                                        <asp:Label ID="lblESNIMEI" runat="server" Text="<%$ Resources : Default,LabelLabel %>"></asp:Label>
                                        <asp:TextBox ID="m_txtESN_IMEI" runat="server" Width="200px" />
                                        <asp:Label ID="m_lblESN_IMEIHex" runat="server"></asp:Label>
                                        <asp:RequiredFieldValidator ID="m_rfESN_IMEI" runat="server" Display="Dynamic" ControlToValidate="m_txtESN_IMEI"
                                            Text="<%$ Resources:Default, ValidatorText %>" ErrorMessage="<%$ Resources: HandsetManagement, ErrorMessageESNIMEIIsRequired %>"
                                            ToolTip="<%$ Resources: HandsetManagement, ToolTipESNIMEIIsRequired %>" />
                                        <asp:CustomValidator ID="m_cvESN_IMEI" runat="server" ControlToValidate="m_txtESN_IMEI"
                                            EnableClientScript="true" ErrorMessage="<%$ Resources: SubscriberManagement, ErrorMessageNotValidESNIMEI %>"
                                            OnServerValidate="m_cvESN_IMEI_ServerValidate" ToolTip="<%$ Resources: SubscriberManagement, ToolTipESNIMEIMustBeValidLength %>"
                                            Text="<%$ Resources:Default, ValidatorText %>" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litMDN" runat="server" Text="<%$ Resources: HandsetManagement, LabelMDNColon %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td nowrap="nowrap">
                                        <uc1:PhoneNumber ID="m_ucMDN1" runat="server" Required="true" />
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litTechType" runat="server" Text="<%$ Resources: SubscriberManagement, LabelTechnologyTypeColon %>" />
                                    </td>
                                    <td valign="top" nowrap="nowrap">
                                        <div style="padding-top: 10px;">
                                            <asp:Label ID="lblTechType" runat="server"></asp:Label>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litModelName" runat="server" Text="<%$ Resources: ModelManagement, LabelModelNameColon %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td valign="top" nowrap="nowrap">
                                        <asp:Label ID="lblModelName" runat="server" />
                                        <asp:DropDownList ID="ddlModelName" runat="server" AutoPostBack="true" CssClass="subscriberSearchDetails-select">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;
                                    </td>
                                    <td>&nbsp;
                                    </td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="m_litBornOnDate" runat="server" Text="<%$ Resources: SubscriberManagement, BornOnDateLabel %>" />
                                        <span style="color: #ff0000">* </span>
                                    </td>
                                    <td valign="top" nowrap="nowrap">
                                        <div style="padding-top: 5px;">
                                            <asp:Label ID="lblBornOnDate" runat="server"></asp:Label>
                                            <uc:HITSCalendar ID="m_calBornOnDate" runat="server" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                    <td>&nbsp;</td>
                                    <td align="right" nowrap="nowrap">
                                        <asp:Literal ID="litDeactivateHandset" runat="server" Text="<%$ Resources: SubscriberManagement, DeactivateHandsetLabel %>" />&nbsp;
                                    </td>
                                    <td align="left">
                                        <asp:CheckBox ID="chkDeactivateHandset" runat="server" Checked="false" />
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <h2>
                    <asp:Literal ID="m_litRatePlans" runat="server" Text="<%$ Resources: SubscriberManagement, ServicePlansLabel %>" />
                </h2>
                <div id="divRatePlanFeatureSearchDiv" class="greyblock" style="background-color: #DBDCDE">
                    <table style="width: 100%">
                        <tr>
                            <td>
                                <esecuritelhitscontrols:rateplanselectiongrid runat="server" id="m_ucRatePlans"></esecuritelhitscontrols:rateplanselectiongrid>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: center">
                                <!-- Wrap this with Task results -->
                                <asp:Button runat="server" ID="m_btnChangeRatePlan" OnClick="m_btnChangeRatePlan_Click"
                                    CssClass="pagebutton" Text="<%$ Resources: SubscriberManagement, SelectNewRatePlan %>" />
                            </td>
                        </tr>
                    </table>
                    <!-- Code to support the Service Plan Lookup Popup -->
                    <asp:Panel runat="server" ID="pnlServicPlanSelectionDlg" CssClass="modalContent"
                        Style="display: none; width: 800px; height: 300px;">
                        <asp:Panel ID="pnlServicePlanSelectionHeader" runat="server" EnableViewState="false"
                            CssClass="modalHeader">
                            <asp:Label ID="lblHeaderText" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, SelectNewRatePlan %>" />
                        </asp:Panel>
                        <asp:Panel ID="pnlServicePlanSelectionBody" runat="server" CssClass="modalContent"
                            Style="text-align: left;">
                            <esecuritelhitscontrols:newrateplanselectiongrid runat="server" id="m_ucSelectNewRatePlan">
                            </esecuritelhitscontrols:newrateplanselectiongrid>
                        </asp:Panel>
                        <asp:Button runat="server" ID="btnCancelNewRatePlan" OnClick="btnCancelNewRatePlan_Click"
                            CausesValidation="false" Text="<%$ Resources: Default, ButtonCancel %>" />
                    </asp:Panel>
                    <esecuritelhitscontrols:hitsmodalpopupextender id="mdlServicePlanSelectionPopupDialog" runat="server"
                        targetcontrolid="dummyHiddenField" popupcontrolid="pnlServicPlanSelectionDlg"
                        backgroundcssclass="modalBackground" cancelcontrolid="dummyHiddenField"
                        behaviorid="mdlServicePlanSelectionPopupDialog">
                    </esecuritelhitscontrols:hitsmodalpopupextender>
                    <asp:HiddenField runat="server" ID="dummyHiddenField" />
                    <!-- End of the road for the ServicePlan stuff. -->
                </div>
                
                
                <h2>
                    <asp:Literal ID="m_litLocaleInformation" runat="server" Text="<%$ Resources: HandsetManagement, LabelLocaleInformation %>" />
                </h2>
                <div class="greyblock">
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                        <tr>
                            <td align="right" style="width: 15%" nowrap="nowrap">
                                <asp:Literal ID="m_litSubscriberLocale" runat="server" Text="<%$ Resources: SubscriberManagement, SubscriberLocale %>" />
                            </td>
                            <td style="width: 37%" nowrap="nowrap">
                                <asp:Label ID="lblLocale" runat="server" />
                                <asp:DropDownList ID="ddlLocale" runat="server" CssClass="subscriberSearchDetails-select" />
                            </td>
                            <td>&nbsp;
                            </td>
                            <td>&nbsp;
                            </td>
                        </tr>
                    </table>
                </div>
                <asp:Panel ID="m_pnlAdditionalCoveredHandsets" runat="server">
                    <h2>
                        <asp:Literal ID="m_litAdditionalCoveredHandsets" runat="server" Text="<%$ Resources: HandsetManagement, LabelAdditionalCoveredHandsets %>" />
                    </h2>
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable" width="100%">
                        <tr>
                            <td>
                                <asp:GridView ID="m_grdViewAdditionalCoveredHandsets" runat="server" AutoGenerateColumns="False"
                                    OnRowDataBound="m_grdViewAdditionalCoveredHandsets_RowDataBound" Width="100%">
                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$ Resources: HandsetManagement, LabelMDN %>">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="m_lbMDN" runat="server" OnClick="m_lbMDN_Clicked" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: HandsetManagement, HeaderTextESNIMEI %>">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="m_lbESN_IMEI" runat="server" OnClick="m_lbESN_IMEI_Clicked" />
                                                <br></br>
                                                <asp:Label ID="m_lblESN_IMEI" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: HandsetManagement, HeaderTextHandset %>">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="m_lbHandset" runat="server" OnClick="m_lbHandset_Clicked" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, CoveredSinceHeaderText %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblCoveredSince" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: Default, LossesHeaderText %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblLosses" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, HotlinedHeaderText %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblHotlined" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: SubscriberManagement, TermDateHeaderText %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblTermDate" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField Visible="false" HeaderText="<%$ Resources: SubscriberManagement, WarrantyExpiresOnHeaderText %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblWarrantyExpiresOn" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <%--<uc:NotesControl ID="m_ucNotesControl" AddButton="true" runat="server" ></uc:NotesControl>--%>
                <esecuritelhitscontrols:notehistorywithpaging onnotepaging="m_ucNotesControl_OnNotesPaging" runat="server" id="m_ucNotesControl" showdeletenote="true"
                    shownewnoteentry="true" enableviewstate="true"></esecuritelhitscontrols:notehistorywithpaging>
                <div style="padding-left: 480px">
                    <asp:Button ID="m_btnUpdate" runat="server" Text="<%$ Resources: Default, ButtonUpdate %>"
                        OnClick="m_btnUpdate_Clicked" CssClass="pagebutton" />
                    <asp:Button ID="m_btnCancel" runat="server" Text="<%$ Resources: Default, ButtonCancel %>"
                        OnClick="m_btnCancel_Clicked" CssClass="pagebutton" CausesValidation="False" />
                </div>
                <asp:Panel ID="m_pnlLossAffidavit" runat="server">
                    <uc2:ClaimHistory ID="ClaimHistory1" runat="server" />
                    <br />
                </asp:Panel>
                <asp:Panel ID="m_pnlHistoryOfHandset" runat="server">

                    <asp:UpdatePanel ID="UpdatePanel7" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>

                            <div style="float: left;">
                                <asp:Button runat="server" ID="btnArchivedHandsetHistory"
                                    CssClass="ArchivedHandsetHistoryButtonCustomerCentral"
                                    Visible="True"
                                    UseSubmitBehavior="false"
                                    CausesValidation="False"
                                    OnClick="btnArchivedHandsetHistory_Click"
                                    Text="<%$ Resources: HandsetManagement, ArchivedHistoryOfHandsetsLabel_C %>" />
                            </div>

                            <div nowrap style="clear: both;">
                                &nbsp;
                            </div>

                            <uc:ArchivedHandsetHistory ID="m_ucArchivedHandsetHistory" runat="server" />

                        </ContentTemplate>
                    </asp:UpdatePanel>

                    <h2>
                        <asp:Literal ID="m_litHistoryOfHandset" runat="server" Text="<%$ Resources: HandsetManagement, LabelHandsetHistory %>" />
                    </h2>
                    <table width="100%">
                        <tr>
                            <td>
                                <asp:GridView ID="m_grdViewHistoryOfHandsets" runat="server" AutoGenerateColumns="False"
                                    Width="100%" OnRowDataBound="m_grdViewHistoryOfHandsets_RowDataBound">
                                    <Columns>
                                        <asp:TemplateField HeaderText="<%$ Resources: ModelManagement, HeaderTextModel %>">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="m_lbModel" runat="server" OnClick="m_lbModel_Clicked" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: HandsetManagement, HeaderTextESNIMEI %>">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="m_lbESN_IMEI" runat="server" OnClick="m_lbESN_IMEI_Clicked" />
                                                <br></br>
                                                <asp:Label ID="m_lblESN_IMEI" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: Default, HeaderTextFrom %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblFrom" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: Default, HeaderTextTo %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblTo" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: Default, DispositionHeaderText %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblDisposition" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="<%$ Resources: Default, HeaderTextLocation %>">
                                            <ItemTemplate>
                                                <asp:Label ID="m_lblLocation" runat="server" />
                                                <asp:LinkButton ID="m_lbLocation" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:Panel ID="m_pnlCallSummary" runat="server">
                    <uc2:CallSummary ID="m_ucCallSummary1" runat="server" />
                    <br />
                </asp:Panel>
                <uc:ESNPopupWindow ID="ucESNValidator" runat="server" OnYesPressed="ucESNValidator_YesPressed"
                    OnNoPressed="ucESNValidator_NoPressed" />
                <cc1:ExtendedValidationSummary ID="m_extValidationSummaryBottom" runat="server" HeaderText="<%$ Resources: SubscriberManagement, HeaderTextFollowingItemsUpdating %>" />
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
        <ajaxToolkit:TabPanel ID="tabPanelEscalationSummary" runat="server" HeaderText="<%$ Resources: EscalationManagement, HeaderTextEscalationSummary %>">
            <ContentTemplate>
                <h2>
                    <asp:Literal runat="server" ID="asp_Literal9389" Text="<%$ Resources: EscalationManagement, EscalationSummaryLabel %>" />
                </h2>
                <div class="greyblock">
                    <table border="0" cellpadding="0" cellspacing="0" class="gvTable">
                        <tr>
                            <td>
                                <esecuritelhitscontrols:escalationsummarycontrol runat="server" id="m_ucEscalationSummary">
                                </esecuritelhitscontrols:escalationsummarycontrol>
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </ajaxToolkit:TabPanel>
    </ajaxToolkit:TabContainer>

    <asp:Panel ID="pnlNoteArchive" runat="server" Style="display: none; width: 999px;">
        <asp:Panel ID="pnlNoteArchiveHeader" runat="server" EnableViewState="false" CssClass="modalHeader">
            <table cellpadding="0" cellspacing="0" width="99%; margin: 0px;">
                <tr>
                    <td align="center" style="margin: 0px; padding: 2px;">
                        <asp:Label ID="Label3" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, NotesHeaderText %>" />
                    </td>
                    <td align="right" style="margin: 0px; padding: 2px;">
                        <asp:ImageButton ID="imgArchiveNote" runat="server" CssClass="modalClose" Height="18px"
                            ImageUrl="~/images/closeButton.png" ToolTip="<%$ Resources: Default, ToolTipClose %>" Width="18px" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="pnlNoteArchiveBody" runat="server" CssClass="modalContent" Style="text-align: left; margin: auto;">
            <table style="width: 100%;">
                <tr>
                    <td>

                        <div id="divNotes" runat="server" style="width: 100%; height: 375px; overflow: scroll;">
                            <uc:NoteHistory ID="ucNoteArchive" runat="server" />
                        </div>

                    </td>

                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>

   

    <asp:Button runat="server" ID="hiddenTargetControlForModalPopup_New"
        Style="display: none" />
    <esecuritelhitscontrols:hitsmodalpopupextender runat="server" id="HITSModalPopupExtender2" targetcontrolid="hiddenTargetControlForModalPopup_New"
        popupcontrolid="pnlNoteArchive" backgroundcssclass="modalBackground"
        popupdraghandlecontrolid="pnlNoteArchiveHeader" behaviorid="CloseSearch2" cancelcontrolid="imgArchiveNote" />
    
    <!-- Code to support the Address Lookup Popup -->
    <asp:Panel runat="server" ID="pnlAddressLookupDialogPopup" CssClass=""
        Style="display: none; width: 800px; height: 400px;">
        <asp:Panel ID="pnlMatchingAddressHeader" runat="server" EnableViewState="false" CssClass="modalHeader">
            <asp:Label ID="Label2" runat="server" EnableViewState="false" Text="<%$ Resources: AddressResources, SelectAppropriateSubscriberAddress %>" />
        </asp:Panel>
        <asp:Panel ID="pnlMatchingAddressBody" runat="server" CssClass="modalContent" Style="text-align: left;">
            <uc:ucAddressLookupDlg ID="aldMatch" runat="server" />
        </asp:Panel>
    </asp:Panel>
    <eSecuritelHITSControls:hitsmodalpopupextender id="mdlAddressValidationLookupPopup" runat="server" targetcontrolid="btnOnlyHereToSatisfyTargetControlIDForPopup"
        popupcontrolid="pnlAddressLookupDialogPopup" backgroundcssclass="modalBackground"
        cancelcontrolid="btnOnlyHereToSatisfyTargetControlIDForPopup2" behaviorid="mdlAddressValidationLookupPopup">
    </eSecuritelHITSControls:hitsmodalpopupextender>
    <span style="display: none">
        <asp:Button runat="server" ID="btnOnlyHereToSatisfyTargetControlIDForPopup2" Text="If you see me, there is an error." /><br />
        <asp:Button runat="server" ID="btnOnlyHereToSatisfyTargetControlIDForPopup" Text="If you see me, there is an error." /><br />
    </span>
    <!-- End of the road for the address Lookup Popup. -->
   

    <script type="text/javascript">
        Sys.Application.add_load(setStyle);
        function setStyle() {
            $('[id$=_ucClientCarrierDropDowns_ClientCarrierDropDownsTable]').attr('style', 'margin-right: auto');
            $('[id$=_m_ucHomePhone_m_txtPhoneNumber]').attr('style', 'width: 200px');
            $('[id$=_m_ucAltPhone_m_txtPhoneNumber]').attr('style', 'width: 122px');
            $('[id$=_m_calHotlinedOn_m_txtDate]').attr('style', 'width: 200px');
            $('[id$=_m_calSubscriberSince_m_txtDate]').attr('style', 'width: 200px');
            $('[id$=_m_calTerminationDate_m_txtDate]').attr('style', 'width: 200px');
            $('[id$=_m_calSubscriberCoveredSince_m_txtDate]').attr('style', 'width: 200px');
            $('[id$=_m_CalCoverageEffectiveDate_m_txtDate]').attr('style', 'width: 200px');
            $('[id$=_uc_txtMIN_m_txtPhoneNumber]').attr('style', 'width: 200px');
            $('[id$=_m_ucMDN1_m_txtPhoneNumber]').attr('style', 'width: 200px');
            $('[id$=_m_calBornOnDate_m_txtDate]').attr('style', 'width: 200px');
            if (navigator.appName == 'Microsoft Internet Explorer') {
                var ua = navigator.userAgent;
                var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
                if (re.exec(ua) != null)
                    var rv = parseFloat(RegExp.$1);
                if (rv == 7.0)
                    $('[id$=_m_ucAltPhone_m_txtPhoneNumber]').attr('style', 'width: 118px');
                else if (rv == 8.0) {
                    $('#client-dd-subscriberSearchDetails').attr('style', 'margin-left: 111px;');
                    $('#subscriberSearchDetails-lblSupplier').attr('style', 'width: 216px');
                    $('#subscriberSearchDetails-ESN').attr('style', 'width: 141px');
                    $('.select-sub-second-td-hi-width').attr('style', 'width: 249px');
                } else if (rv > 8.0) {
                    $('#client-dd-subscriberSearchDetails').attr('style', 'margin-left: 112px;');
                    $('#subscriberSearchDetails-lblSupplier').attr('style', 'width: 210px');
                    $('#subscriberSearchDetails-ESN').attr('style', 'width: 139px');
                    $('.select-sub-second-td-hi-width').attr('style', 'width: 240px');
                }
                if (document.documentMode == 7) {
                    $('#client-dd-subscriberSearchDetails').attr('style', 'margin-left: 102px;');
                }
            } else if (navigator.appName == 'Netscape') {
                var usAg = navigator.userAgent;
                var reg = new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})");
                if (reg.exec(usAg) != null) {
                    var rvt = parseFloat(RegExp.$1);
                    if (rvt == 11.0 || rvt > 11.0) {
                        $('#client-dd-subscriberSearchDetails').attr('style', 'margin-left: 112px;');
                        $('#client-dd-subscriberSearchDetails').attr('style', 'margin-left: 112px;');
                        $('#subscriberSearchDetails-lblSupplier').attr('style', 'width: 210px');
                        $('#subscriberSearchDetails-ESN').attr('style', 'width: 139px');
                        $('.select-sub-second-td-hi-width').attr('style', 'width: 240px');
                    }
                    if (document.documentMode == 7) {
                        $('#client-dd-subscriberSearchDetails').attr('style', 'margin-left: 102px;');
                    }
                }
            }
        }
    </script>
    


</asp:Content>

