<%@ page language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Billing_InvoiceDetail, MachSol.MachPanel.Web" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="EM" %>
<%@ Register Src="~/Template/GVPager.ascx" TagName="Pager" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Billing/CC/AzureBillDetail.ascx" TagName="AzureBill" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Billing/CC/UsageBasedBillDetail.ascx" TagName="UsageBasedBillDetail" TagPrefix="EM" %>
<%@ Register Src="~/RCC/Billing/CC/HyperVMeteredResouresBillDetail.ascx" TagName="HyperVMeteredResourcesBillDetail" TagPrefix="UC" %>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_Content" runat="Server">
    <script type="text/javascript" language="javascript">
        function AmountChange(CS, AM, P1, P2, P3) {
            var TxBx_Amount = document.getElementById(AM);
            var CSV = CS + ' ';
            FormatPrice(AM, CSV, P1, P2, P3);
        }
    </script>

    <div class="col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <asp:Literal ID="Ltl_SubsInfo" runat="server" /></h2>
            </div>
            <div class="body">
                <div class="row Div_OpsRow" id="Div_OpsRow" runat="server">
                    <div class="col-xs-12">
                        <div class="card">
                            <div class="header">
                                <h3>
                                    <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                </h3>
                            </div>
                            <div class="body">
                                <asp:Button ID="Btn_Cancel" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, GN00001367 %>' />
                                <asp:Button ID="Btn_DownloadPDF" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content, GN0000750 %>' />
                                <%--<asp:Button ID="Btn_PrintPreview" runat="server" class="btn btn-primary waves-effect" Width="125px" Text='<%$ Resources:Content, GN0000751 %>' />--%>
                                <asp:Button ID="Btn_Email" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, GN00001368 %>' />
                                <asp:Button ID="Btn_Register" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, M0018 %>' />
                            </div>
                        </div>
                    </div>
                </div>

                <%--Cancel invoice box--%>
                <asp:Panel ID="Panel1" CssClass="width-modal-popup-auto" runat="server"
                    Style="display: none">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="header">
                                    <h3><%= Resources.Content.GN00001367 %></h3>
                                </div>
                                <div class="body">
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Literal ID="Div1" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000704 %>' />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources:Content,SM100019%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="form-group">
                                                <div class="form-line">
                                                    <asp:TextBox ID="TxBx_Amount" runat="server"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Div2" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000706 %>' />:</label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <asp:RadioButtonList ID="RBL_EffectOnService" runat="server">
                                                <asp:ListItem Text='<%$ Resources:Content, GN0000707 %>' Selected="true" Value="2"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>
                                    <div class="row" id="trEffectOnAccount" runat="server" visible="false">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal1" runat="server" EnableViewState="false" Text='<%$ Resources:Content,GN0000753 %>' />:</label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <asp:RadioButtonList ID="RBL_EffectOnAccount" runat="server">
                                                <asp:ListItem Text='<%$ Resources:Content, GN0000708 %>' Value="0" Selected="true"></asp:ListItem>
                                                <asp:ListItem Text='<%$ Resources:Content, GN0000377 %>' Value="1"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Literal2" runat="server" Text="<%$ Resources:Content,GN000148%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="form-group">
                                                <asp:TextBox ID="TxBx_CancelComments" runat="server" Height="150px" TextMode="MultiLine" Width="100%"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:CheckBox ID="CB_CancelWarning" runat="server" ForeColor="Red" Font-Bold="true" Text='<%$ Resources:Content, InvoiceCancelWarning %>' />
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_Pop_OK" runat="server" class="btn btn-primary waves-effect" Enabled="false" Text='<%$ Resources:Content, GN0000710 %>' />
                                            <asp:Button ID="Btn_Pop_Cancel" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content, GN0000572 %>' />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <asp:Panel ID="Panel2" runat="server" CssClass="width-modal-popup-auto" Style="display: none">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="card">
                                <div class="body">
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <label>
                                                <asp:Literal ID="Literal9" runat="server" Text="<%$ Resources:Content,GN0000711%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <asp:HiddenField ID="HF_ItemId" runat="server" />
                                            <asp:HiddenField ID="HF_Amount" runat="server" />
                                            <asp:RadioButtonList ID="RBL_EffectOnPayment" runat="server">
                                                <asp:ListItem Text='<%$ Resources:Content, GN0000712 %>' Selected="true" Value="0"></asp:ListItem>
                                                <asp:ListItem Text='<%$ Resources:Content, GN0000713 %>' Value="1"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-sm-4 col-xs-12 row-label">
                                            <label>
                                                *<asp:Literal ID="Literal12" runat="server" Text="<%$ Resources:Content,GN000148%>"
                                                    EnableViewState="false" />:</label>
                                        </div>
                                        <div class="col-sm-8 col-xs-12">
                                            <div class="form-group">
                                                <asp:TextBox ID="TxBx_ItemComments" runat="server" Height="150px" TextMode="MultiLine" Width="100%"></asp:TextBox>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="col-xs-12">
                                            <asp:Button ID="Btn_OkItem" runat="server" class="btn btn-primary waves-effect" Enabled="false" Text='<%$ Resources:Content, GN0000710 %>' />
                                            <asp:Button ID="Btn_CancelItem" class="btn btn-primary waves-effect" runat="server" Text='<%$ Resources:Content, GN0000572 %>' />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </asp:Panel>
                <asp:Button ID="Btn_Dummy" Style="display: none" runat="server" />
                <EM:ModalPopupExtender runat="server" ID="MP1" BackgroundCssClass="modalBackground"
                    OnCancelScript="onCancel()" OnOkScript="onOk()" DropShadow="false" OkControlID="Btn_Pop_OK"
                    CancelControlID="Btn_Pop_Cancel" PopupControlID="Panel1" TargetControlID="Btn_Cancel">
                </EM:ModalPopupExtender>
                <EM:ModalPopupExtender runat="server" ID="MP2" BackgroundCssClass="modalBackground"
                    OnCancelScript="onCancel()" OnOkScript="onItemOk()" DropShadow="false" OkControlID="Btn_OkItem"
                    CancelControlID="Btn_CancelItem" PopupControlID="Panel2" TargetControlID="Btn_Dummy">
                </EM:ModalPopupExtender>

                <ajax:UpdatePanel ID="UP_Payment" runat="server">
                    <ContentTemplate>
                        <div class="row">
                            <div class="col-xs-12">
                                <%--Account detail box--%>
                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.GN0000714 %></h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Div8" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000715 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <asp:LinkButton ID="lb_ClientID" runat="server" />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal6" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000716 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_AccountStatus" runat="server">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <br />
                                <%--General info box--%>
                                <div class="card">
                                    <div class="header">
                                        <h3><%= Resources.Content.GN0000578 %></h3>
                                    </div>
                                    <div class="body">
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal8" runat="server" EnableViewState="false" Text='<%$ Resources:Content, String385 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">

                                                <asp:Label ID="lbl_Status" runat="server" />
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal10" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000718 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Invoice" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal11" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000684 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Payments" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal13" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000720 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_CreatedBy" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal14" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000721 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Date" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal15" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000722 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_DueDate" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal16" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000693 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Balance" runat="server">
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal17" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN000148 %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12" id="Td_Comments" runat="server">
                                            </div>
                                        </div>
                                        <div class="row" id="div_sipbilldetails" runat="server" visible="false">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal26" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strVoiceBillDetails %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <asp:LinkButton ID="Lbtn_ExportSIPBillDetails" runat="server" Text="<%$ Resources:Content,Ex001 %>"></asp:LinkButton>
                                                &nbsp;  
                                                <asp:LinkButton ID="Lbtn_ExportSIPBillDetailsPDF" Visible="false" runat="server" Text="<%$ Resources:Content,strExportToPDF %>"></asp:LinkButton>
                                                &nbsp;  
                                                <asp:LinkButton ID="Lbtn_ExportSIPBillDetailsCsv" runat="server" Text="<%$ Resources:Content,strDownloadCDRToCsv %>"></asp:LinkButton>&nbsp;
                                                <asp:LinkButton ID="Lbtn_CDRToPdf" Visible="false" runat="server" Text="<%$ Resources:Content,strDownloadVoiceDetails %>"></asp:LinkButton>&nbsp;
                                            </div>
                                        </div>

                                        <div class="row" id="div_HostedVoicebilldetails" runat="server" visible="false">
                                            <div class="col-sm-2 col-xs-12 row-label">
                                                <asp:Literal ID="Literal18" runat="server" EnableViewState="false" Text='<%$ Resources:Content, strHostedVoiceBillDetails %>' />:
                                            </div>
                                            <div class="col-sm-9 col-xs-12">
                                                <asp:LinkButton ID="Lbtn_ExportHVoiceBillDetails" runat="server" Text="<%$ Resources:Content,Ex001 %>"></asp:LinkButton>
                                                &nbsp;                                                  
                                            </div>
                                        </div>

                                    </div>
                                    <br />
                                    <div id="Div_DigiCertSSL" runat="server" visible="false">
                                        <div class="card">
                                            <div class="header">
                                                <h3><%= Resources.Content.DigiCertOrderDetails %></h3>
                                            </div>
                                            <div class="body" id="Div_Customer" runat="server">
                                                <div class="row">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal3" runat="server" EnableViewState="false" Text='<%$ Resources:Content, CommonName %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12">
                                                        <asp:Label ID="Lbl_Domain" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal5" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN000112 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12">
                                                        <asp:Label ID="Lbl_Price" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal23" runat="server" EnableViewState="false" Text='<%$ Resources:Content, SANQuantity %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12">
                                                        <asp:Label ID="Lbl_SANQuantity" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal24" runat="server" EnableViewState="false" Text='<%$ Resources:Content, SANBill %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12">
                                                        <asp:Label ID="Lbl_SANBill" runat="server" />
                                                    </div>
                                                </div>
                                                <div class="row">
                                                    <div class="col-sm-2 col-xs-12 row-label">
                                                        <asp:Literal ID="Literal25" runat="server" EnableViewState="false" Text='<%$ Resources:Content, AB0003 %>' />:
                                                    </div>
                                                    <div class="col-sm-9 col-xs-12">
                                                        <asp:Label ID="Lbl_TotalAmount" runat="server" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="body" id="Div_Reseller" runat="server" visible="false">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                        <asp:GridView ID="GV_CustomerSubscriptions" runat="server" AutoGenerateColumns="False" CssClass="table table-bordered table-striped table-hover">
                                                            <Columns>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000850%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:HyperLink ID="LB_ClientID" runat="server"></asp:HyperLink>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="Domain" HeaderText="<%$ Resources:Content,CommonName%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" />
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,GN000112%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_SalePrice" runat="server"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField DataField="totalUsedSANQuantity" HeaderText="<%$ Resources:Content,SANQuantity%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2" />
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,SANBill%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_SANBill" runat="server"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="<%$ Resources:Content,AB0003%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="Lbl_TotalPrice" runat="server"></asp:Label>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                        </asp:GridView>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <br />
                                    </div>
                                    <%--Invoiced Items Box--%>

                                    <div class="card">
                                        <div class="header">
                                            <h3><%= Resources.Content.GN0000725 %></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView ID="GV_InvoiceDetail" runat="server" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                        AllowPaging="false" AllowSorting="false" AutoGenerateColumns="false">

                                                        <Columns>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, String352 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_Service" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000597 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_Description" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, string35 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_Quantity" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, M0123 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_Setup" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN000112 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_Price" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000203 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_Discount" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, GN000114 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_SubTotal" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, USM0098 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_Income" runat="server" data-toggle="tooltip" data-placement="top" title="" data-original-title="" data-html="true">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                            <asp:TemplateField HeaderText='<%$ Resources:Content, VAT %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                                <ItemTemplate>
                                                                    <div id="Div_VAT" runat="server">
                                                                    </div>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                                <div class="col-xs-12">
                                                    <%--Totals box--%>
                                                    <div class="card">
                                                        <div class="header">
                                                            <h3><%= Resources.Content.GN0000730 %></h3>
                                                        </div>
                                                        <div class="body">
                                                            <div class="row">
                                                                <div class="col-sm-6 hidden-xs">
                                                                </div>
                                                                <div class="col-sm-6 col-xs-12">

                                                                    <div class="row" id="Div_VatTransferred" runat="server" visible="false">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Literal105" runat="server" Text="<%$ Resources:Content,TotalVATTrans%>" />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right" id="Div_TotalVATTrans" runat="server"></div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Ltl_SubTotal" runat="server" Text="<%$ Resources:Content,GN000112%>" />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right" id="TD_SubTotal" runat="server"></div>
                                                                    </div>
                                                                    <div class="row" id="Div_PayCouponDiscount" runat="server" visible="false">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Literal53" runat="server" Text="<%$ Resources:Content,CouponDiscount%>" />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right" id="TD_PayCouponDiscount" runat="server"></div>
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Literal69" runat="server" Text="<%$ Resources:Content,TotalAfterCouponDiscount%>" />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right" id="TD_PayTotalAfterCouponDiscount" runat="server"></div>
                                                                    </div>
                                                                    <div class="row" id="Div_Tax" runat="server">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Ltl_VAT" runat="server" Text="<%$ Resources:Content,GN000113%>" />:
                                                                        </div>
                                                                        <div class="col-sm-3 col-xs-12 p-l-r-0 align-right" id="Div_OnAmountTax" runat="server"></div>
                                                                        <div class="col-sm-3 col-xs-12 align-right" id="Div_SalesTaxVal" runat="server">
                                                                            <asp:Literal ID="Lbl_SalesTax" runat="server"></asp:Literal>
                                                                            <asp:LinkButton ID="Ltrl_SalesTaxNote" runat="server" EnableViewState="false" CausesValidation="false" Text='<%$ Resources:Content, strClick4Details %>' Visible="false" />
                                                                        </div>
                                                                    </div>
                                                                    <div class="row" id="Div_VATShifted" runat="server" visible="false">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Ltl_VATShifted" runat="server" Text="<%$ Resources:Content,VATTransferred0%>" />:
                                                                        </div>
                                                                        <div class="col-sm-3 col-xs-12 p-l-r-0 align-right" id="Div_OnVATShifted" runat="server"></div>
                                                                        <div class="col-sm-3 col-xs-12 align-right" id="Div_VATTransferred0" runat="server"></div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Ltrl_Total" runat="server" Text="<%$ Resources:Content,GN000114%>" />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right" id="TD_Total" runat="server"></div>
                                                                    </div>

                                                                    <div class="row">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Ltrl_Paid" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000267 %>' />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right">
                                                                            <asp:Label ID="Lbl_Paid" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Ltrl_Balance" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000693 %>' />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right">
                                                                            <asp:Label ID="Lbl_Balance" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>
                                                                    <div class="row" id="tr_income" runat="server">
                                                                        <div class="col-sm-6 col-xs-12 row-label align-right">
                                                                            <asp:Literal ID="Ltrl_TotalIncome" runat="server" EnableViewState="false" Text='<%$ Resources:Content, USM0100 %>' />:
                                                                        </div>
                                                                        <div class="col-sm-6 col-xs-12 align-right">
                                                                            <asp:Label ID="Lbl_TotalIncome" runat="server"></asp:Label>
                                                                        </div>
                                                                    </div>

                                                                    <asp:Panel ID="Pnl_AvalaraDetails" CssClass="width-modal-popup-auto" runat="server" Style="display: none">
                                                                        <div class="row">
                                                                            <div class="col-xs-12">
                                                                                <div class="card">
                                                                                    <div class="header container-fluid">
                                                                                        <h3 class="pull-left"><%= Resources.Content.strTaxDetails%></h3>
                                                                                        <span>
                                                                                            <button type="button" class="close" onclick="$find('<%=MPE_AvalaraDetails.ClientID%>').hide();">&times;</button>
                                                                                        </span>
                                                                                    </div>
                                                                                    <div class="body" id="Div_AvalaraDetails" runat="server">
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </asp:Panel>
                                                                    <EM:ModalPopupExtender runat="server" ID="MPE_AvalaraDetails" BackgroundCssClass="modalBackground"
                                                                        DropShadow="false" PopupControlID="Pnl_AvalaraDetails" TargetControlID="Ltrl_SalesTaxNote">
                                                                    </EM:ModalPopupExtender>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="panel-group" id="accordion_1" role="tablist" aria-multiselectable="true">
                                        <div class="panel panel-primary" id="Div_Payments" runat="server">
                                            <div class="panel-heading" role="tab" id="headingOne_1">
                                                <h2 class="panel-title">
                                                    <a class="collapsed" id="A_Div_Payments" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#collapseOne_1" aria-expanded="false" aria-controls="collapseOne_1">
                                                        <%= Resources.Content.GN0000684%>
                                                    </a>
                                                </h2>
                                            </div>
                                            <div id="collapseOne_1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne_1" aria-expanded="false" style="height: 0px;">
                                                <div class="panel-body">
                                                    <%--Payment box--%>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:GridView ID="GV_Payments" runat="server" AutoGenerateColumns="False" CssClass="table table-bordered table-striped table-hover">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,GN0000678%>" HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                        <ItemTemplate>
                                                                            <div id="Div_Payment" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN000124 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                        <ItemTemplate>
                                                                            <div id="Div_PaymentMethod" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000721 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                        <ItemTemplate>
                                                                            <div id="Div_Date" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000737 %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                                        <ItemTemplate>
                                                                            <div id="Div_Amount" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>

                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="panel panel-primary" id="divAzureBillDetail" runat="server" visible="false">
                                            <div class="panel-heading" role="tab" id="headingTwo_1">
                                                <h4 class="panel-title">
                                                    <a class="collapsed" id="A_divAzureBillDetail" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#collapseTwo_1" aria-expanded="false" aria-controls="collapseTwo_1">
                                                        <%= Resources.Content.strAzureBillDetail%>
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseTwo_1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo_1" aria-expanded="false" style="height: 0px;">
                                                <div class="panel-body">
                                                    <%-- Azure Bill Detail --%>
                                                    <EM:AzureBill ID="UCAzureBillDetail" runat="server"></EM:AzureBill>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="panel panel-primary" id="Div_ResellerUsageBasedBill" runat="server" visible="false">
                                            <div class="panel-heading" role="tab" id="headingThree_1">
                                                <h4 class="panel-title">
                                                    <a class="collapsed" id="A_ResellerUsageBasedBill" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#collapseThree_1" aria-expanded="false" aria-controls="collapseThree_1">
                                                        <%= Resources.Content.BillDetail%>
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseThree_1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree_1" aria-expanded="false" style="height: 0px;">
                                                <div class="panel-body">
                                                    <%--Reseller Usage Based Bill Details--%>
                                                    <EM:UsageBasedBillDetail ID="UsageBasedBillDetail1" runat="server"></EM:UsageBasedBillDetail>
                                                </div>
                                            </div>
                                        </div>
                                        <%--Hyper-V Metered Resources Bill Detail--%>
                                        <div class="panel panel-primary" id="Div_HyperVMeteredResourcesBill" runat="server" visible="false">
                                            <div class="panel-heading" role="tab" id="Div6">
                                                <h4 class="panel-title">
                                                    <a class="collapsed" id="A_HyperVMeteredResourcesBill" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#mrbd-collapse" aria-expanded="false" aria-controls="mrbd-collapse">
                                                        <%= Resources.Content.BillDetail%>
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="mrbd-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree_1" aria-expanded="false" style="height: 0px;">
                                                <div class="panel-body">
                                                    <%--Hyper-V Metered Resources Bill Detail--%>
                                                    <UC:HyperVMeteredResourcesBillDetail ID="HypVMRBD" runat="server"></UC:HyperVMeteredResourcesBillDetail>
                                                </div>
                                            </div>
                                        </div>
                                        <%-- RDS Bill Detail --%>
                                        <div class="panel panel-primary" id="Div_RDSBillDetail" runat="server" visible="false">
                                            <div class="panel-heading" role="tab" id="Div4">
                                                <h4 class="panel-title">
                                                    <a class="collapsed" id="RDS_ResellerUsageBasedBill" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#RDScollapse" aria-expanded="false" aria-controls="RDScollapse">
                                                        <%= Resources.Content.strRDSBillDetail%>
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="RDScollapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree_1" aria-expanded="false" style="height: 0px;">
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <div class="card">
                                                                <div class="header">
                                                                    <h3>
                                                                        <%= Resources.Content.GN00001320%>      <%--Operations--%>
                                                                    </h3>
                                                                </div>
                                                                <div class="body">
                                                                    <asp:Button ID="btnDownloadRDS" runat="server" class="btn btn-primary waves-effect" Text='<%$ Resources:Content, strDownloadDetail %>' />

                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <%--<div class="row">
                                                    <div class="col-xs-12 row-label">
                                                        <asp:Label ID="lblProrait" runat="server" Text="<%$ Resources:Content, strProrated %>"></asp:Label>:
                                                        <asp:Label ID="LblIsProrated" runat="server"></asp:Label>
                                                    </div>
                                                </div>--%>
                                                    <div class="row">
                                                        <div class="col-xs-12">
                                                            <asp:GridView ID="GVRDSInvoice" runat="server" AutoGenerateColumns="False" CssClass="table table-bordered table-striped table-hover">
                                                                <Columns>
                                                                    <asp:TemplateField HeaderText="<%$ Resources:Content,CollectionName%>" HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                        <ItemTemplate>
                                                                            <div id="Div_CollectionName" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, USM0085 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                        <ItemTemplate>
                                                                            <div id="Div_TotalUsers" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, strUnitCost %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                        <ItemTemplate>
                                                                            <div id="Div_UnitCost" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, Lync319 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                        <ItemTemplate>
                                                                            <div id="Div_TotalCost" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, strUnitPrice %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                        <ItemTemplate>
                                                                            <div id="Div_UnitPrice" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText='<%$ Resources:Content, USM0099  %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                                        <ItemTemplate>
                                                                            <div id="Div_TotalPrice" runat="server">
                                                                            </div>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>
                                                                </Columns>

                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>

                                            </div>
                                        </div>
                                    </div>

                                    <div class="panel panel-primary" id="Div_SfBCallsHistory" runat="server" visible="false">
                                        <div class="panel-heading" role="tab" id="headingFour_1">
                                            <h4 class="panel-title">
                                                <a class="collapsed" id="A_SfBCallsBill" role="button" data-toggle="collapse" data-parent="#accordion_1" href="#collapseFour_1" aria-expanded="false" aria-controls="collapseFour_1">
                                                    <%= Resources.Content.CallHistory%>
                                                </a>
                                            </h4>
                                        </div>
                                        <div id="collapseFour_1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour_1" aria-expanded="false" style="height: 0px;">
                                            <div class="panel-body">
                                                <asp:GridView ID="GV_CallHistory" runat="server" CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                    AllowPaging="false" AllowSorting="false" AutoGenerateColumns="false">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, StartTimeUTC %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <div id="Div_StartTime" runat="server">
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, EndTimeUTC %>' HeaderStyle-CssClass="col-xs-3" ItemStyle-CssClass="col-xs-3">
                                                            <ItemTemplate>
                                                                <div id="Div_EndTime" runat="server">
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, GN0000372 %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <div id="Div_FromPhone" runat="server">
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, To %>' HeaderStyle-CssClass="col-xs-2" ItemStyle-CssClass="col-xs-2">
                                                            <ItemTemplate>
                                                                <div id="Div_ToPhone" runat="server">
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, SMI0810 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <div id="Div_CallDuration" runat="server">
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderText='<%$ Resources:Content, Lync307 %>' HeaderStyle-CssClass="col-xs-1" ItemStyle-CssClass="col-xs-1">
                                                            <ItemTemplate>
                                                                <div id="Div_Cost" runat="server">
                                                                </div>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                    </Columns>
                                                </asp:GridView>
                                            </div>
                                        </div>
                                    </div>

                                    <%--Comments box--%>
                                    <div class="card">
                                        <div class="header">
                                            <h3><%= Resources.Content.GN000148 %></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:GridView CssClass="table table-bordered table-striped table-hover" EmptyDataText="<%$ Resources:Content, GN00001375 %>"
                                                        ID="GV_AllNotes" runat="server" AutoGenerateColumns="false" AllowPaging="false" ShowHeader="false">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <table class="table">
                                                                        <tr>
                                                                            <th id="Th_User" runat="server" class="col-sm-3 col-xs-12"></th>
                                                                            <td id="Td_Comments" runat="server" class="col-sm-9 col-xs-12"></td>
                                                                        </tr>
                                                                    </table>
                                                                </ItemTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                    </asp:GridView>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="header">
                                            <h3><%= Resources.Content.GN0000748%></h3>
                                        </div>
                                        <div class="body">
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Div28" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000739 %>' />:</label>
                                                </div>
                                                <div class="col-sm-4 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:DropDownList ID="DDL_InvoiceComment" runat="server">
                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000741 %>' Value="'" Selected="true"></asp:ListItem>
                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000740 %>' Value="General Comment: "></asp:ListItem>
                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000742 %>' Value="Creation Comment: "></asp:ListItem>
                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000743 %>' Value="Invoice Comment: "></asp:ListItem>
                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000744 %>' Value="Canceling Comment: "></asp:ListItem>
                                                            <asp:ListItem Text='<%$ Resources:Content, GN0000745 %>' Value="Approval for provisioning Comment: "></asp:ListItem>
                                                        </asp:DropDownList>
                                                    </div>
                                                </div>
                                                <div class="col-sm-5 col-xs-12"></div>
                                            </div>
                                            <div class="row">
                                                <div class="col-sm-3 col-xs-12 row-label">
                                                    <label>
                                                        <asp:Literal ID="Literal4" runat="server" EnableViewState="false" Text='<%$ Resources:Content, GN0000746 %>' />:</label>
                                                </div>
                                                <div class="col-sm-9 col-xs-12">
                                                    <div class="form-group">
                                                        <asp:TextBox ID="TxBx_Comment" runat="server" Height="150px" TextMode="MultiLine" Width="100%"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="RFV_Comment" runat="server" ControlToValidate="TxBx_Comment"
                                                            Display="None" ErrorMessage='' SetFocusOnError="True" ValidationGroup="Comment"></asp:RequiredFieldValidator>
                                                        <asp:ValidationSummary HeaderText='<%$ Resources:Content, EM000001 %>' ID="ValidationSummary1"
                                                            runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="Comment" />
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="row">
                                                <div class="col-xs-12">
                                                    <asp:Button ID="Btn_AddComment" runat="server" class="btn btn-primary waves-effect btnAction" Text='<%$ Resources:Content, GN0000748 %>' ValidationGroup="Comment" />
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </ContentTemplate>
                </ajax:UpdatePanel>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        function CancelItem(HF_Id, InvoiceDetailId, Amount) {
            var HF_ItemId = document.getElementById(HF_Id);
            HF_ItemId.value = InvoiceDetailId;
            var array = HF_Id.split('HF_ItemId');
            var HF_Amount = document.getElementById(array[0] + 'HF_Amount');
            HF_Amount.value = Amount;
            $object('MP2')._show();
            return false;
        }
        function onItemOk() {
            __doPostBack('ctl00$CPH_Content$Btn_Dummy', '');
        }
        function onOk() {

            if (document.getElementById('ctl00_CPH_Content_TxBx_CancelComments').value != '') {
                __doPostBack('ctl00$CPH_Content$Btn_Pop_OK', '');
            }
            else {
                alert("Please enter comments.");
                $find('ctl00_CPH_Content_MP1').show();
            }
        }
        function onCancel() {
            //  __doPostBack('ctl00$RightContentPlaceHolder$Btn_Pop_Cancel','');
            //      __doPostBack('ctl00$RightContentPlaceHolder$GV_TicketList$ctl02$LBtn_Del','')
        }

    </script>

</asp:Content>
