<%@ page language="C#" masterpagefile="~/MasterPages/Main.master" autoeventwireup="true" inherits="Business_UpdateMerchant, App_Web_wbvr1n5o" viewStateEncryptionMode="Always" maintainScrollPositionOnPostBack="true" %>

<%@ Register Src="../UserControls/DatePicker.ascx" TagName="DatePicker" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script language="javascript" type="text/javascript">
    function showterminals()
    {
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEndLast';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className='offEndLast';
        document.getElementById('td5').className='off';
        document.getElementById('td6').className='offEnd';
        document.getElementById('td7').className='on';
        document.getElementById('td8').className='onEnd';
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'none';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'block';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showservice()
    {
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEndLast';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className='offEnd';
        document.getElementById('td5').className='on';
        document.getElementById('td6').className='onEnd';
        document.getElementById('td7').className='off';
        document.getElementById('td8').className='offEndLast';
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'none';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'block';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showaddress()
    {
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEnd';
        document.getElementById('td3').className='on';
        document.getElementById('td4').className='onEnd';
        document.getElementById('td5').className='off';
        document.getElementById('td6').className='offEndLast';
        document.getElementById('td7').className='off';
        document.getElementById('td8').className='offEndLast';
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'none';
        document.getElementById('tbl2').style.display = 'block';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showgeneral()
    {
        document.getElementById('td1').className='on';
        document.getElementById('td2').className='onEnd';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className='offEndLast';
        document.getElementById('td5').className='off';
        document.getElementById('td6').className='offEndLast';
        document.getElementById('td7').className='off';
        document.getElementById('td8').className='offEndLast';
        document.getElementById('td9').className='off';
        document.getElementById('td10').className='offEndLast';
        document.getElementById('tbl1').style.display = 'block';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'none';
    }
    function showcomments()
    {
        document.getElementById('td1').className='off';
        document.getElementById('td2').className='offEndLast';
        document.getElementById('td3').className='off';
        document.getElementById('td4').className='offEndLast';
        document.getElementById('td5').className='off';
        document.getElementById('td6').className='offEndLast';
        document.getElementById('td7').className='off';
        document.getElementById('td8').className='offEnd';
        document.getElementById('td9').className='on';
        document.getElementById('td10').className='onEndLast';
        document.getElementById('tbl1').style.display = 'none';
        document.getElementById('tbl2').style.display = 'none';
        document.getElementById('tbl3').style.display = 'none';
        document.getElementById('tbl4').style.display = 'none';
        document.getElementById('tbl5').style.display = 'block';
    }
    
    function validate()
    {
        var message = "";
        if (document.getElementById("<%=txtAccNoGeneral.ClientID%>").value=="")
        {
            message += "Account Number can not be blank\n";
            document.getElementById("<%=txtAccNoGeneral.ClientID%>").style.backgroundColor="#c8d1e4";
        }
        
        if(document.getElementById("<%=txtRetailName.ClientID%>").value=="")
        {
            message += "Merchant Name can not be blank\n";
            document.getElementById("<%=txtRetailName.ClientID%>").style.backgroundColor="#c8d1e4";
        }
        
        if(document.getElementById("<%=ddlCity.ClientID %>").selectedIndex ==0)
        {
            message += "City can not be blank\n";
            document.getElementById("<%=ddlCity.ClientID%>").style.backgroundColor="#c8d1e4";
        }
        
        if(document.getElementById("<%=ddlBusinessUnit.ClientID %>").selectedIndex ==0)
        {
            message += "Business Unit can not be blank\n";
            document.getElementById("<%=ddlBusinessUnit.ClientID%>").style.backgroundColor="#c8d1e4";
        }
        
        if(message.length >0)
        {
            message = "please notice the following requirments:\n\n" + message;
            alert(message);
            return false;
        }
          return true;
    }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table class="body_MainTB" border="0" cellpadding="0" cellspacing="0">
        <tr align="center">
            <td valign="top">
                <!------------------------------------body St  ---------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="body_formTitle">
                    <tr>
                        <td>
                            Merchant Details
                        </td>
                    </tr>
                </table>
                <br>
                <!------------------------------------body End1 ----------------------------------------------->
                <table border="0" cellpadding="0" cellspacing="0" class="contTB">
                    <tr>
                        <td align="center">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Frow">
                                <tr>
                                    <td>
                                        <uc1:DatePicker ID="DatePicker1" runat="server" width="0" />
                                    </td>
                                </tr>
                            </table>
                            
                            <asp:UpdatePanel ID="UpdatePanel4" runat="server" UpdateMode="Always">
                                <ContentTemplate>
                                    <asp:Label ID="lblError" runat="server" Text="" class="fieldError"></asp:Label>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <asp:Panel ID="pnlBR" runat="server" Width="100%">
                                <table width="95%" class="tabTb" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="left">
                                            <table border="0" cellpadding="0" cellspacing="0" dir="ltr">
                                                <tr>
                                                    <td id="td1" class="on">
                                                        <a href="#" onclick="showgeneral();">General Details</a>
                                                    </td>
                                                    <td id="td2" class="onEnd">
                                                    </td>
                                                    <td id="td3" class="off">
                                                        <a href="#" onclick="showaddress();">Addresses</a>
                                                    </td>
                                                    <td id="td4" class="offEndLast">
                                                    </td>
                                                    <td id="td5" class="off">
                                                        <a href="#" onclick="showservice();">Services & Charges</a>
                                                    </td>
                                                    <td id="td6" class="offEndLast">
                                                    </td>
                                                    <td id="td7" class="off">
                                                        <a href="#" onclick="showterminals();">Terminals</a>
                                                    </td>
                                                    <td id="td8" class="offEnd">
                                                    </td>
                                                    <td id="td9" class="off">
                                                        <a href="#" onclick="showcomments();">Comments</a>
                                                    </td>
                                                    <td id="td10" class="offEndLast">
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <table id="tbl1" style="display: block" border="0" width="95%" cellpadding="0" cellspacing="0"
                                    class="add_ItemTB1">
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Client Number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:Label ID="lblClientNo" runat="server" Text="" class="fieldNormal"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            Account Number
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtAccNoGeneral" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtAccNoGeneralOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 15%">
                                            Client level
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:DropDownList ID="ddlClientLevel" runat="server" DataTextField="cl_desc" DataValueField="cl_code"
                                                class="fieldNormal">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                            <asp:Label ID="lblMerchantName" runat="server" Text="Merchant Name"></asp:Label>
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtRetailName" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtRetailNameOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            <asp:Label ID="lblMerchantNameAr" runat="server" Text="Arabic Merchant Name"></asp:Label>
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtRetailNameAr" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtRetailNameArOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            legal form
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtLegalForm" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtLegalFormOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            language
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlLang" runat="server" DataTextField="language_name" DataValueField="lang_code"
                                                class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlLangOld" runat="server" DataTextField="language_name" DataValueField="lang_code"
                                                class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            business class
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlBusinessClass" runat="server" DataTextField="business_Type"
                                                DataValueField="MCC" class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlBusinessClassOld" runat="server" DataTextField="business_Type"
                                                DataValueField="MCC" class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            city name
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlCity" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlCityOld" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            street
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtStreet" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtStreetOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            product type
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlProductType" runat="server" DataTextField="product_Type"
                                                DataValueField="pt_code" class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlProductTypeOld" runat="server" DataTextField="product_Type"
                                                DataValueField="pt_code" class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            posting method
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlPostingMethod" runat="server" DataTextField="method_name"
                                                DataValueField="pm_code" class="fieldNormal">
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            settlement method
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlSettlMethod" runat="server" DataTextField="method_name"
                                                DataValueField="sm_code" class="fieldNormal">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" style="width: 20%">
                                            Rental Type
                                        </td>
                                        <td colspan="4">
                                            <asp:RadioButton ID="rdDynamic" Text="Dynamic" GroupName="rd" runat="server" AutoPostBack="False" />
                                            <asp:RadioButton ID="rdFixed" Text="Fixed" GroupName="rd" runat="server" AutoPostBack="False" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            Dynamic Rental Group
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlDynamicG" runat="server" DataTextField="group_name" DataValueField="group_code"
                                                class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlDynamicGOld" runat="server" DataTextField="group_name" DataValueField="group_code"
                                                 class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            Fixed Rental Group
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlFixedG" runat="server" DataTextField="group_name" DataValueField="group_code"
                                                class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlFixedGOld" runat="server" DataTextField="group_name" DataValueField="group_code"
                                                class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            Business Unit
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlBusinessUnit" runat="server" DataTextField="description"
                                                DataValueField="bu_code" class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlBusinessUnit_SelectedIndexChanged">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlBusinessUnitOld" runat="server" DataTextField="description"
                                                DataValueField="bu_code" class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            Business Unit Account
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtBUAcc" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            Segment
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlIncomeRange" runat="server" DataTextField="income_range_desc"
                                                DataValueField="c_icode" class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlIncomeRangeOld" runat="server" DataTextField="income_range_desc"
                                                DataValueField="c_icode" class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                            <asp:TextBox ID="txtIncomeRange" runat="server" class="fieldNormal" Visible="false"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            relationship officer
                                        </td>
                                        <td class="tdNormal">
                                            <asp:DropDownList ID="ddlRelationshipOfficer" runat="server" DataTextField="RSO_NAME"
                                                DataValueField="RSO_CODE" class="fieldNormal">
                                            </asp:DropDownList><br />
                                            <asp:DropDownList ID="ddlRelationshipOfficerOld" runat="server" DataTextField="RSO_NAME"
                                                DataValueField="RSO_CODE" class="fieldNormalold" Enabled=false Visible=false>
                                            </asp:DropDownList>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            retailer id
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtRetailerID" runat="server" MaxLength="12" class="fieldNormal" ReadOnly=true></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            manual application number
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtManualAppNo" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtManualAppNoOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            merchant contact
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtMerchantContact" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtMerchantContactOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal">
                                            registration date
                                        </td>
                                        <td class="tdNormal">
                                            <uc1:DatePicker ID="dateRegDate" runat="server" width="250" /><br />
                                            <asp:Label ID="dateRegDateOld" runat="server" class="fieldNormalOld"></asp:Label>
                                        </td>
                                        <td class="tdNormal">
                                        </td>
                                        <td class="tdNormal">
                                            registration number
                                        </td>
                                        <td class="tdNormal">
                                            <asp:TextBox ID="txtRegNo" runat="server" class="fieldNormal"></asp:TextBox><br />
                                            <asp:TextBox ID="txtRegNoOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="tdNormal" colspan="5">
                                            <table border="0" cellpadding="0" style="width: 100%" cellspacing="0" class="action_TB_BgaddItem">
                                                <tr>
                                                    <td>
                                                        <asp:Button ID="btnSave" runat="server" Text="   Save   " class="Btn_M_Normal" OnClick="btnSave_Click" OnClientClick="return validate()"/>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table id="tbl2" border="0" width="95%" style="width: 95%" cellpadding="0" cellspacing="0"
                                            class="contTB">
                                            <tr>
                                                <td>
                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                        class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal">
                                                                <table border="0" style="width:25%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 20%">
                                                                            List Legend
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox3" runat="server" Text="Deleted" BackColor=SkyBlue class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox4" runat="server" Text="Modified" BackColor=Tan class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:GridView ID="gvAddresses" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                                                    DataKeyNames="ma_code" AllowPaging="True" AllowSorting="True" CellPadding="4"
                                                                    ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" 
                                                                    OnRowCommand="gvAddresses_RowCommand" onrowdatabound="gvAddresses_RowDataBound"
                                                                    OnRowCreated="gvAddresses_RowCreated" >
                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                    <Columns>
                                                                        <asp:BoundField DataField="contact_name" HeaderText="Contact Name" />
                                                                        <asp:BoundField DataField="city" HeaderText="city" />
                                                                        <asp:BoundField DataField="country" HeaderText="country" />
                                                                        <asp:BoundField DataField="address_category" HeaderText="Category" />
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="u" Text="Edit"
                                                                            ImageUrl="~/Images/edit.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete"
                                                                            ImageUrl="~/Images/delete.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="h" Text="View History"
                                                                            ImageUrl="~/Images/document_view.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:BoundField DataField="rec_flag" HeaderText="" />
                                                                        <asp:BoundField DataField="status" HeaderText="" />
                                                                    </Columns>
                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                    <EditRowStyle BackColor="#999999" />
                                                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAddAddress" runat="server" Text="     Add     " class="Btn_M_Normal"
                                                                    OnClick="btnAddAddress_Click" />
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal">
                                                    <asp:Panel ID="pnlAddress" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Address Details</legend>
                                                        </fieldset>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Contact Name
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtContactname" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtContactnameOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    P.O Box
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPOBox" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPOBoxOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    English Address 1
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEngAdd1" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEngAdd1Old" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    English Address 2
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEngAdd2" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEngAdd2Old" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    English Address 3
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEngAdd3" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEngAdd3Old" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Arabic Address 1
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtArabAdd1" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtArabAdd1Old" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Arabic Address 2
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtArabAdd2" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtArabAdd2Old" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Arabic Address 3
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtArabAdd3" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtArabAdd3Old" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Post Code
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPostCode" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPostCodeOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    City
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlAddressCity" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList><br />
                                                                    <asp:DropDownList ID="ddlAddressCityOld" runat="server" DataTextField="c_desc" DataValueField="c_code"
                                                                        class="fieldNormalOld" Enabled=false Visible=false>
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Country
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlAddressCountry" runat="server" class="fieldNormal">
                                                                        <asp:ListItem Value="682">Saudi Arabia</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Tel Work
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTelWork" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtTelWorkOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Tel Other
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTelOther" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtTelOtherOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    fax
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtFax" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtFaxOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Mobile
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtMobile" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtMobileOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Email Address
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtEmail" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtEmailOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Category
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlAddressCat" runat="server" DataTextField="CATEGORY_NAME"
                                                                        DataValueField="AC_CODE" class="fieldNormal">
                                                                    </asp:DropDownList><br />
                                                                    <asp:DropDownList ID="ddlAddressCatOld" runat="server" DataTextField="CATEGORY_NAME"
                                                                        DataValueField="AC_CODE" class="fieldNormalOld" Enabled=false Visible=false>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelAddress" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelAddress_Click" />
                                                                    <asp:Button ID="btnSaveAddress" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveAddress_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table id="tbl3" style="display: block" border="0" width="95%" style="width: 95%"
                                            cellpadding="0" cellspacing="0" class="contTB">
                                            <tr>
                                                <td>
                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                        class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal">
                                                                <table border="0" style="width:25%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 20%">
                                                                            List Legend
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox5" runat="server" Text="Deleted" BackColor=SkyBlue class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 40%">
                                                                            <asp:TextBox ID="TextBox6" runat="server" Text="Modified" BackColor=Tan class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:GridView ID="gvServices" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                                                    DataKeyNames="as_code" AllowPaging="True" AllowSorting="True" CellPadding="4"
                                                                    ForeColor="#333333" GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvServices_RowCommand" 
                                                                    onrowdatabound="gvServices_RowDataBound" OnRowCreated="gvServices_RowCreated" >
                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                    <Columns>
                                                                        <asp:BoundField DataField="service_name" HeaderText="Service Id" />
                                                                        <asp:BoundField DataField="acct_number" HeaderText="Account No" />
                                                                        <asp:BoundField DataField="fee_percent" HeaderText="Fee Percentage (Merchant)" />
                                                                        <asp:BoundField DataField="bank_fee_percent" HeaderText="Fee Percentage (Bank)" />
                                                                        <asp:BoundField DataField="record_date" HeaderText="Date" />
                                                                        <asp:BoundField DataField="key_entry" HeaderText="Key Entry" />
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="u" Text="Edit"
                                                                            ImageUrl="~/Images/edit.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="d" Text="Delete"
                                                                            ImageUrl="~/Images/delete.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" ItemStyle-Width="30px" CommandName="h" Text="View History"
                                                                            ImageUrl="~/Images/document_view.jpg">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:BoundField DataField="rec_flag" HeaderText="" />
                                                                        <asp:BoundField DataField="status" HeaderText="" />
                                                                    </Columns>
                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                    <EditRowStyle BackColor="#999999" />
                                                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAddServices" runat="server" Text="     Add     " class="Btn_M_Normal"
                                                                    OnClick="btnAddServices_Click" />
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal">
                                                    <asp:Panel ID="pnlServices" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Service Details</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Service ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlServices" runat="server" DataTextField="service_name" DataValueField="Service_code"
                                                                        class="fieldNormal" AutoPostBack="True" OnSelectedIndexChanged="ddlServices_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Currency
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlCurrancy" runat="server" DataTextField="currency" DataValueField="iso_code"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList><br />
                                                                    <asp:DropDownList ID="ddlCurrancyOld" runat="server" DataTextField="currency" DataValueField="iso_code"
                                                                        class="fieldNormalOld" Enabled=false Visible=false>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Fee Percentage (merchant)
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPercentM" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPercentMOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Fee Percentage (bank)
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPercentB" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPercentBOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr> 
                                                            <td class="tdNormal" style="width: 15%">
                                                                    Fee Percentage 
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                     <asp:Label ID="lblPercent" runat="server" class="fieldNormal"></asp:Label>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                            
                                                            </tr>
                                                            <tr>    
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Account Number
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtAccNo" runat="server" class="fieldNormal" MaxLength="14"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtAccNoOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>                                                                    
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Key Entry
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:CheckBox ID="chkKeyEntry" runat="server" class="fieldNormal" /><br />
                                                                    <asp:CheckBox ID="chkKeyEntryOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelService" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelService_Click" />
                                                                    <asp:Button ID="btnSaveService" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveService_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table id="tbl4" style="display: block" border="0" width="95%" style="width: 95%"
                                            cellpadding="0" cellspacing="0" class="contTB">
                                            <tr>
                                                <td>
                                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                        class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal" colspan="5">
                                                            <table border="0" style="width:15%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                                                    <tr>
                                                                        <td class="tdNormal" style="width: 20%">
                                                                            List Legend
                                                                        </td>
                                                                        <td class="tdNormal" style="width: 80%">
                                                                            <asp:TextBox ID="TextBox8" runat="server" Text="Modified" BackColor=Tan class="fieldNormal"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                                <asp:GridView ID="gvTerminals" runat="server" AllowPaging="True" 
                                                                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                                                                    CssClass="gridMaster" Width ="100%" DataKeyNames="dvl_code" 
                                                                    EmptyDataText="There are no Results" ForeColor="#333333" GridLines="None" 
                                                                    OnRowCommand="gvTerminals_RowCommand"  onrowdatabound="gvTerminals_RowDataBound" onrowcreated="gvTerminals_RowCreated"
                                                                    onselectedindexchanged="gvTerminals_SelectedIndexChanged">
                                                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                    <Columns>
                                                                        <asp:BoundField DataField="terminal_id" HeaderText="Terminal Id" />
                                                                        <asp:BoundField DataField="serial_number" HeaderText="Terminal Type" />
                                                                        <asp:BoundField DataField="TERMINAL_STATUSS" HeaderText="Status" />
                                                                        <asp:BoundField DataField="sama_flag" HeaderText="Sama" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="asama" 
                                                                            ImageUrl="~/Images/approve.jpg" ItemStyle-Width="20px" Text="Approve Sama" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="dsama" 
                                                                            ImageUrl="~/Images/reject.jpg" ItemStyle-Width="20px" Text="Decline Sama" />
                                                                        <asp:BoundField DataField="support_flag" HeaderText="Support" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="asup" 
                                                                            ImageUrl="~/Images/approve.jpg" ItemStyle-Width="20px" Text="Approve Support" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="dsup" 
                                                                            ImageUrl="~/Images/reject.jpg" ItemStyle-Width="20px" Text="Decline Support" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="u" 
                                                                            ImageUrl="~/Images/edit.jpg" ItemStyle-Width="20px" Text="Edit">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" CommandName="d" 
                                                                            ImageUrl="~/Images/delete.jpg" ItemStyle-Width="20px" Text="Delete">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" CommandName="r" 
                                                                            ImageUrl="~/Images/update.jpg" ItemStyle-Width="20px" Text="reset">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:ButtonField ButtonType="Image" CommandName="v" 
                                                                            ImageUrl="~/Images/images1.jpg" ItemStyle-Width="20px" 
                                                                            Text="View Terminal Charges" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="t" 
                                                                            ImageUrl="~/Images/trans.jpg" ItemStyle-Width="20px" Text="Transfer Terminal" />
                                                                        <asp:ButtonField ButtonType="Image" CommandName="h" 
                                                                            ImageUrl="~/Images/document_view.jpg" ItemStyle-Width="30px" 
                                                                            Text="View History">
                                                                            <ItemStyle Width="30px" />
                                                                        </asp:ButtonField>
                                                                        <asp:BoundField DataField="rec_flag" HeaderText="" />
                                                                        <asp:BoundField DataField="status" HeaderText="" />
                                                                    </Columns>
                                                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                    <EditRowStyle BackColor="#999999" />
                                                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" 
                                                                        HorizontalAlign="Right" />
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                                 <td class="tdNormal" style="width: 20%">
                                                                    Go To Page:
                                                                     <asp:DropDownList ID="ddlPages" runat="server" class="fieldNormal" AutoPostBack="True"
                                                                          Width="50px" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged">
                                                                     </asp:DropDownList>
                                                                  </td>
                                                                  <td class="tdNormal">
                                                                  </td>
                                                                  <td class="tdNormal">
                                                                  </td>
                                                                  <td class="tdNormal">
                                                                 </td>
                                                                <td class="tdNormal">
                                                                </td>
                                                      </tr>
                                                    </table>
                                                    <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgForm">
                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAddTerminal" runat="server" Text="     Add     " class="Btn_M_Normal"
                                                                    OnClick="btnAddTerminal_Click" />
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdNormal">
                                                    <asp:Panel ID="pnlTerminals" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Terminal Details</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="firstrow">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Terminal ID
                                                                </td>
                                                                <td class="tdNormal" colspan="2" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlTerminals" runat="server" DataTextField="term_type" DataValueField="terminal_id"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Region
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlRegion" runat="server" class="fieldNormal">
                                                                        <asp:ListItem Value="0110">Central</asp:ListItem>
                                                                        <asp:ListItem Value="0210">Western</asp:ListItem>
                                                                        <asp:ListItem Value="0310">Eastern</asp:ListItem>
                                                                        <asp:ListItem Value="0410">Nor.West</asp:ListItem>
                                                                        <asp:ListItem Value="0610">Nor.Central</asp:ListItem>
                                                                        <asp:ListItem Value="0710">South</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Installation Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:Label ID="lblInstall" runat="server" Text="" class="fieldNormal"></asp:Label>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Sama Confirm Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <uc1:DatePicker ID="dateSamaConfirm" runat="server" width="250" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Terminal Identity Data
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTerminalIdentityData" ReadOnly="true" MaxLength="8" runat="server"
                                                                        class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Language
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="DropDownList1" runat="server" DataTextField="language_name"
                                                                        DataValueField="lang_code" class="fieldNormal">
                                                                    </asp:DropDownList><br />
                                                                    <asp:DropDownList ID="DropDownList1Old" runat="server" DataTextField="language_name"
                                                                        DataValueField="lang_code" class="fieldNormalOld" Enabled=false Visible=false>
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Terminal Location
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtTerminalLocation" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtTerminalLocationOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Primary Host Access
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPrimHostAcc" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPrimHostAccOld" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Alternative Host Access
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtAltHostAcc" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtAltHostAccOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Primary Phone Number
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtPrimPhoneNo" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtPrimPhoneNoOld" runat="server" class="fieldNormalold" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Status
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlStatus" Enabled="false" runat="server" DataTextField="TERMINAL_STATUS_DESC"
                                                                        DataValueField="TERMINAL_STATUS_CODE" class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="oldclientrow">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Old Client ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtoldClientID" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Replacement Terminal ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtReplacementTerminal" ReadOnly="false" runat="server" class="fieldNormal"></asp:TextBox><br />
                                                                    <asp:TextBox ID="txtReplacementTerminalOld" ReadOnly="false" runat="server" class="fieldNormalOld" Enabled=false Visible=false></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                            <tr runat="server" id="rowVendor">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Vendor Notification Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtNotifyDate" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Vendor Response Date
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtResponseDate" ReadOnly="true" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelTerminal" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelTerminal_Click" />
                                                                    <asp:Button ID="btnSaveTerminal" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveTerminal_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    
                                                    <asp:Panel ID="pnlChanrges" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem1">
                                                            <legend id="addItem1">Terminal Charges</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" width="90%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                            class="add_ItemTB">
                                                            <tr>
                                                                <td class="tdNormal">
                                                                    <asp:GridView ID="gvTerminalCharges" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                                                        DataKeyNames="" AllowPaging="True" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                                        GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvTerminals_RowCommand">
                                                                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                                        <Columns>
                                                                            <asp:BoundField DataField="chg_date" HeaderText="Date" ItemStyle-Width="20%" />
                                                                            <asp:BoundField DataField="amount" HeaderText="Amount" ItemStyle-Width="20%" />
                                                                            <asp:BoundField DataField="reason" HeaderText="Reason" />
                                                                        </Columns>
                                                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                                        <EditRowStyle BackColor="#999999" />
                                                                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                                    </asp:GridView>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Add Terminal Charges</legend>
                                                        </fieldset>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="Tr1">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Amount
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtChargeAmount" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                    Reason
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:DropDownList ID="ddlReason" runat="server" DataTextField="reason_nm" DataValueField="reason_cd"
                                                                        class="fieldNormal">
                                                                    </asp:DropDownList>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelTerminalCharge" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelTerminalCharge_Click" />
                                                                    <asp:Button ID="btnSaveTerminalCharge" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveTerminalCharge_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    
                                                    <asp:Panel ID="pnlTransfer" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Transfer terminal</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="Tr2">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    New Retailer ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtNewClientNo" runat="server" class="fieldNormal" MaxLength="12"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelTransfer" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelTransfer_Click" />
                                                                    <asp:Button ID="btnSaveTransfer" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveTransfer_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    
                                                    <asp:Panel ID="pnlCancel" runat="server" Width="100%" Visible="false">
                                                        <fieldset id="addItem">
                                                            <legend id="addItem">Cancel terminal</legend>
                                                        </fieldset>

                                                        <script language="javascript" type="text/javascript">
                                                            showservice();
                                                        </script>

                                                        <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                            <tr runat="server" id="Tr3">
                                                                <td class="tdNormal" style="width: 15%">
                                                                    New Terminal ID
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                    <asp:TextBox ID="txtNewTerminalID" MaxLength="8" runat="server" class="fieldNormal"></asp:TextBox>
                                                                </td>
                                                                <td class="tdNormal" style="width: 10%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 15%">
                                                                </td>
                                                                <td class="tdNormal" style="width: 30%">
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                                            <tr>
                                                                <td>
                                                                    <asp:Button ID="btnCancelReplace" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                                        CausesValidation="False" OnClick="btnCancelReplace_Click" />
                                                                    <asp:Button ID="btnSaveReplace" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                                        OnClick="btnSaveReplace_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </asp:Panel>
                                                    <asp:Panel runat="server" ID="pnlVendor"  Visible="false">
                                                        <fieldset id="addItem">
                                                        <legend id="addItem">Vendor Response</legend>
                                                    </fieldset>
                                                    <table border="1" width="100%" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                                        <tr>
                                                            <td class="tdNormal" style="width: 15%">
                                                                Date
                                                            </td>
                                                            <td class="tdNormal" style="width: 30%">
                                                                <uc1:DatePicker ID="dateVendorResponse" runat="server" width="250" />
                                                            </td>
                                                            <td class="tdNormal" style="width: 10%">
                                                            </td>
                                                            <td class="tdNormal" style="width: 15%">
                                                                Time
                                                            </td>
                                                            <td class="tdNormal" style="width: 30%">
                                                                <asp:TextBox ID="txtTimeResponse" runat="server" class="fieldNormal"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="5">
                                                                <asp:Button ID="btnSaveResponse" runat="server" Text="Save" CssClass="Btn_L_Normal" OnClientClick=""
                                                                    OnClick="btnSaveResponse_Click" />
                                                                <asp:Button ID="btnCancelResponse" runat="server" Text="Cancel" CssClass="Btn_L_Normal" OnClientClick=""
                                                                    OnClick="btnCancelResponse_Click" />
                                                            </td>
                                                            
                                                        </tr>
                                                    </table>
                                                    </asp:Panel>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                <table id="tbl5" border="0" width="95%" style="width: 95%" cellpadding="0" cellspacing="0"
                                    class="contTB">
                                    <tr>
                                        <td>
                                            <table border="0" width="100%" cellpadding="0" cellspacing="0" style="width: 100%"
                                                class="add_ItemTB">
                                                <tr>
                                                    <td class="tdNormal">
                                                        <asp:GridView ID="gvComments" CssClass="gridMaster" Width ="100%" runat="server" AutoGenerateColumns="False"
                                                            DataKeyNames="" AllowPaging="False" AllowSorting="True" CellPadding="4" ForeColor="#333333"
                                                            GridLines="None" EmptyDataText="There are no Results" OnRowCommand="gvAddresses_RowCommand">
                                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" HorizontalAlign="Right" />
                                                            <Columns>
                                                                <asp:BoundField DataField="user_name" HeaderText="User Name" />
                                                                <asp:BoundField DataField="action_name" HeaderText="Action" />
                                                                <asp:BoundField DataField="action_date" HeaderText="Date" />
                                                                <asp:BoundField DataField="note" HeaderText="Note" />
                                                            </Columns>
                                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="Black" />
                                                            <EditRowStyle BackColor="#999999" />
                                                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" HorizontalAlign="Right" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                            <!------------------------------------body End2 ----------------------------------------------->
                            
                            <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                <tr>
                                    <td>
                                        <asp:Button ID="btnSubmit" runat="server" Text="   SUBMIT   " class="Btn_M_Normal"
                                            OnClick="btnSubmit_Click" />
                                        <asp:Button ID="btnDuplicate" runat="server" Text="   Duplicate   " class="Btn_M_Normal"
                                            OnClick="btnDuplicate_Click" />
                                        <asp:Button ID="btnHistory" runat="server" Text="View Merchant History" class="Btn_L_Normal1"
                                            OnClick="btnHistory_Click" />
                                        <asp:Button ID="btnAccHistory" runat="server" Text="View Account History" class="Btn_L_Normal1"
                                            OnClick="btnAccHistory_Click" />
                                    </td>
                                    <td style="text-align:left" width=25%>
                                        <table border="0" width="50%" cellpadding="0" cellspacing="0" class="add_ItemTB1">
                                            <tr>
                                                <td class="tdNormal" style="width: 20%">
                                                    Field Legend
                                                </td>
                                                <td class="tdNormal" style="width: 40%">
                                                    <asp:TextBox ID="TextBox1" runat="server" Text="New Value" class="fieldNormal"></asp:TextBox>
                                                </td>
                                                <td class="tdNormal" style="width: 40%">
                                                    <asp:TextBox ID="TextBox2" runat="server" Text="Old Value" class="fieldNormalold" Enabled=false></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                            
                            <asp:Panel ID="pnlDuplicate" runat="server" Width="100%" Visible="false">
                                <fieldset id="addItem">
                                    <legend id="addItem">Duplicate Branch</legend>
                                </fieldset>

                                <script language="javascript" type="text/javascript">
                                    showgeneral();
                                </script>

                                <table border="0" cellpadding="0" cellspacing="0" class="add_ItemTB">
                                    <tr runat="server" id="Tr4">
                                        <td class="tdNormal" style="width: 15%">
                                            New Account ID
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                            <asp:TextBox ID="txtNewAcctNo" MaxLength="14" runat="server" class="fieldNormal"></asp:TextBox>
                                        </td>
                                        <td class="tdNormal" style="width: 10%">
                                        </td>
                                        <td class="tdNormal" style="width: 15%">
                                        </td>
                                        <td class="tdNormal" style="width: 30%">
                                        </td>
                                    </tr>
                                </table>
                                <table border="0" cellpadding="0" cellspacing="0" class="action_TB_BgaddItem">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnSaveDuplicate" runat="server" Text="   Save   " class="Btn_M_Normal"
                                                CausesValidation="False" OnClick="btnSaveDuplicate_Click" />
                                            <asp:Button ID="btnCancelDuplicate" runat="server" Text="   Cancel   " class="Btn_M_Normal"
                                                OnClick="btnCancelDuplicate_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
                <!------------------------------------body End2 ----------------------------------------------->
            </td>
        </tr>
    </table>

    <script language="javascript" type="text/javascript">
        showgeneral();
    </script>

</asp:Content>
