<%@ Page Language="C#" MasterPageFile="~/masterpages/eFulfillmentWizard.master" MaintainScrollPositionOnPostback="true"
    AutoEventWireup="True" Inherits="site_HITS_Claims_Wizard_Fulfillment_Confirmation"
    Title="Fulfillment Wizard - Step 3" Theme="eMain" Culture="auto" UICulture="auto"
    CodeBehind="Confirmation.aspx.cs" %>

<%@ Register Src="~/Controls/PopupWindowYesNo.ascx" TagName="PopupWindowYesNo" TagPrefix="uc" %>
<%@ Register Src="~/Controls/PopupWindow.ascx" TagName="PopupWindow" TagPrefix="uc" %>
<%@ Register Src="~/Controls/Claims/ReturnAuthorization.ascx" TagName="ReturnAuthorization"
    TagPrefix="uc" %>
<%@ Register Src="~/Controls/GridViews/NoteHistory.ascx" TagPrefix="uc" TagName="NoteHistory" %>
<%@ Register Src="~/Controls/Claims/ClaimDetailsHandsetGrid.ascx" TagName="ClaimDetailsHandsetGrid"
    TagPrefix="uc1" %>
<%@ Register TagPrefix="eSecuritelHITSControls" Namespace="WebSite.Controls" Assembly="WebSite" %>
<%@ Register Src="~/Controls/Claims/HandsetAccessoryInventoryCheck_InStore.ascx" TagPrefix="uc" TagName="HandsetAccessoryInventoryCheck_InStore" %>
<%@ Register Src="~/Controls/Claims/TierJumpingDialog.ascx" TagPrefix="uc" TagName="TierJumpingDialog" %>

<asp:Content ID="Content1" ContentPlaceHolderID="eContent" runat="Server">
    
    <!--[if gt IE 7]><!-->
    <script type="text/javascript" src="../../../../../script/chosen.jquery.js"></script>
    <!--<![endif]-->
    <!--[if IE 7]>
        <link href="../../../../../style/jquery-ui.css" rel="stylesheet" />
        <script type="text/javascript">isIE7 = true;</script>
        <script type="text/javascript" src="../../../../../script/jquery-ui-Combobox-IE7.js"></script>
    <![endif]-->
    <link href="../../../../../style/chosen.css" rel="stylesheet" />
    <script language="javascript" type="text/javascript">

        function ReplacementOptionSelectionButton(btnChooseFulfillmentOption, pnlCLMAccessoryProcessingImageId)
        {
            document.getElementById(btnChooseFulfillmentOption).disabled = true;
            document.getElementById(pnlCLMAccessoryProcessingImageId).style.visibility = "visible";
        }

        function ReplacementValidation(btnDoneId, ddlReturnModelId, ddlReplacementModelId, txtReturnESNId, txtReplacementESNId, moreString, isLS, ddlTriageDetailId, txtReturnedNotesId)
        {
            // JSK:  Rewriting this function to make it clearer.  This function is to check the controls and
            // either turn the done button on or off depending on the state of the controls.
            //debugger;
            // Get our objects if we can.
            var btnDone = document.getElementById(btnDoneId);

            var ddlTriageDetail = document.getElementById(ddlTriageDetailId);
            var txtReturnedNotes = document.getElementById(txtReturnedNotesId);

            // Assume we are disabled until otherwise notified.  This will be accomplished by passing all of the tests.
            // if we get to the end of the routine, we can enable the button.  If just one thing is out of whack, we return .
            btnDone.disabled = true;
            //gray out DONE button 
            btnDone.style.background = "#DDDDDD";
            // Check our fields for Cricket and Triage.
            if (ddlTriageDetail != null)
            {
                var ddlTriageDetailText = ddlTriageDetail.options[ddlTriageDetail.selectedIndex].text;
                if (ddlTriageDetailText.trim() == '<Select>' || txtReturnedNotes.value.trim() == '')
                    return;
            }

            var ddlReplacement = document.getElementById(ddlReplacementModelId);
            var txtReplacementESN = document.getElementById(txtReplacementESNId);
            var ddlReplacementText;

            if (ddlReplacement != null)
            {
                if (ddlReplacement.selectedIndex != -1)
                    ddlReplacementText = ddlReplacement.options[ddlReplacement.selectedIndex].text;

                // Check our replacement fields contents
                if (ddlReplacementText == null || ddlReplacementText.trim() == '[None]' || ddlReplacementText.trim() == moreString || txtReplacementESN.value.trim() == '')
                    return;
            }

            // if not Lost or stolen claim
            if (!isLS)
            {
                // If it is not lost or stolen, then we can check the return fields.
                var ddlReturn = document.getElementById(ddlReturnModelId);
                var txtReturnESN = document.getElementById(txtReturnESNId);
                var ddlReturnText;

                if (ddlReturn != null)
                {
                    if (ddlReturn.selectedIndex != -1)
                        ddlReturnText = ddlReturn.options[ddlReturn.selectedIndex].text;

                    if (ddlReturnText == null || ddlReturnText == '[None]' || ddlReturnText.trim() == moreString || txtReturnESN.value.trim() == '')
                        return;
                }
            }
            // All checks are passed.  We can enable the button.
            btnDone.disabled = false;
            btnDone.style.background = "";
        }
        
        function doClick(buttonName, e) {
            //the purpose of this function is to allow the enter key to 
            //point to the correct button to click.
            var key;

            if (window.event)
                key = window.event.keyCode;     //IE
            else
                key = e.which;     //firefox

            if (key == 13) {
                //Get the button the user wants to have clicked
                var btn = document.getElementById(buttonName);
                if (btn != null) { //If we find the button click it
                    btn.click();
                    event.keyCode = 0;
                }
            }
        }
    </script>
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <uc:PopupWindowYesNo ID="ucPopupWindowYesNo" runat="server" OnYesClicked="ucPopupWindowYesNo_YesClicked" OnNoClicked="ucPopupWindowYesNo_NoClicked" />
    <uc:PopupWindow ID="ucPopupWindow" runat="server" OnClicked="ucPopupWindow_Clicked" />
    <uc:PopupWindow ID="ucPopupRefundWindow" runat="server" OnOkPressed="ucPopupRefundWindow_Clicked" />
    <uc:PopupWindow ID="ucPopupInventoryCheck" runat="server" OnOkPressed="ucPopupInventoryCheck_Clicked" />
    <uc:ReturnAuthorization ID="ucRA" runat="server"></uc:ReturnAuthorization>
    <div style="text-align: center">
        <asp:Label ID="lbl_FlowInfo" runat="server" Style="color: green; font-size: medium;
            font-weight: bold"></asp:Label>
    </div>
    <div class="claimsWizardFormAction">
        <center>
            <span style="margin-right: 10px;">
                <asp:Button ID="m_btnDone" runat="server" OnClick="m_btnDone_Clicked" />
            </span><span style="margin-right: 10px;">
                <asp:Button ID="m_btnDone2" runat="server" Visible="false" Text="<%$ Resources : FulfillmentManagement, TextBtnDone%>"
                    OnClick="m_btnDone2_Click" />
            </span><span style="margin-right: 10px;">
                <input id="m_btnEscalation" type="button" runat="server" value="<%$ Resources : FulfillmentManagement, TextBtnEscalation%>"
                    visible="false" />
            </span><span style="margin-right: 10px;">
                <input id="m_btnPrint" type="button" runat="server" value=" <%$ Resources : FulfillmentManagement, TextBtnPrint %> "
                    visible="true" onclick="window.print(); return false;" />
            </span><span style="margin-right: 10px;">
                <asp:Button ID="ReceiptButton" runat="server" Visible="false" Text="<%$ Resources : Default, ButtonReceipt %>"
                    OnClientClick="window.open('Receipt.aspx', '_blank','', false);" />
            </span><span style="margin-right: 10px;">
                <asp:Button ID="m_btnSupervisorOverride" runat="server" Text="<%$ Resources : FulfillmentManagement, TextBtnSupervisor %>"
                    OnClick="m_btnSupervisorOverride_Click" Visible="false" CausesValidation="false" />
            </span><span style="margin-right: 20px;">
                <asp:Button ID="m_btnCancel" runat="server" Text="<%$ Resources : Default,ButtonCancel %>"
                    OnClick="m_btnCancel_Click" Visible="false" CausesValidation="false" />
            </span><span style="margin-right: 20px;">
                <asp:Button ID="m_btnPrintRMALabel" runat="server" Text="<%$ Resources : Default,ButtonRMALabel %>"
                    OnClick="m_btnPrintRMALabel_Click" target="_blank" Visible="false" />
            </span>
        </center>
    </div>
    <asp:Panel ID="m_pnlAdvancedExchangeClaim" runat="server" Visible="false">
        <div class="greyblock" style="font-size: 18px; white-space: nowrap;">
            <table width="100%">
                <tr>
                    <td>
                        <b>
                            <asp:Label ID="m_lblClaimStatusID" runat="server" Text="<%$ Resources : FulfillmentManagement,LabelClaimStatus %>" /></b>
                        <asp:Label ID="m_lblClaimStatus" runat="server" />
                        <asp:Label ID="m_lblClaimID" runat="server" Text="<%$ Resources : FulfillmentManagement,LabelClaimID %>" />
                    </td>
                    <td align="right">
                        <b>
                            <asp:Localize ID="m_lblPaymentNumber" runat="server" Text="<%$ Resources : FulfillmentManagement, PaymentAuthorizationNumber %>" /></b>
                        <asp:Label ID="m_lblAuthorizationNumber" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <asp:Panel ID="m_pnlInvoice" runat="server" Visible="false">
        <div class="greyblock" style="font-size: 18px; white-space: nowrap;">
            <table width="100%">
                <tr>
                    <td>
                        <div style="display: inline-block">
                            <div style="margin-bottom: 5px; font-size: 18px; padding-right: 20px; display: inline">
                                <b>
                                    <asp:Label ID="m_lblInvoiceClaimID" runat="server" Text="<%$ Resources : FulfillmentManagement,LabelClaimID %>" />
                                </b>
                            </div>
                            <div style="margin-bottom: 5px; font-size: 18px; display: inline">
                                <b>
                                    <asp:Literal ID="Literal2" runat="server" />
                                    <asp:Label ID="InvoiceAmountLabel" runat="server" Text="<%$ Resources : FulfillmentManagement,LabelInvoiceAmountColon %>" />
                                </b>
                            </div>
                        </div>
                    </td>
                    <td align="right">
                        <b>
                            <asp:Localize ID="m_lblInvoice" runat="server" Text="<%$ Resources : FulfillmentManagement, PayPalInvoiceNumber %>" /></b>
                        <asp:Label ID="m_lblInvoiceNumber" runat="server" />
                    </td>
                </tr>
            </table>
        </div>
    </asp:Panel>
    <asp:Panel ID="m_pnlReplacementClaim" runat="server" Visible="false">
        <br />
        <h2>
            <asp:Label ID="Label5" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelReplacementHandsetInfo %>" /></h2>
        
                <asp:Button runat="server" id="btnChooseFulfillmentOption" Style="width: 150px;" 
                Visible="False"
                UseSubmitBehavior="false" 
                OnClick="btnChooseFulfillmentOption_Click" 
                Text="<%$ Resources: FulfillmentManagement, LabelChooseFulfillmentOption %>" CausesValidation="False"/>
            
                <asp:Panel ID="pnlCLMAccessoryProcessingImage" runat="server" HorizontalAlign="Left">
                    <asp:Image ID="imgCLMAccessoryProcessing" runat="server" ImageUrl="~/images/ajax-loader.gif" />
                    <asp:Label ID="lblCLMAccessoryProcessing" runat="server" Text="<%$ Resources : FulfillmentManagement, ClmAccessoryGridProcessingMessage %>"></asp:Label>
                </asp:Panel>

                <uc:HandsetAccessoryInventoryCheck_InStore runat="server" ID="ucHAInventoryCheck_InStore"/>

            <table>

                <asp:Panel runat="server" ID="ReplacementModelInfoPanel">
                    <tr>
                        <h1></h1><asp:Label ID="lblMessageForSubToReceiveNewReplacementsOnly" runat="server" Text="" Visible="false" ></asp:Label></h1>
                        <br/>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label2" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelReplacementModel %>" />
                            <span style="color: #ff0000">
                                <asp:Literal ID="ReplacementModelAsteriskLiteral" Text="*" runat="server" />
                            </span>
                        </td>
                        <td>
                            <asp:DropDownList ID="m_ddlReplacementHandsetModels" runat="server" AutoPostBack="True" 
                                OnSelectedIndexChanged="m_ddlReplacementHandsetModels_SelectedIndexChanged" data-placeholder="Choose a Replacement..." CssClass="chosen-select" />
                            <asp:CustomValidator ID="m_cvReplacementHandsetModels" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                                ControlToValidate="m_ddlReplacementHandsetModels" ErrorMessage="<%$ Resources : FulfillmentManagement, TooltipReplacementModel %>"
                                ToolTip="<%$ Resources : FulfillmentManagement, TooltipReplacementModel %>" OnServerValidate="m_cvReplacementHandsetModels_ServerValidate" />
                        </td>
                        <td align="right">
                            <asp:Label ID="ReplacementESNLabel" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelReplacementESN %>" />
                            <span style="color: #ff0000">
                                <asp:Literal ID="ReplacementESNAsteriskLiteral" Text="*" runat="server" />
                            </span>
                        </td>
                        <td>
                            <asp:TextBox ID="m_txtReplacementESN" runat="server" />
                            <asp:RequiredFieldValidator ID="m_rfvReplaceESN" runat="server" ControlToValidate="m_txtReplacementESN"
                                ErrorMessage="<%$ Resources : FulfillmentManagement, ToolTipReplacementESN %>"
                                ToolTip="<%$ Resources : FulfillmentManagement, ToolTipReplacementESN %>" Text="<%$ Resources:Default, ValidatorText %>" />
                            <asp:RegularExpressionValidator ID="revReplaceESN" runat="server" ValidationExpression="^[a-zA-Z\d]{8}$|^[a-zA-Z\d]{11}$|^[a-zA-Z\d]{14}$|^[a-zA-Z\d]{15}$|^[a-zA-Z\d]{18}$"
                                ControlToValidate="m_txtReplacementESN" Display="Dynamic" ErrorMessage="<%$ Resources : FulfillmentManagement, TooltipEsnLength %>"
                                ToolTip="<%$ Resources : FulfillmentManagement, TooltipEsnLength %>" />
                        </td>
                    </tr>
                </asp:Panel>
                <asp:Panel ID="m_pnlProcessingFeeReplacement" runat="server">
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label45" runat="server" Text="<%$ Resources : FulfillmentManagement, Label45Processing%>" />
                        </td>
                        <td>
                            <asp:Label ID="m_lblProcessingFeeReplacement" runat="server" />
                        </td>
                    </tr>
                </asp:Panel>

            </table>
            
        <br />
   <script type="text/javascript">
    var config = {
      '.chosen-select'           : {},
      '.chosen-select-deselect'  : {allow_single_deselect:true},
      '.chosen-select-no-single' : {disable_search_threshold:10},
      '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
      '.chosen-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
      $(selector).chosen(config[selector]);
    }
  </script>
        <asp:Panel ID="m_pnlReplacementOption" runat="server" Visible="False">
             <asp:Label ID="lblReplacementOption" runat="server" Text="" Visible="True" ></asp:Label>
        </asp:Panel>

        <br />

        <asp:Panel ID="m_pnlReturnedHandsetAndESN" runat="server">
            <h2>
                <asp:Label ID="Label4" runat="server" Text="Returned Handset Information" /></h2>
            <table>
                <tr>
                    <td align="right">
                        <asp:Label ID="ReturnedModelLabel" runat="server" Text="Returned Model" />
                        <span style="color: #ff0000">
                            <asp:Literal ID="ReturnedModelAsteriskLiteral" Text="*" runat="server" /></span>
                    </td>
                    <td>
                        <asp:DropDownList ID="m_ddlReturnedHandsetModels" runat="server" />
                        <asp:CustomValidator ID="m_cvReturnedHandsetModels" runat="server" Text="<%$ Resources:Default, ValidatorText %>"
                            ControlToValidate="m_ddlReturnedHandsetModels" ErrorMessage="<%$ Resources : FulfillmentManagement, TooltipReturnedModel %>"
                            ToolTip="<%$ Resources : FulfillmentManagement, TooltipReturnedModel %>" OnServerValidate="m_cvReturnedHandsetModels_ServerValidate" />
                    </td>
                    <td align="right">
                        <asp:Label ID="ReturnedESNLabel" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelReturnedESN %>" />
                        <span style="color: #ff0000">
                            <asp:Literal ID="ReturnedESNAsteriskLiteral" Text="*" runat="server" /></span>
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtReturnedESN" runat="server" />
                        <asp:RequiredFieldValidator ID="m_rfvReturnedESN" runat="server" ControlToValidate="m_txtReturnedESN"
                            ToolTip="<%$ Resources : FulfillmentManagement, TooltipReturnedEsn %>" ErrorMessage="<%$ Resources : FulfillmentManagement, TooltipReturnedEsn %>"
                            Text="<%$ Resources:Default, ValidatorText %>" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="Label42" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelCollectedBy %>" />
                        <span style="color: #ff0000">* </span>
                    </td>
                    <td>
                        <asp:Label ID="m_lblCollectedBy" runat="server" />
                    </td>
                    <td align="right">
                        <asp:Label ID="Label43" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelFulfillmentLocation %>" />
                    </td>
                    <td>
                        <asp:Label ID="m_lblFulfillmentLocation" runat="server" />
                    </td>
                </tr>
                <asp:Panel runat="server" ID="pnlTriageInformation">
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblTriageProblem" runat="server" Text="<%$ Resources : LogisticsManagement, LabelTriageProblem %>" />
                            <span style="color: #ff0000">* </span>
                        </td>
                        <td>
                            <asp:DropDownList ID="m_ddlTriageProblem" runat="server" AutoPostBack="True" OnSelectedIndexChanged="m_ddlTriageProblem_SelectedIndexChanged" />
                        </td>
                        <td align="right">
                            <asp:Label ID="lblTriageDetail" runat="server" Text="<%$ Resources : LogisticsManagement, LabelTriageDetail %>" />
                            <span style="color: #ff0000">* </span>
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="m_ddlTriageDetail" runat="server" Width="250px" />
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="m_ddlTriageProblem" EventName="SelectedIndexChanged" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblReturnedNotes" runat="server" Text="<%$ Resources : LogisticsManagement, LabelReturnedNotes %>" /><span style="color: #ff0000">*
                            </span>
                        </td>
                        <td colspan="3">
                            <asp:TextBox ID="txtReturnedNotes" runat="server" Rows="4" Wrap="True" TextMode="MultiLine"
                                Width="100%"></asp:TextBox>
                        </td>
                    </tr>
                </asp:Panel>
            </table>
        </asp:Panel>
    </asp:Panel>
    <asp:Panel ID="m_pnlRAForm" runat="server" Visible="false">
        <br />
        <br />
        <h2>
            <asp:Literal ID="Literal21" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelReturnAuthorization%>" />
        </h2>
        <asp:GridView ID="grdRA" runat="server" AutoGenerateColumns="False" Width="80%">
            <Columns>
                <asp:BoundField DataField="Text" HeaderText="<%$ Resources : FulfillmentManagement, LabelDescription %>"
                    HeaderStyle-Font-Bold="true" />
                <asp:BoundField DataField="Value" HeaderText="<%$ Resources : FulfillmentManagement, LabelValue%>" />
            </Columns>
            <RowStyle HorizontalAlign="Left" />
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
        <br />
        <br />
    </asp:Panel>
    <uc1:ClaimDetailsHandsetGrid ID="ucClaimDetailsHandsetGridControl" runat="server" />
    <uc:NoteHistory ID="m_ucNoteHistory" runat="server" OnNoteSubmitted="m_ucNoteHistory_NoteSubmitted" />
    <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="modalSupervisorOverride" TargetControlID="m_btnSupervisorOverride"
        PopupControlID="pnlSupervisorOverride" BackgroundCssClass="modalBackground" 
        PopupDragHandleControlID="pnlSupervisorOverrideHeader" />
    <asp:Panel ID="pnlSupervisorOverride" runat="server" Style="display: none; width: 300px;">
        <asp:Panel ID="pnlSupervisorOverrideHeader" runat="server" EnableViewState="false"
            CssClass="modalHeader">
            <asp:Localize ID="Localize2" runat="server" EnableViewState="false" Text="<%$ Resources : FulfillmentManagement, TextBtnSupervisor %>" />
        </asp:Panel>
        <asp:Panel ID="pnlSupervisorOverrideBody" runat="server" CssClass="modalContent">
            <table>
                <tr>
                    <td align="right">
                        <asp:Label ID="m_lblLogin" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelLogin %>" />
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtLogin" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="m_lblPassword" runat="server" Text="<%$ Resources : FulfillmentManagement, LabelPassword %>" />
                    </td>
                    <td>
                        <asp:TextBox ID="m_txtPassword" TextMode="Password" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <td>
                        <asp:Button ID="m_btnLogin" Text="<%$ Resources : FulfillmentManagement, LabelLogin %>"
                            runat="server" OnClick="m_btnLogin_Click" CausesValidation="false" />
                        &nbsp;
                        <asp:Button ID="m_btLoginCancel" Text="<%$ Resources : Default,ButtonCancel %>" runat="server"
                            CausesValidation="false" OnClick="m_btLoginCancel_Click" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                    </td>
                    <td>
                        <asp:Label ID="m_lblStatus" runat="server" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </asp:Panel>
    <!-- Tier Jumping Dialog -->
    <asp:UpdatePanel runat="server" ID="TierJumpingUpdatePanel" UpdateMode="always">
        <ContentTemplate>
    	    <uc:TierJumpingDialog ID="ucTierJumpingDialog" runat="server" 
                OnTierJumpingDialogApproved="ucTierJumpingDialog_TierJumpingDialogApproved"
                OnTierJumpingDialogRejected="ucTierJumpingDialog_TierJumpingDialogRejected" />
        </ContentTemplate>
    </asp:UpdatePanel>

    <asp:Panel ID="pnlNoteArchive" runat="server" Style="display: none; width: 800px;">
    <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="Label1" runat="server" EnableViewState="false" Text="<%$ Resources: SubscriberManagement, NotesHeaderText %>" />
                </td>
                <td align="right" style="margin: 0px; padding: 2px;">
                    <asp:ImageButton ID="imgArchiveNote" runat="server" CausesValidation="false" 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">
        <div ID="divNotes" runat="server" style="width:100%;height:375px;overflow:scroll;">
                        <uc:NoteHistory ID="ucNoteArchive" runat="server" />
         </div>           
    </asp:Panel>
        </asp:Panel>

        <asp:Button runat="server" EnableViewState="false" ID="hiddenTargetControlForModalPopup2"
        Style="display: none" />
    <eSecuritelHITSControls:HITSModalPopupExtender runat="server" ID="modalPopupWindow" TargetControlID="hiddenTargetControlForModalPopup2"
        PopupControlID="pnlNoteArchive" BackgroundCssClass="modalBackground" BehaviorID="DisplayMessage"
         PopupDragHandleControlID="pnlNoteArchiveHeader" CancelControlID="imgArchiveNote" />
</asp:Content>
