<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/FiniqAppMasterPage.Master"
    CodeBehind="CustomerAccount.aspx.vb" Inherits="FinIQWebApp.CustomerAccount" Title="Account Setup"  EnableViewState ="true" %>
	

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%--<%@ Register TagName="KYC" TagPrefix="Check" Src="~/FinIQ_User_Controls/Customer_KYC/Customer_KYC.ascx" %>--%>

<%--<%@ Register Src="../FinIQ_User_Controls/Find_Customer_Control/FinIQ_Find_Customer.ascx"
    TagName="FinIQ_Find_Customer" TagPrefix="UC_CustomerControl" %>
<%@ Register Src="../FinIQ_User_Controls/Fast_Find_Customer_Control/FinIQ_Fast_Find_Customer.ascx" TagName="FinIQ_Fast_Find_Customer" TagPrefix="uc" %>--%>

<%@ Register Src="~/FinIQ_User_Controls/Smart_Search_Customer_Control/FinIQ_Customer_SmartSearch.ascx" TagName="FinIQ_Customer_SmartSearch" TagPrefix="ucsmart1" %>
<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="dtControl" TagPrefix="dateCtrl" %>
<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl"
    TagPrefix="uc1" %>
<%@ Register Src="~/FinIQ_User_Controls/Smart_Search_Customer_Control/FinIQ_Customer_Profile_SmartSearch.ascx"
    TagName="FinIQ_Customer_Profile_SmartSearch" TagPrefix="ucsmart" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%-- <link href="App_Themes/Style1.css" rel="stylesheet" type="text/css" />--%>
    <style type="text/css">
        .center-div {
            position: absolute;
            margin: auto;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            width: 100px;
            height: 100px;
            background-color: #ccc;
            border-radius: 3px;
        }

        #mask {
            position: fixed;
            left: 0px;
            top: 0px;
            z-index: 4;
            opacity: 0.4;
            -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; /* first!*/
            filter: alpha(opacity=40); /* second!*/
            background-color: gray;
            display: none;
            width: 100%;
            height: 100%;
        }

        #mask1, #mask2 {
            position: fixed;
            left: 0px;
            top: 0px;
            z-index: 4;
            opacity: 0.4;
            -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"; /* first!*/
            filter: alpha(opacity=40); /* second!*/
            background-color: gray;
            display: none;
            width: 100%;
            height: 100%;
        }

        .bgColor {
            background-color: #FFFFAF;
        }



        .divLoading {
            position: absolute;
            left: 430px;
            top: 115px !important;
        }

        .HeaderOrder {
            font: normal 13px/28px verdana !important;
            color: #000000 !important;
            height: 28px;
            background-color: #FFFFFF;
        }

        .Underline {
            height: 6px;
            background-color: #FFFFFF;
            border: none 0px #DDDDDD;
            border-bottom: solid 1px #DDDDDD;
            width: 1560px;
        }

        .starSpace {
            margin-left: 10px;
        }

        .labels {
            width: 190px;
            /*height: 20px;*/
        }

        .labelsShort {
            width: 126px;
            /*height: 20px;*/
        }

        .labelsValue {
            width: 350px;
            /*height: 20px;*/
        }

        .labelsValueShort {
            width: 310px;
            /*height: 20px;*/
        }

        .gvAccountHolder, .gvAccountHolderHeaders, .gvAccountHolderItems {
            border: solid 1px #DDDDDD !important;
            border-collapse: collapse !important;
        }

        .gvAccountHolderHeaders, .gvAccountHolderItems {
            font-weight: normal !important;
            height: 24px;
        }

        .gvAccountHolderItems {
            padding: 6px !important;
        }

        td {
            vertical-align: middle;
        }

        .FilterPad {
            padding: 0px 20px 10px 20px;
        }

        .width10 {
            width: 16px;
        }

        .width11 {
            width: 10px;
        }

        .buttons {
            width: 90px;
        }
        /*start- change done by Shreya A. on 28/09/2018.*/
        .msgAbsolute { 
            position : static !important;
        }
        /*end-change done by Shreya A. on 28/09/2018.*/

        /*#ctl00_MainContent_DtSCA1_divDate {
            position:absolute;left:600px !important;top:100px !important;
        }
        #ctl00_MainContent_DtSCA2_divDate {
            position:absolute;left:600px !important;top:130px !important;
        }
        #ctl00_MainContent_DtSCA3_divDate {
            position:absolute;left:600px !important;top:154px !important;
        }*/
        #ctl00_MainContent_DtSCA1_divDate {
            position: fixed !important;
        }

        #ctl00_MainContent_DtSCA2_divDate {
            position: fixed !important;
        }

        #ctl00_MainContent_DtSCA3_divDate {
            position: fixed !important;
        }

        .CenterAlign {
            text-align: center;
        }

        .HeaderPopup {
            font: normal 13px/28px verdana !important;
            color: #4d4d4c !important;
            height: 28px;
            background-color: #F2F2F3;
            padding: 3px;
            text-align: center;
            border-radius: 3px;
        }

        .btnClose {
            font: normal 12px/28px verdana !important;
            color: #4d4d4c !important;
            text-decoration: none;
            cursor: pointer;
            padding-right: 5px;
        }

        .FilterpadPopup {
            padding: 0px 6px 0px 6px;
        }

        .ddlWidth {
            width: 280px;
        }

        .pnlPopupMaster {
            z-index: 111;
            background-color: White;
            position: absolute;
            left: 35%;
            top: 35%;
            border: solid 1px #dddddd;
            border-radius: 5px;
            padding: 5px;
            display: none;
            /*Height:190px;
             Width:500px;*/
        }

        .labelsPnlPopup {
            width: 84px;
        }

        .namesPnlPopup {
            width: 180px;
        }

        .datesPnlPopup {
            width: 160px;
        }

        .pnlpopupsignature {
            z-index: 50;
            background-color: #FFFFFF;
            width: auto;
            height: auto;
            position: absolute;
            left: 35%;
            top: 35%;
            border: solid 1px #dddddd;
            border-radius: 5px;
            padding: 5px;
            display: none;
        }

        .mandatory {
        }

        #ctl00_MainContent_FindCustSmartOrderEntry_ddlCustSearch {
            width: 204px !important;
        }

        .tdPaddingRight {
            padding-right: 60px !important;
        }
        .paddingRight {
            padding-right: 26px !important;

        }
        .tdPaddingRight1 {
             padding-right: 68px !important;
        }
        .btn_padding {
            padding-right: 10px;
            padding-top: 5px;
        }
    </style>

    <style type="text/css">
body
{
    margin: 0;
    padding: 0;
    height: 100%;
}
.modal
{
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: black;
    z-index: 100;
    opacity: 0.8;
    filter: alpha(opacity=60);
    -moz-opacity: 0.8;
    min-height: 100%;
}
#divImage
{
    display: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    background-color: White;
    height: 550px;
    width: 600px;
    padding: 3px;
    border: solid 1px black;
}


        .fileuploadExcel {
            Width: 210px !important;
            Height: 26px !important;
            margin-right: 5px !important;
            margin-top: -10px !important;
        }
</style>

    <script type="text/javascript">
    function LoadDiv(url) {
    var img = new Image();
    var bcgDiv = document.getElementById("divBackground");
    var imgDiv = document.getElementById("divImage");
    var imgFull = document.getElementById("imgFull");
    var imgLoader = document.getElementById("imgLoader");
    imgLoader.style.display = "block";
    img.onload = function () {
        imgFull.src = img.src;
        imgFull.style.display = "block";
        imgLoader.style.display = "none";
   };
    img.src = url;
    var width = document.body.clientWidth;
    if (document.body.clientHeight > document.body.scrollHeight) {
        bcgDiv.style.height = document.body.clientHeight + "px";
    }
    else {
        bcgDiv.style.height = document.body.scrollHeight + "px";
    }
    imgDiv.style.left = (width - 650) / 2 + "px";
    imgDiv.style.top = "20px";
    bcgDiv.style.width = "100%";
 
    bcgDiv.style.display = "block";
    imgDiv.style.display = "block";
    return false;
}
function HideDiv() {
    var bcgDiv = document.getElementById("divBackground");
    var imgDiv = document.getElementById("divImage");
    var imgFull = document.getElementById("imgFull");
    if (bcgDiv != null) {
        bcgDiv.style.display = "none";
        imgDiv.style.display = "none";
        imgFull.style.display = "none";
    }
}
</script>
    <%--<script lang="javascript" src="../FinIQJS/FinIQCommon.js" type="text/javascript"></script>--%>

    <%--<script lang="javascript" src="../FinIQ_Fixing_Process/FixingResult.js" type="text/javascript" ></script>--%>

    <script type="text/javascript">
        function ShowPopup1() {
            $('#mask1').show();
            $('#<%=pnlpopupsignature.ClientID%>').show();
        }
        function HidePopupSignature() {
            $('#mask1').hide();
            $('#<%=pnlpopupsignature.ClientID%>').hide();
        }
        //$(".btnClose1").live('click', function () {
        //    HidePopup();
        //});
    </script>


    <script type="text/javascript">
        function RefreshParent() {
            // alert('account');
            //
            $("#HiddenField1").val(Math.random());
            //document.getElementById("HiddenField1").value = Math.random();
            // $('#HiddenField1').val(myValue).trigger('change');
            __doPostBack('HiddenField1_ValueChanged', 'ValueChanged');
            //window.close();
        }
    </script>


    <script type="text/javascript">
        function CheckBoxCheck(rb) {
            var gv = document.getElementById("<%=gvAccountHolder.ClientID%>");
            var chk = gv.getElementsByTagName("input");
            var row = rb.parentNode.parentNode;
            for (var i = 0; i < chk.length; i++) {
                if (chk[i].type == "checkbox") {
                    if (chk[i].checked && chk[i] != rb) {
                        chk[i].checked = false;
                        break;
                    }
                }
            }
        }
    </script>

    <script type="text/javascript">

        function AllowOnlyNumericValues() {
            var key = window.event.keyCode;

            if (key > 47 && key < 58)
                return;
            else
                return false;
        }


        function OpenSSI(txtcustomerid, OrderEntryMode,EntityID,EntityName, sMode) {
            var customerid = document.getElementById(txtcustomerid).value;
            var myWindow = window.open('../CustomerAccount/SSI/SSI.aspx?customerid=' + customerid + '&AccountMode=' + OrderEntryMode + '' + '&EntityID=' + EntityID + '' + '&EntityName=' + EntityName + '' + '&Mode=' + sMode + '', 'SSI', 'scrollbars=yes,resizable=yes,menubar=0,status=1,width=1570,height=600,left=100,location=0');
            myWindow.focus();

          if (window.focus) {
              myWindow.focus();
          }

          if (!myWindow.closed) {
              myWindow.focus();
          }
        }

        //added by RutujaH on 16.07.2018
        //code changes n 10-May-2021 || MohiniM || Popup size change -start
        function OpenPortfolio(txtcustomerid) {
            var customerid = document.getElementById(txtcustomerid).value;
            //window.open('../FinIQ_PortFolio_Setup/PortFolio_Setup.aspx?customerid=' + customerid + '&Mode=New', 'Portfolio', 'scrollbars=yes,resizable=yes,menubar=0,status=1,width=1200,height=600');
			window.open('../FinIQ_PortFolio_Setup/PortFolio_Setup.aspx?customerid=' + customerid + '&Mode=New&Master_Popup=POPUP', 'Portfolio', 'scrollbars=yes,resizable=yes,menubar=0,status=1,width=1255,height=860,left=50');
	   }
        //code changes n 10-May-2021 || MohiniM || Popup size change -start
        //Added on 24-Jan-2021.  C:\inetpub\wwwroot\FinIQWebApp\FinIQ_CustomerSignatoryDetails\FinIQ_CustomerSignatoryDetails.aspx
        function OpenSignatoryDetails(txtcustomerid) {
            var customerid = document.getElementById(txtcustomerid).value;
            window.open('../FinIQ_CustomerSignatoryDetails/FinIQ_CustomerSignatoryDetails.aspx?customerid=' + customerid +'', 'Signatories', 'scrollbars=yes,resizable=yes,menubar=0,status=1,width=1200,height=600');
        }
        //C:\inetpub\wwwroot\FinIQWebApp\CustomerAccount\DisplyaOnlineDetails.aspx.vb
        // function OpenOnlineDetails(txtcustomerid, OrderEntryMode, sMode, count) {            
        //var customerid = document.getElementById(txtcustomerid).value; 
        // var btnTest = document.getElementById("<%= hdnRowCount.ClientID%>");
        //// alert(btnTest.value);
        // if (btnTest.value > 0) {


        //   window.open('../CustomerAccount/DisplyaOnlineDetails.aspx?customerid=' + customerid + '&AccountMode=' + OrderEntryMode + '' + '&Mode=' + sMode + '', 'SSI', 'scrollbars=yes,resizable=yes,menubar=0,status=1,width=800,height=300');
        //}
        // }

        function textboxMultilineMaxNumber(txt, maxLen) {
            try {
                if (txt.value.length > (maxLen - 1)) return false;
            }
            catch (e) {
            }

            return true;
        }

        function OpenMultiAddress(txtcustomerid, AccountMode) {

            var customerid = document.getElementById(txtcustomerid).value;
            window.open('../CustomerMultipleAdress/frmCustomer_Multipal_Address.aspx?CustId=' + customerid + '&AccountMode=' + AccountMode + '', 'SecondaryAddress', 'scrollbars=no,resizable=yes,menubar=0,status=1,width=500,height=550');

        }
        function OpenProductKYC(txtcustomerid, cbocuststatus, hdnRFQ, lblError, cboPC, sAccMode, sMode) {

            var curProductCategory = '';  //document.getElementById(cboPC).options[document.getElementById(cboPC).selectedIndex].text; 
            var customerid = document.getElementById(txtcustomerid).value;
            var ScreenMode = "EDIT";
            if (customerid == "") {
                customerid = document.getElementById(hdnRFQ).value;
                ScreenMode = "NEW";
                if (customerid == "") {
                    document.getElementById(lblError).innerTEXT = "Please enter account holder deatails first."
                    return 0;
                }
            }
            var SignAuth = "";
            var mode = "ACCOUNT";

            SignAuth = document.getElementById(cbocuststatus).value;
            if ((SignAuth == "JOINT") || (SignAuth == "Joint") || (SignAuth == "joint")) {
                window.open('../Product_KYC_Master/FinIQ_Customer_Product_KYC.aspx?Customer_ID=' + customerid + '&SignAuth=' + SignAuth + '&ScreenMode=' + ScreenMode + '&Mode=' + mode + '&ProductCategory=' + curProductCategory + '&AccountMode=' + sAccMode + '', '_blank', 'height=650, width=780,status= no, resizable=yes, scrollbars=yes, toolbar=no,location=no,menubar=no,left=20');
            }
            else {
                window.open('../Product_KYC_Master/FinIQ_Customer_Product_KYC.aspx?Customer_ID=' + customerid + '&SignAuth=' + SignAuth + '&ScreenMode=' + ScreenMode + '&Mode=' + mode + '&ProductCategory=' + curProductCategory + '&AccountMode=' + sAccMode + '', '_blank', 'height=650, width=780,status= no, resizable=yes, scrollbars=yes, toolbar=no,location=no,menubar=no,left=20');
            }
        }

        function OpenDormancy(txtcustomerid) {
            var customerid = document.getElementById(txtcustomerid).value;
            window.open('../Customer_Dormancy/Customer_Dormancy.aspx?Customer_Id=' + customerid + '', 'Customer_Dormancy', 'scrollbars=no,resizable=no,menubar=0,status=1,width=700,height=200');

        }
        function OpenSSITagMapping() {
            var mode = "Popup";
            window.open('../SwiftSSI_Tag_Mapping/SwiftSSI_Tag_Mapping.aspx?mode='+ mode +'', 'SwiftSSI_Tag_Mapping', 'scrollbars=no,resizable=no,menubar=0,status=1,width=700,height=200');
        }
        function OpenCustomerProductMap(Pan, Name, Mode, AccountTypeId, sAccMode, sMode) {
            var sAccountType = document.getElementById(AccountTypeId).options[document.getElementById(AccountTypeId).selectedIndex].text;
            var customerid = document.getElementById(Pan).value;
            var customername = document.getElementById(Name).value;
           window.open('../CustomerProductMap/CustomerProductMap.aspx?CustomerPan=' + customerid + '&CustomerName=' + customername + '&Mode=' + sMode + '&AccountType=' + sAccountType + '&AccountMode=' + sAccMode + '' + '&AccSetupMode=' + sMode + '', 'Customer_Product_Map', 'scrollbars=yes,resizable=yes,menubar=0,status=1,width=600,height=500').focus();
          
        }


        function KeysShortcut() {
            if (event.keyCode == 13)// Enter
            {
                document.getElementById('<%= btnPanNo.ClientID %>').click();
            }
        }

    </script>

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"></asp:ScriptManagerProxy>

    <asp:UpdatePanel ID="updpnl_new" runat="server" UpdateMode="Always">
        <ContentTemplate>

            <div id="mask1">
            </div>
            <input type="hidden" id="popupFlag" runat="server" value="hide" enableviewstate="true" />
            <input type="hidden" id="popupOnlineCIF" runat="server" value="hide" enableviewstate="false" />
          
            <asp:Panel ID="pnlpopupsignature" runat="server" CssClass="pnlpopupsignature">
                 
                <table style="width: auto; height: auto;" border="0">
                    <tr style="" class="btn">
                        <%--background-color: #0924BC--%>
                        <td colspan="6" style="text-align: center;" class="HeaderPopup">Signature Details
                    <a id="A1" style="float: right;" class="btnClose" href="#" onclick="HidePopupSignature()">X</a>
                        </td>
                    </tr>
                    <tr>
                        <td  style="height: 6px;"></td>
                    </tr>
                    <tr>
                        <td  style="text-align: center;">
                            <asp:Label ID="lblValidateSignature" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width :40px;">Signature Name
                        </td>
                        <td style="width :40px;">Doc Type
                        </td>
                        <td style="width :40px;">Doc No
                        </td>
                        <td style="width :40px;">Relationship
                        </td>
                         <td style="width :40px;padding-left: 20px;">Signature
                        </td>
                         <td style="width :40px;padding-left: 20px;">

                         </td>
                        
                    </tr>
                    <tr>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtSignatureName_Signature1" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:DropDownList ID="ddlDocType_Signature1" TabIndex="1" runat="server" Width="138px" CssClass="ddl">
                            </asp:DropDownList>
                            <%--   <asp:TextBox ID="txtDocType_Signature1" CssClass="txt" runat="server"></asp:TextBox>--%>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtDocId_Signature1" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtRelationship_Signature1" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;padding-left: 20px;">
                       <%--   <asp:LinkButton ID ="lnkbtn_ViewSignature1" runat ="server" Visible="true" Text ="View"></asp:LinkButton>--%>

                           <asp:ImageButton ID="ImageButton1" runat="server" 
                Width="25px" Height="25px" Style="cursor: pointer" OnClientClick="return LoadDiv(this.src);" />

                           </td>

                         <td style="width :40px;padding-left: 20px;">
                          <asp:FileUpload ID ="fileUpload1" type="file" name="clientfile" runat="server" class="fileuploadExcel" size="55"  EnableViewState="true"></asp:FileUpload>
                        </td>
                    </tr>
                    <tr>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtSignatureName_Signature2" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:DropDownList ID="ddlDocType_Signature2" TabIndex="1" runat="server" Width="138px" CssClass="ddl">
                            </asp:DropDownList>
                            <%--<asp:TextBox ID="txtDocType_Signature2" CssClass="txt" runat="server"></asp:TextBox>--%>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtDocId_Signature2" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtRelationship_Signature2" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                       <td style="width :40px;padding-left: 20px;">
                          <%--<asp:LinkButton ID ="lnkbtn_ViewSignature2" runat ="server" Visible="true" Text ="View"></asp:LinkButton>--%>
                                         <asp:ImageButton ID="ImageButton2" runat="server" 
                Width="25px" Height="25px" Style="cursor: pointer" OnClientClick="return LoadDiv(this.src);" />
                        </td>
                         <td style="width :40px;padding-left: 20px;">
                          <asp:FileUpload ID ="fileUpload2" type="file" name="clientfile" runat="server" class="fileuploadExcel" size="55"   EnableViewState="true" ></asp:FileUpload>
                        </td>
                    </tr>
                    <tr>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtSignatureName_Signature3" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:DropDownList ID="ddlDocType_Signature3" TabIndex="1" runat="server" Width="138px" CssClass="ddl">
                            </asp:DropDownList>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtDocId_Signature3" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtRelationship_Signature3" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                       <td style="width :40px;padding-left: 20px;">
                         <%-- <asp:LinkButton ID ="lnkbtn_ViewSignature3" runat ="server" Visible="true" Text ="View"></asp:LinkButton>--%>
                                         <asp:ImageButton ID="ImageButton3" runat="server" 
                Width="25px" Height="25px" Style="cursor: pointer" OnClientClick="return LoadDiv(this.src);" />
                        </td>
                         <td style="width :40px;padding-left: 20px;">
                          <asp:FileUpload ID ="fileUpload3" type="file" name="clientfile" runat="server" class="fileuploadExcel" size="55"  EnableViewState="true" ></asp:FileUpload>
                        </td>
                    </tr>
                    <tr>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtSignatureName_Signature4" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:DropDownList ID="ddlDocType_Signature4" TabIndex="1" runat="server" Width="138px" CssClass="ddl">
                            </asp:DropDownList>
                            <%-- <asp:TextBox ID="txtDocType_Signature4" CssClass="txt" runat="server"></asp:TextBox>--%>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtDocId_Signature4" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                        <td style="width :40px;">
                            <asp:TextBox ID="txtRelationship_Signature4" CssClass="txt" runat="server"></asp:TextBox>
                        </td>
                         <td style="width :40px;padding-left: 20px;">
                         <%-- <asp:LinkButton ID ="lnkbtn_ViewSignature4" runat ="server" Visible="true" Text ="View"></asp:LinkButton>--%>
                                           <asp:ImageButton ID="ImageButton4" runat="server" 
                Width="25px" Height="25px" Style="cursor: pointer" OnClientClick="return LoadDiv(this.src);" />
                        </td>
                         <td style="width :40px;padding-left: 20px;">
                          <asp:FileUpload ID ="fileUpload4" type="file" name="clientfile" runat="server" class="fileuploadExcel" size="55"  EnableViewState="true"></asp:FileUpload>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6" style="height: 6px;"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <asp:Button ID="btnClearSignature" runat="server" Text="Clear" Width="138px" CssClass="btn" />
                        </td>
                        <td>
                            <asp:Button ID="btnApplySignature" runat="server" Text="Apply" Width="134px" CssClass="btn" />
                        </td>
                        <td></td>
                    </tr>
                </table>
                       
            </asp:Panel>
              

<div id="divBackground" class="modal">
</div>
<div id="divImage">
<table style="height: 100%; width: 100%">
    <tr>
        <td valign="middle" align="center">
            <img id="imgLoader" alt="" src="images/loader.gif" />
            <img id="imgFull" alt="" src="" style="display: none; height: 500px; width: 590px" />
        </td>
    </tr>
    <tr>
        <td align="center" valign="bottom">
            <input id="btnClose" type="button" value="close" onclick="HideDiv()" />
        </td>
    </tr>
</table>
</div>

            <div id="mask">
            </div>
            <asp:Panel ID="pnlpopup" runat="server" BackColor="White" Height="190px" Width="900px" Style="z-index: 111; background-color: White; position: absolute; left: 30%; top: 30%; border: outset 1px #CCCCCC; padding: 5px; display: none;">
                <table style="width: 100%; height: 100%;" class="FilterpadPopup" border="0">
                    <tr style="" class="btn">
                        <%--background-color: #0924BC--%>
                        <td colspan="3" class="HeaderPopup">Master Agreement no / SCA no Details
                   <a id="closebtn1" style="float: right;" class="btnClose" onclick="HidePopup()">X</a>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3" style="width: 45%; text-align: center;">
                            <asp:Label ID="LabelValidate" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <asp:Label ID="Label28" runat="server" CssClass="lblerror"></asp:Label>
                        </td>
                    </tr>
                    <tr class="">
                        <td>Issuer ID </td>
                        <td>Issuer Name </td>
                        <td>Agreement&nbsp;Date </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblissuerid1" runat="server" CssClass="lstUserName"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblbank1" runat="server" CssClass="lstUserName"></asp:Label>
                        </td>
                        <td>
                            <dateCtrl:dtControl ID="DtSCA1" runat="server" CalenderCss="btn1" TextBoxCss="txt" TextBoxSize="200px" Visible="true" SetDefaultDate="false" />

                        </td>

                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblissuerid2" runat="server" CssClass="lstUserName"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblbank2" runat="server" CssClass="lstUserName"></asp:Label>
                        </td>
                        <td>
                            <dateCtrl:dtControl ID="DtSCA2" runat="server" CalenderCss="btn1" TextBoxCss="txt" TextBoxSize="200px" Visible="true" SetDefaultDate="false" />
                        </td>

                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblissuerid3" runat="server" CssClass="lstUserName"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblbank3" runat="server" CssClass="lstUserName" Width="336px"></asp:Label>
                        </td>
                        <td>
                            <dateCtrl:dtControl ID="DtSCA3" runat="server" CalenderCss="btn1" TextBoxCss="txt" TextBoxSize="200px" Visible="true" DoPostBack="false" SetDefaultDate="false" />
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td style="padding-bottom: 3px; padding-left: 5px;">
                            <asp:Button ID="btnMasterSCAAggrementSave" runat="server" Text="Return to customer" Width="140px" OnClientClick="HidePopup()" />
                            <asp:Button ID="btnSCAMAsterSCAAggrementClose" runat="server" OnClientClick="HidePopup()" Text="Close" Width="80px" />
                        </td>
                        <td></td>
                    </tr>
                </table>
            </asp:Panel>

            <div id="mask2">
            </div>

            <asp:Panel ID="pnonline" runat="server" BackColor="White" Height="190px" Width="900px" Style="z-index: 111; background-color: White; position: absolute; left: 30%; top: 30%; border: outset 1px #CCCCCC; padding: 5px; display: none;">
                <table style="width: 100%; height: 100%;" class="FilterpadPopup" border="0">
                    <tr style="" class="btn">
                        <%--background-color: #0924BC--%>
                        <td colspan="3" class="HeaderPopup">CIF Details
                   <a id="A2" style="float: right; color: #000000; padding-right: 5px;" class="btnClose" onclick="HidePopupCIF2()">X</a>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <asp:GridView ID="GVOnlineSIBS" runat="server" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" Width="880px" AllowPaging="True" 
                                HeaderStyle-HorizontalAlign="Left" CssClass="gvAccountHolder">
                                <Columns>
                                    <asp:TemplateField HeaderText="Customer Name" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" Width="215px" runat="server" Text='<%#Eval("CustomerName")%>' CommandName="Select" />
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle Width="215px" HorizontalAlign="Center" CssClass="gvAccountHolderItems" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Id Type" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                        <ItemTemplate>
                                            <asp:Label ID="Label32" runat="server" Width="120px" Text='<%#Eval("Id_Type")%>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle Width="120px" CssClass="gvAccountHolderItems" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Id No" ItemStyle-Width="120px" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                        <ItemTemplate>
                                            <asp:Label ID="Label34" Width="120px" runat="server" Text='<%#Eval("Id_No")%>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="120px" CssClass="gvAccountHolderItems" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="CIF" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                        <ItemTemplate>
                                            <asp:Label ID="Label35" Width="120px" runat="server" Text='<%#Eval("CIF")%>' />
                                        </ItemTemplate>
                                        <ItemStyle Width="120px" CssClass="gvAccountHolderItems" />
                                    </asp:TemplateField>
                                </Columns>
                                <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                            </asp:GridView>
                        </td>
                        <td>
                            <asp:Label ID="lbldetails" runat="server" CssClass="lbl" ForeColor="Red"></asp:Label>
                            <asp:HiddenField ID="hdnRowCount" runat="server" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>

        </ContentTemplate>
        <Triggers>
          <%--  <asp:PostBackTrigger ControlID="fileUpload1" />
              <asp:PostBackTrigger ControlID="fileUpload2" />
              <asp:PostBackTrigger ControlID="fileUpload3" />
              <asp:PostBackTrigger ControlID="fileUpload4" />--%>
            <asp:PostBackTrigger ControlID="btnApplySignature" />
        </Triggers>
    </asp:UpdatePanel>

    <asp:UpdatePanel ID="Updatepanel1" runat="server">
        <ContentTemplate>
            <table cellspacing="0" cellpadding="0" width="1800px" class="FilterPad">
                <tr>
                    <td>
                        <%--<asp:Label ID="lblError" runat="server" CssClass="lblerror" Text="" Style="margin-left: 6px;"></asp:Label>--%>
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <table class="" id="tblMain" cellspacing="0">
                            <%--start--%>
                            <tr>
                                <%--Loading--%>
                                <td>
                                    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="Updatepanel1"
                                        DisplayAfter="0">
                                        <ProgressTemplate>
                                            <div class="divLoading">
                                                <img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...
                                                </span>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                                   
                                     <asp:Label ID="lblError" runat="server" CssClass="lblError msgAbsolute" Text="" Style="margin-left: 6px;"></asp:Label> <%--change done by Shreya A. on 28/09/2018.--%>
                                      <asp:Label ID="lblSuccess" runat="server" CssClass="lblSuccess msgAbsolute" Text="" Style="margin-left: 6px;"></asp:Label>
                                     <asp:Label ID="lblInfo" runat="server" CssClass="lblInfo msgAbsolute" Text="" Style="margin-left: 6px;"></asp:Label>
                                    <%--<asp:RegularExpressionValidator ID="regularexprforemaild" runat="server" CssClass="lblerror"
                                ErrorMessage="Please enter valid email id" SetFocusOnError="true" ControlToValidate="txtEmailId" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*?(\s*[,;]\s*\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*?)*"></asp:RegularExpressionValidator>--%>


                                    <%--   <asp:Label ID="lblError" runat="server" CssClass="lblerror" ForeColor="Red"></asp:Label>
                            <asp:Label ID="lblMsg" runat="server" CssClass="lblsuccess"></asp:Label>--%>
                                </td>
                            </tr>
                               <tr style ="height :10px;"></tr>
                                     <tr>
                                <td>
                                    <%--Buttons--%>
                                    <table>
                                        <tr>
                                            <%--       <td class="style3">
                                                    <UC_CustomerControl:FinIQ_Find_Customer ID="FinIQ_Find_Customer1"  runat="server" Visible="True" />
                                                </td>--%>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnAdd" TabIndex="61" CssClass="btn" runat="server" Text="New" Style="width: 70px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnUpdate" TabIndex="62" CssClass="btn" runat="server" Text="Edit" Style="width: 70px"></asp:Button>
                                            </td>

                                            <td class="btn_padding">
                                                <asp:Button ID="btnDelete" TabIndex="63" CssClass="btn" runat="server" Text="Close" Visible="True" Style="width: 70px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnActivate" TabIndex="63" CssClass="btn" runat="server" Text="Activate" Visible="True" Style="width: 70px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnSave" TabIndex="64" CssClass="btn" runat="server" Text="Save" Style="width: 70px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnCancel" TabIndex="65" CssClass="btn" runat="server" Text="Cancel" Style="width: 70px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding" runat ="server" id ="tdbtnSSI">
                                                <asp:Button ID="btnSSI" TabIndex="66" CssClass="btn" runat="server" Text="SSI" Style="width: 70px;"></asp:Button>
                                                <%--<Check:KYC ID="CheckKYC" runat="server" Visible="false" />--%>
                                            </td>

                                             <%--style ="width:85px;"added by RutujaH on 16.07.2018--%> 
                                            <td class="btn_padding" runat ="server" id ="tdbtnPortfolio">
                                                <asp:Button ID="btnPortfolio" TabIndex="66" CssClass="btn" runat="server" Text="Portfolio" Style="width:70px;"></asp:Button>
                                            </td>

                                          <td class="btn_padding" runat ="server" id ="tdbtnRiskEvaluation">
                                                <asp:Button ID="btnRiskEvaluation" CssClass="btn" runat="server" Text="Risk Evaluation" Style="width: 120px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding" id ="tdbtnOptional" runat ="server" >
                                                <asp:Button ID="btnOptional" TabIndex="67" CssClass="btn" runat="server" Text="Optional" Style="width: 70px;"></asp:Button>
                                                <%--<Check:KYC ID="CheckKYC" runat="server" Visible="false" />--%>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnSSITagMapping" TabIndex="67" CssClass="btn" runat="server" Text="SSI Tag Mapping" Style="width: 120px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnCustomerProductMap" CssClass="btn" runat="server" Text="Customer Product Map" Style="width: 150px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnReject" TabIndex="63" CssClass="btn" runat="server" Text="Reject" Style="width: 70px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnApprove" TabIndex="63" CssClass="btn" runat="server" Text="Approve" Style="width: 70px;"></asp:Button>
                                            </td>
                                            <td class="btn_padding">
                                                <%--   <asp:CheckBox ID="ChkAccreditedInvestor" Text="Accredited Investor" runat="server" Visible="True" />--%>
                                            </td>
                                            <td class="btn_padding">
                                                <asp:Button ID="btnMapToProdGrp" CssClass="btn" runat="server" Text=""></asp:Button>
                                            </td>
                                

                                        </tr>
                                    </table>
                                </td>
                                <%-- <table id="tblmode" runat="server"  cellpadding="0" cellspacing="0" border="0" width="100%" >
                                            <tr >
                                                <td class="lbl">&nbsp; Mode:
                                                    <asp:Label ID="lblLoginUserMode" runat="server" CssClass="lbl" ForeColor="Blue"></asp:Label>
                                                    &nbsp; Status:
                                                    <asp:Label ID="lblAccountStatus" runat="server" CssClass="lbl" ForeColor="Red"></asp:Label>
                                                    &nbsp; Input Source:
                                                    <asp:Label ID="lblAccountInputSource" runat="server" CssClass="lbl" ForeColor="Blue"></asp:Label>
                                                    <input type="hidden" id="hdnEducationalScore" name="hdnEducationalScore" runat="server" />
                                                    <input type="hidden" id="hdnTimeHorizonScore" name="hdnTimeHorizonScore" runat="server" />
                                                    <input type="hidden" id="hdnPI_Initial_YN" name="hdnPI_Initial_YN" runat="server" />
                                                    <input type="hidden" id="hdnPI_Initial_Date" name="hdnPI_Initial_Date" runat="server" />
                                                    <input type="hidden" id="hdnST_Initial_Date" name="hdnST_Initial_Date" runat="server" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="height: 5px">
                                          
                                            </tr>

                                        </table>
                                --%>
                            </tr>
                            <tr>
                                <td class="Underline"></td>
                            </tr>
                            <tr>
                                <%--Hidden fields--%>
                                <td>
                                    <input id="AcHolderClear" type="hidden" name="Hidden1" runat="server" />
                                    <input id="hdnAppMode" type="hidden" size="3" name="Hidden1" runat="server" /><input
                                        id="txtCusID" type="hidden" size="2" name="Hidden1" runat="server" /><input id="txtchkLRC"
                                            type="hidden" size="1" name="Hidden1" runat="server" /><input id="txtCusNameH" type="hidden"
                                                size="1" name="txtCusNameH" runat="server" /><input id="txtCusIDH" type="hidden"
                                                    size="1" name="Hidden1" runat="server" />
                                    <input id="lblCusName" type="hidden" size="2" name="Hidden1" runat="server" /><input
                                        id="hdncmbBook" type="hidden" size="2" name="Hidden1" runat="server" /><input id="hdnError"
                                            type="hidden" size="2" name="hdnError" runat="server" />
                                    <input type="hidden" id="hdnHoldMailDefined" name="hdnHoldMailDefined" runat="server" />
                                    <input type="hidden" id="hdnDifferentAddress" name="hdnDifferentAddress" runat="server" />
                                    <input id="hdnShortName" type="hidden"  name="hdnShortName" runat="server">
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <%--Mandatory Fields Labels--%>
                                            <td>
                                                <table>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label1" runat="server" CssClass="mandatory">*</asp:Label>
                                                            <asp:Label ID="Label71" runat="server" CssClass="HeaderOrder lblHeader" Style="margin: 0px;" Text="Mandatory Fields"> </asp:Label>
                                                        </td>

                                                    </tr>

                                                </table>

                                            </td>
                                        </tr>
                                    </table>
                                </td>

                            </tr>
                            <tr>
                                <%--Mandatory Fields Table--%>

                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <table>
                                                    <tr>
                                                        <td>
                                                            <tr>
                                                                <td class="labels">
                                                                    <asp:Label ID="lblEntity" runat="server" CssClass="lbl" Text="<%$ Resources:LocalizedText, Entity %>" Style="margin-left: 8px;"></asp:Label>
                                                                </td>
                                                                <td class="labelsValueShort">

                                                                    <asp:DropDownList ID="cboEntity" TabIndex="1" runat="server" AutoPostBack="true" CssClass="ddl" Width="270px">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td></td>
                                                                <td>
                                                                    <asp:CheckBox Visible="True" ID="chkActiveDeactive" TabIndex="4" runat="server"
                                                                        CssClass="lbl" Text=""></asp:CheckBox>
                                                                    <asp:Label ID="Label37" runat="server" CssClass="lbl">De-Activated</asp:Label>
                                                                </td>
                                                                <td colspan="4">

                                                                    <%--<asp:Label ID="lblstatus" runat="server" CssClass="lbl">Status:</asp:Label>--%>

                                                                    <asp:CheckBox ID="ChkAccreditedInvestor" Text="Accredited Investor" runat="server" Visible="True" />
                                                                     <asp:CheckBox ID="chkPEP" Text="PEP" runat="server" Visible="True" />
                                                                    <asp:CheckBox ID="chkFATCA" Text="FATCA" runat="server" Visible="True" />                                                                   
                                                                    <asp:Label ID="lblActiveDeactive" runat="server" CssClass="lbl"></asp:Label>
                                                                     <asp:CheckBox ID="chkCST" Text="CST" runat="server" Visible="True" />
                                                                     <asp:CheckBox ID="chkDAC" Text="DAC" runat="server" Visible="False" />
                                                                    
                                                                </td>
                                                               <%-- <td>
                                                                   
                                                                </td>--%>
                                                            </tr>
                                                            <tr>
                                                                <td class="labels"><%--style ="padding-top :10px ! important; "--%>
                                                                    <asp:Label ID="Label2" runat="server" CssClass="lbl" Text="PAN" Style="margin-left: 8px;"></asp:Label>
                                                                </td>
                                                                <td class="labelsValueShort">
                                                                    <%--  <ucsmart:FinIQ_Customer_SmartSearch ID="FindCust1" runat="server" OnUC_Postback="FindCust1_UC_Postback" Visible="false" />--%>
                                                                    <%-- <ucsmart:FinIQ_Customer_Profile_SmartSearch runat="server" id="FindCust1"   OnUC_Postback="FindCust1_UC_Postback" Visible="false" />--%>

                                                                    <asp:TextBox ID="txtPanNo" CssClass="txt" runat="server" Width="270px" MaxLength="11"></asp:TextBox>
                                                                    <ajaxToolkit:FilteredTextBoxExtender ID="ftbSelection" runat="server" FilterMode="ValidChars" ValidChars="0123456789" TargetControlID="txtPanNo" />
                                                                    <input id="hdnNAN" type="hidden" name="Hidden1" runat="server" />
                                                                    <asp:Button ID="btnPanNo" runat="server" Visible="true" CssClass="btnSearch" style="float :none !important;" />
                                                                    <%--<UC_CustomerControl:FinIQ_Find_Customer ID="" runat="server" />--%>                                              
                                                                </td>
                                                                <td class="width10"></td>
                                                                <td class="labels">
                                                                    <asp:Label ID="lblAccStatus" runat="server" CssClass="lbl" Text="Sub Status"></asp:Label>
                                                                </td>
                                                                <td class="labelsValue">

                                                                    <asp:DropDownList ID="cboAccStatus" TabIndex="2" Enabled="False" CssClass="ddl" runat="server" Style="width: 270px !important">
                                                                        <asp:ListItem Value="ACTIVE">ACTIVE</asp:ListItem>
                                                                        <asp:ListItem Value="CLOSED">CLOSED</asp:ListItem>
                                                                        <asp:ListItem Value="DECEASED">DECEASED</asp:ListItem>
                                                                        <asp:ListItem Value="PENDING">PENDING</asp:ListItem>
                                                                        <asp:ListItem Value="SUSPEND">SUSPEND</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>

                                                                <td>
                                                                    <asp:CheckBox Visible="False" ID="chkVerified" TabIndex="3" runat="server" CssClass="lbl"
                                                                        Text="Verified"></asp:CheckBox>

                                                                    <asp:Label ID="lblTcNo" runat="server" CssClass="lbl" Visible="false">TLT No</asp:Label><%--true--%>
                                                                    <asp:TextBox ID="txtTLTNo" runat="server" CssClass="txt" Width="100px" Visible="false"></asp:TextBox>

                                                                    <asp:Label ID="lblCIFPrimary" runat="server" CssClass="lbl" Visible="false">OCIS No </asp:Label><%--true--%>
                                                                    <asp:TextBox ID="txtCIFNo1" TabIndex="5" CssClass="txt" runat="server" Width="100px" Visible="false"></asp:TextBox><%--true--%>
                                                                    <input id="hdnCIFNo1" type="hidden" size="2" name="Hidden1" runat="server" visible="false" /><%--true--%>

                                                                    <asp:Label ID="lblUDF" runat="server" CssClass="lbl" Visible="false">UDF </asp:Label><%--true--%>
                                                                    <asp:DropDownList ID="ddlUDF" runat="server" Width="100px" Visible="false" CssClass="ddl"></asp:DropDownList><%--true--%>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="labels" style="display: none;">&nbsp;&nbsp;
                                                        <asp:Label ID="lblOrderEntryCustomerName" runat="server" CssClass="lbl" Text="Customer Name" Visible="false"></asp:Label></td>
                                                                <td class="labelsValueShort labels" colspan="2">

                                                                    <ucsmart1:FinIQ_Customer_SmartSearch runat="server" Style="white-space: nowrap;" SetTabIndex="1" ID="FindCustSmartOrderEntry" OnUC_Postback="FindCustSmart_UC_Postback" />
                                                                </td>
                                                                <td class="width10"></td>
                                                                <td class="labels">
                                                                    <asp:Label ID="lblVerfStatus" runat="server" CssClass="lbl">Verification Status</asp:Label>
                                                                </td>
                                                                <td class="labelsValue">
                                                                    <asp:DropDownList ID="ddlVerfStatus" TabIndex="2" CssClass="ddl" runat="server" Enabled="false" Style="width: 270px !important">
                                                                        <asp:ListItem Value="PENDING" Selected="True">PENDING</asp:ListItem>
                                                                        <asp:ListItem Value="APPROVED">APPROVED</asp:ListItem>
                                                                        <asp:ListItem Value="REJECTED">REJECTED</asp:ListItem>
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td>
                                                                    <asp:HiddenField ID="hdnCustName" runat="server" />
                                                                    <asp:HiddenField ID="hdnCustomerId" runat="server" />
                                                                    <asp:HiddenField ID="hdnOldCustName" runat="server" />
                                                                </td>
                                                            </tr>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>



                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="Underline"></td>
                            </tr>
                            <tr>
                                <%--Main Account Holder Label--%>
                                <td>
                                    <asp:Label ID="Label17" runat="server" CssClass="lblHeader HeaderOrder" Style="margin-left: 10px;">Main Account Holder </asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <%--Main Account Holder Table--%>
                                            <td>

                                                <table>

                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label12" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="Label13" runat="server" CssClass="lbl">Name</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtName" TabIndex="5" Width="270px" runat="server" CssClass="txt"
                                                                TextMode="MultiLine" onkeypress="return textboxMultilineMaxNumber(this,100)" Style="white-space: pre-wrap !important;" Wrap="true"></asp:TextBox>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="lblRemark" runat="server" CssClass="lbl">Remark</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtRemark" CssClass="txt" TabIndex="5" runat="server"
                                                                TextMode="MultiLine" Style="white-space: pre-wrap !important; width: 270px;" Wrap="true"></asp:TextBox>
                                                        </td>
                                                        <td>
                                                            <asp:Button ID="btnDormancyCheck" CssClass="btn" runat="server" Text="Dormancy Check"
                                                                Width="150px" Visible="false"></asp:Button>

                                                            <%--<td width="250px">
                                                    <asp:Label ID="lblCIFPrimary" runat="server" CssClass="lbl" Width="130px">OCIS No (Primary)</asp:Label>
                                                </td>--%>
                                                            <%--<td>
                                                    &nbsp;
                                                    <asp:TextBox ID="txtCIFNo1" TabIndex="5" CssClass="txt" runat="server" Width="90%"></asp:TextBox>
                                                    <input id="hdnCIFNo1" type="hidden" size="2" name="Hidden1" runat="server" />
                                                </td>--%>

                                                            <asp:CheckBox ID="chkTargetCustomer" runat="server"
                                                                CssClass="lbl" Text="Target Customer" Visible="false"></asp:CheckBox>

                                                        </td>

                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label14" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="Label15" runat="server" CssClass="lbl" Width="100px">ID Doc Type </asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList CssClass="ddl" ID="cboDocType" TabIndex="6" runat="server" AutoPostBack="true" Style="width: 270px"></asp:DropDownList>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="lblAdditionalInfo" runat="server" CssClass="lbl">Additional Info.</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtAddInfo" runat="server" CssClass="txt" Enabled="False" TabIndex="5" Style="width: 270px !important;"></asp:TextBox>
                                                            <input id="hdnAddInfo" type="hidden" size="2" name="hdnAddInfo" runat="server" />
                                                        </td>


                                                        <td>
                                                            <asp:Label ID="lblOCISJoint1" Visible="false" runat="server" CssClass="lbl">OCIS No (Joint 1)</asp:Label>

                                                            <asp:TextBox ID="txtCIFNo2" Visible="false" CssClass="txt" TabIndex="5" runat="server"></asp:TextBox>
                                                            <input id="hdnCIFNo2" type="hidden" size="2" name="Hidden1" runat="server" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label3" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="Label19" runat="server" CssClass="lbl">ID Doc No</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">

                                                            <asp:TextBox ID="txtdocNo" CssClass="txt" TabIndex="7" runat="server" Width="270px"></asp:TextBox>
                                                            <asp:TextBox ID="txtDocType" CssClass="txt" runat="server" Width="0px" Visible="false">
                                                            </asp:TextBox>
                                                            <%--   <asp:RegularExpressionValidator
                                                                ID="RegularExpressionValidator2" runat="server" CssClass="lblError" ControlToValidate="txtdocNo"
                                                                ErrorMessage="Not Valid"></asp:RegularExpressionValidator>--%>
                                                            <asp:Button ID="btn_ACHolder" CssClass="btn" runat="server" Text="A/C Holder LookUp"
                                                                Width="150px" Visible="false"></asp:Button>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels"></td>
                                                        <td class="labelsValue">
                                                            <asp:Label ID="lblFormat1" runat="server" CssClass="lbl"></asp:Label>
                                                            <asp:Button ID="btn_Signature" CssClass="btn" Visible="true" runat="server" Text="Signatories"
                                                                Style="Width: 270px;"></asp:Button>
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblOCISJoint2" runat="server" Visible="false" CssClass="lbl">OCIS No (Joint 2)</asp:Label>

                                                            <asp:TextBox ID="txtCIFNo3" Visible="false" CssClass="txt" TabIndex="5" runat="server" Width=""></asp:TextBox>
                                                            <input id="hdnCIFNo3" type="hidden" size="2" name="Hidden1" runat="server" />
                                                            <asp:Label ID="lblOCISJoint3" runat="server" Visible="false" CssClass="lbl">OCIS No (Joint 3)</asp:Label>
                                                            <asp:TextBox ID="txtCIFNo4" CssClass="txt" TabIndex="5" Visible="false" runat="server" Width=""></asp:TextBox>
                                                            <input id="hdnCIFNo4" type="hidden" size="2" name="Hidden1" runat="server" />
                                                            <asp:Label ID="lblOCISJoint4" runat="server" CssClass="lbl" Visible="False">OCIS No (Joint 4)</asp:Label>
                                                            <asp:TextBox ID="txtCIFNo5" runat="server" CssClass="txt" TabIndex="5" Visible="False"></asp:TextBox>
                                                            <input id="hdnCIFNo5" type="hidden" size="2" name="Hidden1" runat="server" />
                                                        </td>
                                                    </tr>
                                                    <%-- <tr>
                                                        <td colspan="6" class="Underline"></td>
                                                    </tr>--%>
                                                </table>

                                            </td>
                                        </tr>
                                    </table>
                                </td>

                            </tr>
                            <tr>
                                <td class="Underline"></td>
                            </tr>
                            <tr id="trJAH" runat="server" visible="false">
                                <td class="">
                                    <%--Joint Account Holder label--%>
                                    <asp:Label ID="Label16" runat="server" CssClass="HeaderOrder lblHeader">Joint Account Holders</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%--Joint Account Holder Panel--%>
                                    <asp:Panel ID="pnlJAh" runat="server" Visible="false">
                                        <table class="">
                                            <tr>
                                                <td>
                                                    <table>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="Label22" runat="server" CssClass="lbl">Name</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtJACName" CssClass="txt" TabIndex="10" runat="server" Width="270px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="Label23" runat="server" CssClass="lbl">ID/Doc Type</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtJACDocType" CssClass="txt" TabIndex="11" runat="server" Width="270px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="Label24" runat="server" CssClass="lbl">ID/Doc No</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtJACDocNo" CssClass="txt" TabIndex="12" runat="server" Width="270px"></asp:TextBox>
                                                                <asp:Button ID="btn_Add" runat="server" CssClass="btn" Text="Add" Visible="true"></asp:Button>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:CheckBox Visible="false" ID="chkEitherToSign" TabIndex="3" runat="server" CssClass="lbl" ValidationGroup="" Text="Either To Sign"></asp:CheckBox>
                                                            </td>
                                                            <td></td>
                                                        </tr>
                                                    </table>

                                                </td>
                                                <td>
                                                    <table id="table2" cellspacing="0" cellpadding="0" rules="groups" runat="server" visible="false"
                                                        class="bgColor" width="650px">
                                                        <tr>
                                                            <td colspan="5">
                                                                <asp:Label ID="Label51" runat="server" CssClass="bgColor lbl">Account Holders for Account Creation</asp:Label>
                                                                <asp:Button ID="btnClear" runat="server" CssClass="btn" Text="Clear"></asp:Button>
                                                                <asp:Button ID="btnJointBack" runat="server" CssClass="btn" Text="Apply"></asp:Button>
                                                                <asp:Button ID="btnJointClose" runat="server" CssClass="btn" Text="Close"></asp:Button>
                                                                <asp:Label ID="lblStep3" runat="server" CssClass="lbl bgColor" ForeColor="Red" Text=""></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="5">
                                                                <asp:Label ID="Label10" runat="server" CssClass="bgColor lbl">AC Type</asp:Label>
                                                                <asp:DropDownList ID="cboAcType" runat="server" AutoPostBack="True" CssClass="ddl">
                                                                </asp:DropDownList>
                                                                <input id="hdnlblJoint1" type="hidden" size="1" name="Hidden1" runat="server" /><input
                                                                    id="hdnlblJoint2" type="hidden" size="1" name="Hidden1" runat="server" /><input id="hdnlblJoint3"
                                                                        type="hidden" size="1" name="Hidden1" runat="server" /><input id="hdnlblJoint4" type="hidden"
                                                                            size="1" name="Hidden1" runat="server" />
                                                                <asp:Label ID="lblStep1" runat="server" CssClass="lbl bgColor" ForeColor="Red" Text='Step 1: Select "AC Type"'></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td></td>
                                                            <td>
                                                                <asp:Label ID="Label26" runat="server" CssClass="bgColor lbl">Name</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="Label25" runat="server" CssClass="bgColor lbl">Id / Doc Type</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="Label18" runat="server" CssClass="bgColor lbl">Id / Doc No</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="Label36" runat="server" CssClass="bgColor lbl">OCIS No</asp:Label>
                                                                <asp:Label ID="lblStep2" runat="server" CssClass="lbl bgColor" ForeColor="Red" Text='Step 2: Enter OCIS No'></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="Label6" runat="server" CssClass="bgColor lbl">M</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblJoint1" runat="server" CssClass="bgColor lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="lblIdDocType1" CssClass="ddl" runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="lblIdDocNo1" runat="server" CssClass="txt"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFetchCIF1" runat="server" CssClass="txt" AutoPostBack="True" Width="270px"
                                                                    TabIndex="102"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="Label7" runat="server" CssClass="bgColor lbl">1</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblJoint2" runat="server" noWrap="False" CssClass="bgColor lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="lblIdDocType2" CssClass="ddl" runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="lblIdDocNo2" runat="server" CssClass="txt"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFetchCIF2" runat="server" CssClass="txt" AutoPostBack="True" Width="270px"
                                                                    TabIndex="103"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="Label8" runat="server" CssClass="bgColor lbl">&nbsp;2</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblJoint3" runat="server" CssClass="bgColor lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="lblIdDocType3" CssClass="ddl" runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="lblIdDocNo3" runat="server" CssClass="txt"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFetchCIF3" runat="server" CssClass="txt" AutoPostBack="True" Width="270px"
                                                                    TabIndex="104"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <asp:Label ID="Label9" runat="server" CssClass="bgColor lbl">&nbsp;3</asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblJoint4" runat="server" CssClass="bgColor lbl"></asp:Label>
                                                            </td>
                                                            <td>
                                                                <asp:DropDownList ID="lblIdDocType4" CssClass="ddl" runat="server">
                                                                </asp:DropDownList>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="lblIdDocNo4" runat="server" CssClass="txt"></asp:TextBox>
                                                            </td>
                                                            <td>
                                                                <asp:TextBox ID="txtFetchCIF4" runat="server" CssClass="txt" AutoPostBack="True" Width="270px"
                                                                    TabIndex="105"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2" align="center">
                                                                <asp:Label ID="Label33" runat="server" CssClass="bgColor lbl">Additional Info</asp:Label>
                                                            </td>
                                                            <td colspan="3">
                                                                <asp:TextBox ID="txtAdditionalInfo" CssClass="txt" Enabled="False" runat="server"
                                                                    MaxLength="100" Width="270px"></asp:TextBox>
                                                            </td>
                                                        </tr>
                                                        <%--  <tr>
                                                            <td class="Underline"></td>
                                                        </tr>--%>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>

                            <tr id="trSignD" runat="server" visible="false">
                                <%-- <td>
                                    <table id="SG_details" border="0" cellpadding="0" cellspacing="0" visible="true">
                                        <tr>--%>
                                <%--Signatory Details Label--%>
                                <td class="">
                                    <asp:Label ID="lblSignatoriesDetails" runat="server" CssClass="HeaderOrder lblHeader">Signatories Details </asp:Label>
                                </td>
                                <%--Signatory Details Table--%>
                                <td class="">
                                    <asp:Button ID="btnSGADD" runat="server" Text="ADD" CssClass="btn" Width="150px" />
                                </td>
                                <%--</tr>
                                    </table>
                                </td>--%>
                            </tr>
                            <tr>
                                <td>
                                    <%--Always visible false panels--%>
                                    <asp:Panel ID="pnlSGADD" runat="server" Visible="false">
                                        <%--true--%>
                                        <table>
                                            <tr>
                                                <td>Scheme
                                                </td>
                                                <td>CIF No
                                                </td>
                                                <td>Doc Type
                                                </td>
                                                <td>Name
                                                </td>
                                                <td>Date Of Birth
                                                </td>
                                                <td>Remarks
                                                </td>
                                                <td>Phone
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList ID="ddlSG_ADD_Scheme" runat="server" CssClass="ddl" Width="80px">
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    <asp:TextBox   ID="txtSG_ADD_CIF" AutoPostBack="True" runat="server"
                                                        Width="100px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblSG_ADD_DocType" runat="server" CssClass="lbl" Width="80px"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblSG_ADD_Name" runat="server" CssClass="lbl" Width="200px"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblSG_ADD_DOB" runat="server" CssClass="lbl" Width="80px"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtSG_ADD_Remarks" runat="server" CssClass="txt" Width="210px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblSG_ADD_Phone" runat="server" CssClass="lbl" Width="80px"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Button ID="btnSG_ADD_Apply" runat="server" Text="Apply" CssClass="btn" /><asp:Button
                                                        ID="btnSG_ADD_Cancel" runat="server" Text="Cancel" CssClass="btn" />
                                                </td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                                <td></td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlSGList" runat="server" Visible="true">
                                        <asp:GridView ID="gdSignatories" CssClass="Grid" runat="server" AllowSorting="False"
                                            AutoGenerateColumns="False" AutoGenerateSelectButton="False">
                                            <HeaderStyle CssClass="GridHeader" />
                                            <RowStyle CssClass="GridItem" />
                                            <AlternatingRowStyle CssClass="GridItem" />
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <Columns>
                                                <asp:CommandField ShowDeleteButton="True" ButtonType="Link" DeleteText="Delete" />
                                                <asp:BoundField DataField="Scheme_Alias" HeaderText="Scheme"></asp:BoundField>
                                                <asp:BoundField DataField="CIF" HeaderText="OCIS No"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Doc_Id" HeaderText="Doc Type"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Name" ItemStyle-Width="150" ItemStyle-Wrap="True" HeaderText="Name"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Birth_Date" HeaderText="Date Of Birth"></asp:BoundField>
                                                <asp:BoundField DataField="Remarks" HeaderText="Remarks" ItemStyle-Width="200" ItemStyle-Wrap="True"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Contact_1" HeaderText="Phone"></asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </asp:Panel>
                                </td>
                            </tr>

                            <tr id="trPAD" runat="server" visible="false">
                                <%-- <td>
                                    <table border="0" cellpadding="0" cellspacing="0" visible="false">
                                        <tr>--%>
                                <%--Power Of Attorney Label--%>
                                <td class="">
                                    <asp:Label ID="lblPowerOfAttorney" runat="server" CssClass="HeaderOrder lblHeader">Power Of Attorney Details </asp:Label>
                                </td>
                                <%--Power Of Attorney Table--%>
                                <td>
                                    <asp:Button ID="btnAddPA" runat="server" Text="ADD" CssClass="btn" Width="150px" />
                                </td>
                                <%--      </td>
                                        </tr>
                                    </table>--%>
                            </tr>
                            <tr>
                                <td>
                                    <%--Visible false panel--%>
                                    <asp:Panel ID="pnlPA_ADD" runat="server" Visible="false">
                                        <%--true--%>
                                        <table>
                                            <tr>
                                                <td>Scheme
                                                </td>
                                                <td>CIF No
                                                </td>
                                                <td>Doc Type
                                                </td>
                                                <td>Name
                                                </td>
                                                <td>Date Of Birth
                                                </td>
                                                <td>Remarks
                                                </td>
                                                <td>Phone
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DropDownList ID="ddlPA_ADD_Scheme" runat="server" CssClass="ddl" Width="80px">
                                                    </asp:DropDownList>
                                                </td>
                                                <td>
                                                    <asp:TextBox   ID="txtPA_ADD_CIF" CssClass="txt" AutoPostBack="True"
                                                        runat="server" Width="100px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblPA_ADD_DocType" runat="server" CssClass="lbl" Width="80px"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblPA_ADD_Name" runat="server" CssClass="lbl" Width="200px"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblPA_ADD_DOB" runat="server" CssClass="lbl" Width="80px"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox   ID="txtPA_ADD_Remarks" CssClass="txt" runat="server"
                                                        Width="210px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblPA_ADD_Phone" runat="server" CssClass="lbl" Width="80px"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Button ID="btnPA_ADD_Apply" runat="server" Text="Apply" CssClass="btn" />&nbsp;<asp:Button
                                                        ID="btnPA_ADD_Cancel" runat="server" Text="Cancel" CssClass="btn" />
                                                </td>
                                            </tr>
                                        </table>
                                    </asp:Panel>
                                    <asp:Panel ID="pnlPA_List" runat="server" Visible="true">
                                        <asp:GridView ID="gdCustomerDetails" CssClass="Grid" runat="server" AllowSorting="False"
                                            AutoGenerateColumns="False" AutoGenerateSelectButton="False">
                                            <HeaderStyle CssClass="GridHeader" />
                                            <RowStyle CssClass="GridItem" />
                                            <AlternatingRowStyle CssClass="GridItem" />
                                            <SelectedRowStyle CssClass="GridItemSelect" />
                                            <Columns>
                                                <asp:CommandField ShowDeleteButton="True" ButtonType="Link" DeleteText="Delete" />
                                                <asp:BoundField DataField="Scheme_Alias" HeaderText="Scheme"></asp:BoundField>
                                                <asp:BoundField DataField="CIF" HeaderText="OCIS No"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Doc_Id" HeaderText="Doc Type"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Name" ItemStyle-Width="150" ItemStyle-Wrap="True" HeaderText="Name"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Birth_Date" HeaderText="Date Of Birth"></asp:BoundField>
                                                <asp:BoundField DataField="Remarks" HeaderText="Remark" ItemStyle-Width="200" ItemStyle-Wrap="True"></asp:BoundField>
                                                <asp:BoundField DataField="AH_Contact_1" HeaderText="Phone"></asp:BoundField>
                                            </Columns>
                                        </asp:GridView>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%--Account Details Label--%>
                                    <asp:Label ID="Label27" runat="server" CssClass="lblHeader HeaderOrder" Style="margin-left: 10px;">Account Details</asp:Label>
                                    <%-- <asp:Label ID="Label55" runat="server" CssClass="background_gray lblHeader">Joint Account Holder Details </asp:Label>--%>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <%--Account Details Table--%>
                                    <table>
                                        <tr>
                                            <td>
                                                <table>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblTitleEngman" runat="server" CssClass="mandatory" EnableViewState="False" Width="10px" Visible="false">*</asp:Label>
                                                            <asp:Label ID="lblTitleEng" runat="server" Style="padding-left: 11px;" CssClass="lbl" EnableViewState="False" Visible="false">Document Id</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtTitleEng" TabIndex="31" runat="server" Enabled="False" Width="270px" Visible="false" CssClass="txt"></asp:TextBox>
                                                            <asp:TextBox ID="txtSearchCustomerId" runat="server" Enabled="true" Width="190px" CssClass="txt" Visible="false"></asp:TextBox>&nbsp;
                                                             <asp:Button ID="btnSearchDocID" runat="server" Text="Search" Width="70px" CssClass="btn" Visible="false" />
                                                            <asp:Label ID="lblCustomerType" runat="server" Visible="false"></asp:Label>
                                                        </td>


                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblAccountNameman" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="lblAccountName" runat="server" CssClass="lbl" EnableViewState="False">Name (ENG)</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtACName" runat="server" onkeypress="return textboxMultilineMaxNumber(this,100)" TabIndex="29" Width="270px" CssClass="txt"></asp:TextBox>
                                                        </td>

                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblcuststatman" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="lblcuststat" runat="server" CssClass="lbl" EnableViewState="False" Text="Cust Status/Sign Auth"></asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList ID="cboCustStat" TabIndex="30" runat="server" AutoPostBack="true" CssClass="ddl" Style="Width: 270px !important">
                                                            </asp:DropDownList>
                                                        </td>

                                                    </tr>
                                                    <tr id="trTitleTH" runat="server" visible="false">
                                                        <td class="labels">
                                                            <asp:Label ID="lblTitleTHman" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="lblTitleTH" runat="server" CssClass="lbl" EnableViewState="False">Title (TH)</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtTitleTH" runat="server" Enabled="False" Width="270px" CssClass="txt"></asp:TextBox>

                                                        </td>

                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblPrintNameLine1man" runat="server" CssClass="mandatory" EnableViewState="False"  Width="7px" >*</asp:Label>
                                                            <asp:Label ID="lblPrintNameLine1" runat="server" CssClass="lbl" EnableViewState="False">Print Name Line1</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtPrintLine1" runat="server" Enabled="False" TabIndex="31" Width="270px" CssClass="txt"></asp:TextBox>
                                                        </td>

                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblPrintNameLine2man" runat="server" CssClass="mandatory" EnableViewState="False" Width="7px">*</asp:Label>
                                                            <asp:Label ID="lblPrintNameLine2" runat="server" CssClass="lbl" EnableViewState="False">Print Name Line2</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtPrintLine2" CssClass="txt" TabIndex="32" Width="270px"
                                                                Enabled="False" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>

                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblcustgrpman" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="lblcustgrp" runat="server" CssClass="lbl" EnableViewState="False" Visible="false">Cust Group/ARM</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList ID="cboGroup" runat="server" TabIndex="34" CssClass="ddl" Visible="false" Style="width: 270px !important">
                                                            </asp:DropDownList>
                                                        </td>

                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblLanguageman" runat="server" CssClass="mandatory" EnableViewState="False" Width="7px">*</asp:Label>
                                                            <asp:Label ID="lblLanguage" runat="server" CssClass="lbl" EnableViewState="False">Language</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList ID="cboLanguage" CssClass="ddl" TabIndex="35" Style="width: 270px !important"
                                                                runat="server">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblAccountopendateman" runat="server" CssClass="mandatory" EnableViewState="False">*</asp:Label>
                                                            <asp:Label ID="lblAccountOpendate" runat="server" CssClass="lbl" EnableViewState="False">Account Open Date</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <dateCtrl:dtControl ID="ctlAccountOpenDate" runat="server" CalenderCss="btn1" Disabled="True" TextBoxCss="txt" TextBoxSize="270px" />
                                                        </td>
                                                    </tr>
                                                     <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblshortnameman" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                            <asp:Label ID="lblShortName" runat="server" CssClass="lbl" EnableViewState="False" >Short Name</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtCustomerShortName" runat="server" CssClass="txt" 
                                                                Enabled="False" TabIndex="32" Width="270px"></asp:TextBox>&nbsp;
                                                        </td>
                                                    </tr>
                                                      <tr>
                                            <td class="labels">
                                                            <asp:Label ID="lblcollateraltype" runat="server" Style="margin-left: 12px;" Text="Collateral Type"  Visible ="false"/></td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList ID="ddlcollateraltype" runat="server" CssClass="ddl" TabIndex="65" Width="270px" Visible ="false">
                                                            </asp:DropDownList>
                                                        </td>
                                                          </tr>
                                                    <tr>
                                            <td class="labels">
                                                 <asp:Label ID="Label48" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px"></asp:Label>
                                                 <asp:Label ID="Label49" runat="server" CssClass="lbl" EnableViewState="False" text="Customer Residency"></asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                            <asp:CheckBox ID="chkCustomerResidency" runat="server" CssClass="chk" TabIndex="84" Width="10px">
                                               
                                                </asp:CheckBox>
                                            </td>
                                        </tr>


                                                     <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label67" runat="server" CssClass="lbl" EnableViewState="False" Visible="false">Product Category</asp:Label>
                                                             <asp:Label ID="lblExternalInternal" runat="server" CssClass="lbl" EnableViewState="False" Visible ="false" >External/Internal</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:Label ID="Label4" runat="server" CssClass="mandatory" EnableViewState="False"
                                                                Visible="false">*</asp:Label>
                                                            <asp:DropDownList ID="cboProductCategory" runat="server" CssClass="ddl" Enabled="False"
                                                                TabIndex="2" Visible="false">
                                                                <asp:ListItem Selected="true" Value="Public Offerings">Public Offerings</asp:ListItem>
                                                                <asp:ListItem Value="Private Offerings">Private Offerings</asp:ListItem>
                                                            </asp:DropDownList>
                                                             <asp:DropDownList ID="ddlInternalExternal" runat="server" CssClass="ddl" Enabled="False" Visible ="false" Style="width: 270px !important">
                                                                <asp:ListItem Selected="true" Value="EXTERNAL">EXTERNAL</asp:ListItem>
                                                                <asp:ListItem Value="INTERNAL">INTERNAL</asp:ListItem>
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                   
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblCIFNoman" runat="server" CssClass="mandatory" EnableViewState="False" Width="10px">*</asp:Label>
                                                            <asp:Label ID="lblCIFNo" runat="server" CssClass="lbl" EnableViewState="False">CIF No</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtCIFNo" runat="server" CssClass="txt"
                                                                Enabled="False" TabIndex="32" Width="270px"></asp:TextBox>&nbsp;
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblSubAccNoman" runat="server" CssClass="mandatory" EnableViewState="False" Width="10px">*</asp:Label>
                                                            <asp:Label ID="lblSubAccNo" runat="server" CssClass="lbl" EnableViewState="False">Sub A/C No</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtSubACNo" runat="server" CssClass="txt" Enabled="False"
                                                                TabIndex="32" Width="270px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                   

                                                </table>
                                            </td>
                                            <td class="width11"></td>
                                            <td>
                                                <table>
                                                    <tr visible="false">
                                                        <td width="800px">
                                                            <asp:GridView ID="gvAccountHolder" runat="server" Visible="false" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" Width="840px" AllowPaging="True" Autopostback="true"
                                                                HeaderStyle-HorizontalAlign="Left" CssClass="gvAccountHolder">

                                                                <Columns>
                                                                    <asp:TemplateField ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="chkInd" runat="server" AutoPostBack="true" EnableViewState="true" onclick="CheckBoxCheck(this);" />
                                                                        </ItemTemplate>
                                                                        <ItemStyle HorizontalAlign="Center" Width="50px" CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Seq" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:LinkButton ID="lblsr" Width="60px" runat="server" Text='<%#Eval("Sr")%>' CommandName="Edit" />
                                                                        </ItemTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" />
                                                                        <ItemStyle Width="60px" HorizontalAlign="Center" CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Name (ENG)" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAccount" runat="server" Text='<%#Eval("Name")%>' Width="262px"></asp:Label>
                                                                            <%-- <uc:FinIQ_Fast_Find_Customer ID="" runat="server" OnCustomer_Selected="FastProfileData_Customer_Selected" Visible="false"  /> --%>

                                                                            <ucsmart:FinIQ_Customer_Profile_SmartSearch runat="server" ID="FastProfileData" OnUC_Postback1="FastProfileData_UC_Postback" Visible="true" SetWidth="160" />

                                                                        </ItemTemplate>
                                                                        <ItemStyle Width="262px" CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Prime ID No" ItemStyle-Width="120px" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblIDNo" Width="120px" runat="server" Text='<%#Eval("IDNo")%>' />
                                                                        </ItemTemplate>
                                                                        <ItemStyle CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Prime ID Type" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblIDType" Width="80px" runat="server" Text='<%#Eval("IDType")%>' />
                                                                        </ItemTemplate>
                                                                        <ItemStyle CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="CIF No" ItemStyle-Width="180px" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblRMNo" Width="80px" runat="server" Text='<%#Eval("RMNo")%>' />
                                                                        </ItemTemplate>
                                                                        <ItemStyle CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="AH ID" Visible="false" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblAhId" Width="80px" runat="server" Text='<%#Eval("AHID")%>' />
                                                                        </ItemTemplate>
                                                                        <ItemStyle CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="CIN" Visible="false" ItemStyle-CssClass="gvAccountHolder" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblCIN" Width="80px" runat="server" Text='<%#Eval("CIN")%>' />
                                                                        </ItemTemplate>
                                                                        <ItemStyle CssClass="gvAccountHolderItems" />
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                                                            </asp:GridView>
                                                        </td>
                                                    </tr>






                                                </table>
                                                <table>
                                                   
                                                    <tr visible="false">
                                                        <td colspan ="4" class="btn_padding">
                                                            <asp:Button ID="btnFetchDetails" CssClass="btn" runat="server" Text="Apply" Width="70px" style="margin-right:10px"/>
                                                            <asp:Button ID="btnInsert_SCA_no" runat="server" Text="Insert SCA No" Width="135px" CssClass="btn" Enabled="false" Visible="false" style="margin-right:10px" />
                                                            <asp:Button ID="btnInst_mst_agreement" runat="server" Text="Insert Master Agreement No" Width="274px" CssClass="btn" Enabled="false" Visible="false" style="margin-right:10px"/>
                                                              <asp:Button ID="btnUpdateCustStatus" CssClass="btn" runat="server" Text="Update Cust Status" Width="120px" Visible ="false"  />
                                                        </td>
                                                    </tr>
                                                   
                                                    <tr>
                                                        <td class="CenterAlign tdPaddingRight">CIF No
                                                        </td>

                                                        <td class="CenterAlign paddingRight" style="width: 100px;">Document Id
                                                        </td>
                                                        <td class="CenterAlign tdPaddingRight1" style="width: 100px;">Document Type
                                                        </td>
                                                        <td class="CenterAlign" style="width: 284px;">Name
                                                        </td>
                                                    </tr>
                                                   
                                                    <caption>
                                                       
                                                       
                                                       
                                                        <tr>
                                                            <td class="AccDetailsTD">
                                                            </td>
                                                        </tr>
                                                        <caption>
                                                           
                                                            <tr>
                                                                <td class="tdPaddingRight">
                                                                    <asp:TextBox ID="TextBox3" runat="server" CssClass="txt" TabIndex="32" Width="122px"></asp:TextBox>
                                                                </td>
                                                                <td class="paddingRight">
                                                                    <asp:TextBox ID="txtOnlineDocId" runat="server" CssClass="txt" TabIndex="32" Width="140px"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:DropDownList ID="ddlOnlineDocType" runat="server"  AutoPostBack="true" CssClass="ddl" Enabled="true" TabIndex="2" Visible="true" Width="150px">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtOnlineAHName" runat="server" CssClass="txt" Style="padding-left: 100px" TabIndex="32" Width="272px"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:Button ID="btnCheckOnlineInterface" runat="server" CssClass="btn" Text="Check" Width="70px" style="margin-bottom:2px" />
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    <asp:TextBox ID="txtOnlineCIF2" runat="server" CssClass="txt" TabIndex="32" Width="122px"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtOnlineDocId2" runat="server" CssClass="txt" TabIndex="32" Width="140px"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:DropDownList ID="ddlOnlineDocType2" runat="server" CssClass="ddl" Enabled="true" TabIndex="2" Visible="true" Width="150px">
                                                                    </asp:DropDownList>
                                                                </td>
                                                                <td>
                                                                    <asp:TextBox ID="txtOnlineAHName2" runat="server" CssClass="txt" Style="padding-left: 100px" TabIndex="32" Width="272px"></asp:TextBox>
                                                                </td>
                                                                <td>
                                                                    <asp:Button ID="btnCheckOnlineInterface2" runat="server" CssClass="btn" Text="Check" Width="70px" style="margin-bottom:1px" />
                                                                </td>
                                                            </tr>
                                                            <caption>
                                                                <tr>
                                                                    <td>
                                                                        <asp:TextBox ID="txtOnlineCIF3" runat="server" CssClass="txt" TabIndex="32" Width="122px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtOnlineDocId3" runat="server" CssClass="txt" TabIndex="32" Width="140px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlOnlineDocType3" runat="server" CssClass="ddl" Enabled="true" TabIndex="2" Visible="true" Width="150px">
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtOnlineAHName3" runat="server" CssClass="txt" Style="padding-left: 100px" TabIndex="32" Width="272px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Button ID="btnCheckOnlineInterface3" runat="server" CssClass="btn" Text="Check" Width="70px" style="margin-top:1px"/>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:TextBox ID="txtOnlineCIF4" runat="server" CssClass="txt" TabIndex="32" Width="122px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtOnlineDocId4" runat="server" CssClass="txt" TabIndex="32" Width="140px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:DropDownList ID="ddlOnlineDocType4" runat="server" CssClass="ddl" Enabled="true" TabIndex="2" Visible="true" Width="150px">
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="txtOnlineAHName4" runat="server" CssClass="txt" Style="padding-left: 100px" TabIndex="32" Width="272px"></asp:TextBox>
                                                                    </td>
                                                                    <td>
                                                                        <asp:Button ID="btnCheckOnlineInterface4" runat="server" CssClass="btn" Text="Check" Width="70px" style="margin-top:2px" />
                                                                        <asp:HiddenField ID="hdnInterdaceNo" runat="server" />
                                                                        <asp:HiddenField ID="hdnAHIDOLI" runat="server" />
                                                                        <asp:HiddenField ID="hdnAHIDOLI2" runat="server" />
                                                                        <asp:HiddenField ID="hdnAHIDOLI3" runat="server" />
                                                                        <asp:HiddenField ID="hdnAHIDOLI4" runat="server" />
                                                                    </td>
                                                                </tr>
                                                                   <tr>
                                                         <td style="height:30px;"></td>
                                                    </tr>
                                                                <tr>
                                                                    <td align="left" style="padding-top: 5px;">
                                                                        <asp:Button ID="btnAJAH" runat="server" CssClass="btn" Text="Add" Visible="false" Width="55px" />
                                                                        <asp:Button ID="btnRJAH" runat="server" CssClass="btn" Text="Remove" Visible="false" Width="76px" />
                                                                        <asp:Button ID="btnJAHApply" runat="server" CssClass="btn" Text="Apply" Visible="false" Width="274px" />
                                                                    </td>
                                                                </tr>
                                                            </caption>
                                                        </caption>
                                                    </caption>
                                                </table>
                                    </table>
                                </td>
                            </tr>

                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="Underline"></td>
                </tr>
                <tr id="trOptionalDetails" runat="server" visible="false">
                    <%--Optional Details label--%>
                    <td><%--class="background_gray"--%>
                        <asp:Label ID="Label21" runat="server" CssClass="lblHeader HeaderOrder">Optional Details</asp:Label>
                    </td>
                </tr>
                <tr id="trOptionalDetails2" runat="server" visible="false">
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <%--Optional Details Table--%>
                                    <table>

                                        <tr>
                                            <td class="labels">&nbsp;&nbsp;
                                                            <asp:Label ID="lbldt1" runat="server" CssClass="lbl">Date 1</asp:Label></td>
                                            <td class="labelsValueShort">
                                                <dateCtrl:dtControl ID="DtControl1" runat="server" CalenderCss="btn1" Disabled="True" TextBoxCss="txt" TextBoxSize="245px" />
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">Short Field 1
                                            </td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtShortField1" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                            <td class="labels">Long Field 1
                                            </td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtLongField1" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td class="labels">&nbsp;&nbsp;
                                                            <asp:Label ID="lbldt2" runat="server" CssClass="lbl">Date 2</asp:Label></td>
                                            <td class="labelsValueShort">
                                                <dateCtrl:dtControl ID="DtControl2" runat="server" CalenderCss="btn1" Disabled="True" TextBoxCss="txt" TextBoxSize="245px" />
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">Short Field 2
                                            </td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtShortField2" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                            <td class="labels">Long Field 2</td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtLongField2" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td class="labels">&nbsp;&nbsp;
                                                            <asp:Label ID="lbldt3" runat="server" CssClass="lbl">Date 3</asp:Label></td>
                                            <td class="labelsValueShort">
                                                <dateCtrl:dtControl ID="DtControl3" runat="server" CalenderCss="btn1" Disabled="True" TextBoxCss="txt" TextBoxSize="245px" />
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">Short Field 3</td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtShortField3" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                            <td class="labels">Long Field 3</td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtLongField3" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td class="labels">&nbsp;&nbsp;
                                                            <asp:Label ID="lbldt4" runat="server" CssClass="lbl">Date 4</asp:Label></td>
                                            <td class="labelsValueShort">
                                                <dateCtrl:dtControl ID="DtControl4" runat="server" CalenderCss="btn1" Disabled="True" TextBoxCss="txt" TextBoxSize="245px" />
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">Short Field 4</td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtShortField4" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                            <td class="labels">Long Field 4</td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtLongField4" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td class="labels">&nbsp;&nbsp;
                                                            <asp:Label ID="lbldt5" runat="server" CssClass="lbl">Date 5</asp:Label></td>
                                            <td class="labelsValueShort">
                                                <dateCtrl:dtControl ID="DtControl5" runat="server" CalenderCss="btn1" Disabled="True" TextBoxCss="txt" TextBoxSize="245px" />
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">Short Field 5</td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtShortField5" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                            <td class="labels">Long Field 5</td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtLognField5" CssClass="txt" TabIndex="32" Width="270px" runat="server"></asp:TextBox></td>
                                        </tr>
                                        <tr>
                                            <td colspan="7">
                                                <asp:Button ID="btnApplyOptional" runat="server" Text="Apply" CssClass="btn" Width="70px" />&nbsp;<asp:Button ID="btnCancelOptional" runat="server" Text="Cancel" CssClass="btn" Width="70px" /></td>

                                        </tr>
                                        <%--<tr>
                                                        <td colspan="7" class="Underline"></td>
                                                    </tr>--%>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <%--Mailing Address label--%>
                    <td>
                        <asp:Label ID="Label5" runat="server" CssClass="lblHeader HeaderOrder" Style="margin-left: 10px;" Text="Primary Mailing Address"> </asp:Label>
                    </td>
                </tr>
                <tr>
                    <%--Mailing Address Table--%>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblLine1man" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblLine1" runat="server" CssClass="lbl" EnableViewState="False">Line1</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtLine1" runat="server" CssClass="txt" TabIndex="37"
                                                    Width="270px" onkeypress="return textboxMultilineMaxNumber(this,50)"></asp:TextBox>
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">
                                                <asp:Label ID="Label61" runat="server" CssClass="lbl" EnableViewState="False">Home No</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtHomeNo" onkeypress="return AllowOnlyNumericValues();" runat="server" CssClass="txt" TabIndex="44" Width="270px"></asp:TextBox>
                                            </td>

                                            <td class="labels">
                                                <%-- <asp:Label ID="lblAllocationCode" runat="server" CssClass="lbl" Visible ="false" >Allocation Code</asp:Label> ----%>
                                                <asp:Label ID="lblProductAgreementDate" runat="server" CssClass="lbl" Text="Product Agreement Date"></asp:Label>
                                            </td>
                                            <td class="labelsValue">
                                                <%-- <asp:TextBox ID="txtAllocationCode" runat="server" CssClass="txt" Width="270px" Visible ="false"></asp:TextBox> ----%>
                                                <dateCtrl:dtControl ID="dtProductAgreeDate" runat="server" CalenderCss="btn1" Disabled="True" TextBoxCss="txt" TextBoxSize="270px" Visible="true" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblLine2man" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblLine2" runat="server" CssClass="lbl" EnableViewState="False">Line2</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtLine2" runat="server" CssClass="txt" TabIndex="38"
                                                    Width="270px" onkeypress="return textboxMultilineMaxNumber(this,50)"></asp:TextBox>
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">
                                                <asp:Label ID="Label103" runat="server" CssClass="lbl" EnableViewState="False" Text="Mobile No"></asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtHandPhoneNo" runat="server" CssClass="txt" onkeypress="return AllowOnlyNumericValues();" TabIndex="44" Width="270px"></asp:TextBox>
                                            </td>
                                            <td class="labels">
                                                <asp:Label ID="lblIndustryCode" runat="server" CssClass="lbl" Visible="false">Industry</asp:Label><%-- ----%>
                                                <asp:Label ID="lblCDSAccNo" runat="server" CssClass="lbl">CDS Account No</asp:Label>
                                                <asp:Label ID="lbloptioncutlocation" runat="server" CssClass="lbl" EnableViewState="False">Option Cut Location</asp:Label>
                                            </td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtIndustryCode" runat="server" CssClass="txt" Width="270px" Visible="false"></asp:TextBox><%-- ----%>
                                                <asp:TextBox ID="txtCDSAccNo" runat="server" CssClass="txt" Width="270px" MaxLength="20"></asp:TextBox>
                                                <asp:TextBox ID="txtOptionCutLocation" runat="server" CssClass="txt" Width="270px" Visible="true"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblLine3man" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblLine3" runat="server" CssClass="lbl" EnableViewState="False">Line3</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtLine3" runat="server" CssClass="txt" TabIndex="39"
                                                    Width="270px" onkeypress="return textboxMultilineMaxNumber(this,50)"></asp:TextBox>
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">
                                                <asp:Label ID="Label104" runat="server" CssClass="lbl" EnableViewState="False">Office No</asp:Label>
                                                <%--Business No--%>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtBusinessNo" runat="server" onkeypress="return AllowOnlyNumericValues();" CssClass="txt" TabIndex="44" Width="270px"></asp:TextBox>
                                            </td>
                                            <td class="labels">
                                                <asp:Label ID="lblRMCode" runat="server" CssClass="lbl" Visible="false">RM/RO Officer</asp:Label><%-- ----%>
                                                <asp:Label ID="lblGIAAccNo" runat="server" CssClass="lbl">GIA Account No</asp:Label>
                                                <asp:Label ID="lbloptioncuttime" runat="server" CssClass="lbl" EnableViewState="False" Visible="true">Option Cut Time</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtRMCode" runat="server" CssClass="txt" Width="270px" Visible="false"></asp:TextBox><%-- ----%>
                                                <asp:TextBox ID="txtGIAAccNo" runat="server" CssClass="txt" Width="270px" Visible="true" MaxLength="12"></asp:TextBox>
                                                <asp:TextBox ID="txtOptionCutTime" runat="server" CssClass="txt" Width="270px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblCityMan" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblCity" runat="server" CssClass="lbl" EnableViewState="False">City</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtCity" runat="server" CssClass="txt" TabIndex="40" Width="270px"></asp:TextBox>
                                            </td>


                                            <%--Javed--%>
                                            <td class="width10"></td>
                                            <td class="labels">
                                                <asp:Label ID="lblfaxnoman" runat="server" CssClass="lbl" EnableViewState="False">*</asp:Label>
                                                <asp:Label ID="lblFaxno" runat="server" CssClass="lbl" EnableViewState="False">Fax No</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtFaxNo" runat="server" onkeypress="return AllowOnlyNumericValues();" CssClass="txt" TabIndex="44" Width="270px"></asp:TextBox>
                                            </td>
                                            <td class="labels">
                                                <asp:Label ID="Label30" runat="server" CssClass="lbl" Visible="true">Client Code</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtCIMBCC" runat="server" CssClass="txt" Width="270px" MaxLength="20"></asp:TextBox>
                                            </td>
                                            <%--Javed--%>





                                            <td class="labels" style="display: none;">
                                                <asp:Label ID="lblRiskLevelReason" runat="server" CssClass="lbl">Risk Level/Reason</asp:Label>
                                            </td>
                                            <td class="labelsValue" style="display: none;">
                                                <asp:TextBox ID="txtRiskLevel" CssClass="txt" runat="server" Width="95px"></asp:TextBox>
                                                <asp:TextBox ID="txtRiskReason" CssClass="txt" runat="server" Width="95px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblStateMan" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblState" runat="server" CssClass="lbl" EnableViewState="False">State</asp:Label>

                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:DropDownList ID="ddlstatecode" runat="server" AutoPostBack="true" Visible ="false"  CssClass="ddl" Enabled="false" TabIndex="47" Width="95px">
                                                </asp:DropDownList>
                                                <asp:TextBox ID="txtPState" runat="server" CssClass="txt" TabIndex="48" Width="270px"></asp:TextBox>
                                            </td>




                                            <%--Javed--%>
                                            <td class="width10"></td>
                                            <td class="labels">
                                                <asp:Label ID="lblContactperson2" runat="server" Text="Contact Person 2"></asp:Label></td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtContactPerson2" runat="server" Width="270px" CssClass="txt"></asp:TextBox>
                                            </td>
                                            <td class="labels">
                                                <asp:Label ID="Label29" runat="server" CssClass="lbl" Visible="true">Trading Account</asp:Label>
                                            </td>
                                            <td>
                                                <asp:TextBox ID="txtSGCode" runat="server" CssClass="txt" Width="270px" MaxLength="20"></asp:TextBox>
                                            </td>
                                            <%--Javed--%>

                                            <td class="labels" style="display: none;">
                                                <asp:Label ID="lblGoodGuyFlag" runat="server" CssClass="lbl">Good Guy Flag</asp:Label>
                                            </td>
                                            <td class="labelsValue" style="display: none;">
                                                <asp:TextBox ID="txtGoodGuyFlag" runat="server" CssClass="txt" Width="270px"></asp:TextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblCountryman" runat="server" CssClass="mandatory" EnableViewState="False"  Width="8px">*</asp:Label>
                                                <asp:Label ID="lblCountry" runat="server" CssClass="lbl" EnableViewState="False">Country</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:DropDownList ID="cboCountry" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">
                                                <asp:Label ID="lblEmail" runat="server" CssClass="lbl" EnableViewState="False">Email</asp:Label>

                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtEmailId" runat="server" CssClass="txt" TabIndex="48" Style="white-space: pre-wrap !important;" Wrap="true" Width="270px"></asp:TextBox>

                                            </td>
                                            <td class="labels">
                                                <asp:Label ID="lblStarMailCode" runat="server" CssClass="mandatory" EnableViewState="False" Visible="false">*</asp:Label>
                                                <asp:Label ID="lblMailCode" runat="server" CssClass="lbl" EnableViewState="False" Visible="true">Mail Code</asp:Label>
                                            </td>
                                            <td class="labelsValue">
                                                <asp:DropDownList ID="cboMailCode" CssClass="ddl" TabIndex="94" runat="server" Visible="true" Style="width: 270px !important">
                                                </asp:DropDownList>
                                            </td>

                                        </tr>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblzipcodeman" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblzipcode" runat="server" CssClass="lbl" EnableViewState="False">Zip/Postal Code</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtZipCode" runat="server" CssClass="txt" onkeypress="return AllowOnlyNumericValues();" TabIndex="42" Width="270px"></asp:TextBox>
                                            </td>

                              <%--  <Change done by Nitin N/Mayuri C on 16-Feb-2021 : MASINT-1394 Changes in Customer Profile, Customer Account and RM Setup>>--%>
                                            <td class="width10"></td>
                                             <td class="labels">
                                                <asp:Label ID="lblManCallIndemnity" runat="server" CssClass="mandatory" EnableViewState="False" Visible="false"  Width="8px">*</asp:Label>
                                                <asp:Label ID="lblCallIndemnity" runat="server" CssClass="lbl" EnableViewState="False">Call Indemnity</asp:Label>

                                              
                                            </td>
											
											<td class="labelsValueShort">
											   <asp:DropDownList ID="ddlCallIndemnity" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
											     <asp:ListItem Text="" Value =""></asp:ListItem>
                                                        <asp:ListItem Text="Yes" Value ="Y">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="No" Value ="N"></asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
											   <%--  </Change done by Nitin N/Mayuri C on 16-Feb-2021 : MASINT-1394 Changes in Customer Profile, Customer Account and RM Setup>>--%>
											 <td class="labels">
                                                <asp:Label ID="Label31" runat="server" CssClass="lbl" EnableViewState="False" Visible="true">Suspension Remark</asp:Label>
                                            </td>
                                            <td class="labelsValue" rowspan="2">
                                                <asp:TextBox ID="txtSuspensionRemark" CssClass="txt" TabIndex="94" runat="server" Visible="true" TextMode="MultiLine" Enabled="false" Style="white-space: pre-wrap !important;" Wrap="true" Width="270px">
                                                </asp:TextBox>
                                            </td>

                                            <%--Javed--%>
                                          <%--  <td class="width10"></td>--%>
                                          

                                           
                                            <%--Javed--%>
                                        </tr>
                                        <tr id="trcontactperson" runat="server" visible="true">
                                            <td class="labels">
                                                <asp:Label ID="lblContactPersonMan" runat="server" CssClass="mandatory" EnableViewState="False" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblContactPerson" runat="server" CssClass="lbl" EnableViewState="False">Contact Person</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtContactPerson" runat="server" CssClass="txt" TabIndex="45" Width="270px"></asp:TextBox>
                                            </td>

                                             <td class="width10"></td>
											 <%--  <Change done by Nitin N/Mayuri C on 16-Feb-2021 : MASINT-1394 Changes in Customer Profile, Customer Account and RM Setup>>--%>
                                          
 <td class="labels">
                                                <asp:Label ID="lblManmailIndemnity" runat="server" CssClass="mandatory" EnableViewState="False" Visible="false" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblmailIndemnity" runat="server" CssClass="lbl" EnableViewState="False">Mail Indemnity</asp:Label>

                                            </td>

                                            <td class="labelsValueShort">
                                                
                                                 <asp:DropDownList ID="ddlmailIndemnity" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
												   <asp:ListItem Text="" Value =""></asp:ListItem>
                                                        <asp:ListItem Text="Yes" Value ="Y">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="No" Value ="N"></asp:ListItem>
                                                </asp:DropDownList>
                                                </td>
                                            <%--<td class="width10"></td>--%>
											<%--  </Change done by Nitin N/Mayuri C on 16-Feb-2021 : MASINT-1394 Changes in Customer Profile, Customer Account and RM Setup>>--%>
                                            <td class="labels">
                                                <asp:CheckBox ID="chkHoldMail" runat="server" AutoPostBack="True" CssClass="lbl" TabIndex="45" Text="Hold Mail" Visible="false" />
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkDiffAdd" runat="server" CssClass="lbl" TabIndex="47" Text="Different Address" Visible="false" />
                                            </td>
                                            <td>
                                                <asp:CheckBox ID="chkHold" runat="server" AutoPostBack="True" CssClass="lbl" TabIndex="41" Text="" Visible="false" />
                                                <asp:TextBox ID="txtRM_StaffId" runat="Server" CssClass="txt"
                                                    Enabled="False" Visible="false"></asp:TextBox>

                                            </td>

                                        </tr>


                                       <%-- <Changed by Mayuri C/Nitin N on 16-Mar-2021 for Jira MASINT-1585: Fields to be added on Customer Account Page>--%>
                                        <tr id="trLombardYN" runat="server" visible="true">
                                           <td class="labels">
                                                <asp:Label ID="lblManLombardYN" runat="server" CssClass="mandatory" EnableViewState="False" Visible ="false"  Width="8px">*</asp:Label>
                                                <asp:Label ID="lblLombardYN" runat="server" CssClass="lbl" EnableViewState="False">Lombard YN</asp:Label>

                                             
                                            </td>

                                             <td class="labelsValueShort">
                                                     <asp:DropDownList ID="ddlLombardYN" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
													   <asp:ListItem Text="" Value =""></asp:ListItem>
                                                        <asp:ListItem Text="Yes" Value ="Y">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="No" Value ="N"></asp:ListItem>
                                                </asp:DropDownList>
                                                 </td>
                                                   <td class="width10"></td>
                                           <td class="labels">
                                                <asp:Label ID="lblIA" runat="server" CssClass="lbl" EnableViewState="False">IA</asp:Label>

                                            </td>
                                             <td class="labelsValueShort">
                                                <asp:DropDownList ID="ddlIA" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
                                                </asp:DropDownList>
                                            </td>
										
                                             
											  <td class="labels">
                                                <asp:Label ID="lblManLimitCheckBasis" runat="server" CssClass="mandatory" EnableViewState="False" Visible="false" Width="8px">*</asp:Label>
                                                <asp:Label ID="lblLimitCheckBasis" runat="server" CssClass="lbl" EnableViewState="False">Limit Check Basis</asp:Label>

                                            </td>

                                            <td class="labelsValueShort">
                                                
                                                 <asp:DropDownList ID="ddlLimitCheckBasis" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
                                                </asp:DropDownList>
                                                </td>
                                               
                                                   
                                        </tr>
										
										<tr id="trCallIndemnity" runat="server" visible="true">
										
										  <td class="labels">
                                                <asp:Label ID="lblManKYCExpiryDate" runat="server" CssClass="mandatory" EnableViewState="False" Visible="false"  Width="8px">*</asp:Label>
                                                <asp:Label ID="lblKYCExpiryDate" runat="server" CssClass="lbl" EnableViewState="False">KYC Expiry Date</asp:Label>

                                                
                                                        </td>
															<td class="labelsValueShort">
															 <dateCtrl:dtControl ID="DtKYCExpiryDate" runat="server" CalenderCss="btn1" Disabled="False" TabIndex="61" TextBoxCss="txt" TextBoxSize="245px" Visible="true" />
															</td>
										
										
											  <td class="width10"></td>
                                             <td class="labels">
                                                <asp:Label ID="lblAM" runat="server" CssClass="lbl" EnableViewState="False">AM</asp:Label>

                                            </td>
                                             <td class="labelsValueShort">
                                                <asp:DropDownList ID="ddlAM" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
                                                </asp:DropDownList>
                                            </td>

                                              <td class="labels">
                                                    <asp:Label ID="lblManRiskProfile" runat="server" CssClass="mandatory" EnableViewState="False" Visible="false"  Width="8px">*</asp:Label>
                                                <asp:Label ID="lblRiskProfile" runat="server" CssClass="lbl" EnableViewState="False">Risk Profile</asp:Label>

                                            </td>
                                             <td class="labelsValueShort">
                                                <asp:DropDownList ID="ddlRiskProfile" runat="server" TabIndex="36" CssClass="ddl" Style="width: 270px !important">
                                                </asp:DropDownList>
                                            </td>
											
										</tr>
										

                                              <%-- </Changed by Mayuri C/Nitin N on 16-Mar-2021 for Jira MASINT-1585: Fields to be added on Customer Account Page>--%>
                                        <tr>
                                              <td class="labels">
											
											
											  <%--<Change done by Nitin N/Mayuri C on 07-Dec-2020 : Mashreq_Internal MASINT-859 New Field on Customer Account>>--%>
                                                

                                                <asp:Label ID="lbladdressforduplicatestmts" runat="server" Style="font-size: 11px; color: #333;" Text="Address for Duplicate Statements"></asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                               
												 <%--</Change done by Nitin N/Mayuri C on 07-Dec-2020 : Mashreq_Internal MASINT-859 New Field on Customer Account>>--%>
                                                <asp:TextBox ID="txtCIES" runat="server" CssClass="txt" TabIndex="44" Width="231px"></asp:TextBox>
                                                <asp:Button ID="btnAddAddress" runat="server" CssClass="btn" Enabled="False" Text="Add" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>

                                <%-- <td>
                                                <table runat ="server"  width="250px" id ="tblCustGroup">
                                                    <tr>
                                                        <td >
                                                            <asp:GridView Visible="false"  ID="gvCustGroup" runat="server" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" Width="250px" AllowPaging="True" AllowSorting="True" Autopostback="true" 
                                                                Enabled="False" EnableModelValidation="False" EnableTheming="False" EnableViewState="False" CssClass="gvAccountHolder">
                                                                <Columns>

                                                                    <asp:BoundField HeaderText="Group ID" DataField="Group_ID" HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left"  HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemStyle CssClass="gvAccountHolderItems"/>
                                                                    </asp:BoundField>
                                                                    <asp:BoundField HeaderText="Group Name" DataField="Group_Name" HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left" HeaderStyle-CssClass="gvAccountHolderHeaders">
                                                                        <ItemStyle CssClass="gvAccountHolderItems" />
                                                                    </asp:BoundField>
                                                                </Columns>
                                                            </asp:GridView>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>--%>
                            </tr>
                            <%-- <tr>
                                            <td class="Underline"></td>
                                        </tr>--%>
                        </table>

                    </td>
                </tr>
                <tr>
                    <td class="Underline"></td>
                </tr>
                <tr>
                    <td>
                        <asp:Panel ID="pnlHoldMailAdress" runat="server">

                            <tr>
                                <td>
                                    <asp:Label ID="Label77" runat="server" CssClass="HeaderOrder lblHeader" Style="margin-left: 10px;">Hold/Undelivered Mail Address</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <table>

                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label81" runat="server" CssClass="lbl" Style="margin-left: 12px;" EnableViewState="False">Line1</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtHM_Line1" runat="server" CssClass="txt" TabIndex="49" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label84" runat="server" CssClass="lbl" EnableViewState="False">Line2</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtHM_Line2" runat="server" CssClass="txt" TabIndex="50" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label87" runat="server" CssClass="lbl" EnableViewState="False">Line3</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtHM_Line3" runat="server" CssClass="txt" TabIndex="51" Width="270px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label88" runat="server" CssClass="lbl" Style="margin-left: 12px;" EnableViewState="False">City</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtHM_City" runat="server" CssClass="txt" TabIndex="52" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label79" runat="server" CssClass="lbl" EnableViewState="False">State</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtHM_State" runat="server" CssClass="txt" TabIndex="53" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label86" runat="server" CssClass="lbl" EnableViewState="False">Zip/Postal Code</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtHM_ZipCode" runat="server" CssClass="txt" TabIndex="54" Width="270px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label78" runat="server" CssClass="lbl" Style="margin-left: 12px;" EnableViewState="False">Country</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList ID="ddlHM_Country" runat="server" CssClass="ddl" TabIndex="55" Width="270px">
                                                            </asp:DropDownList>
                                                            <asp:LinkButton ID="lnkHM_More" runat="server" CssClass="link" Visible="true">More ...</asp:LinkButton>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label11" runat="server" CssClass="lbl" EnableViewState="False">Home No</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtHM_HomeNo" runat="server" CssClass="txt" TabIndex="56" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label74" runat="server" CssClass="lbl" EnableViewState="False">Mobile No</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtHM_MobileNo" runat="server" CssClass="txt" TabIndex="57" Width="270px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label83" runat="server" CssClass="lbl" Style="margin-left: 12px;" EnableViewState="False">Business No</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtHM_BusinessNo" runat="server" CssClass="txt" TabIndex="58" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label85" runat="server" CssClass="lbl" EnableViewState="False">Fax No</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtHM_FaxNo" runat="server" CssClass="txt" TabIndex="59" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">Effective Date </td>
                                                        <td class="labelsValue">
                                                            <dateCtrl:dtControl ID="dtHM_EffectiveDate" runat="server" CalenderCss="btn1" Disabled="False" TabIndex="60" TextBoxCss="txt" TextBoxSize="245px" Visible="True" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblExpirydate" runat="server" Style="margin-left: 12px;" Text="Expiry Date" />
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <dateCtrl:dtControl ID="dtHM_ExpiryDate" runat="server" CalenderCss="btn1" Disabled="False" TabIndex="61" TextBoxCss="txt" TextBoxSize="245px" Visible="true" />
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td></td>
                                                        <td class="labelsValue">
                                                            <asp:CheckBox ID="chkHM_DailyAdvice" runat="server" CssClass="lbl" TabIndex="62" Text="Apply to Daily Advice" />
                                                        </td>
                                                        <td></td>
                                                        <td class="labelsValue">
                                                            <asp:CheckBox ID="chkHM_MonthlyStatement" runat="server" CssClass="lbl" TabIndex="63" Text="Apply to Monthly Statement" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lbldescription" Style="margin-left: 12px;" runat="server"> </asp:Label>
                                                            Description </td>
                                                        <td colspan="6">
                                                            <asp:TextBox ID="txtHM_Description" runat="server" CssClass="txt" TabIndex="64" Width="95%" MaxLength="100"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblEmailid" runat="server" CssClass="lbl" Style="margin-left: 12px;"> Email</asp:Label>
                                                        </td>
                                                        <td colspan="6">
                                                            <asp:TextBox ID="txtEmail" runat="server" CssClass="txt" TabIndex="64" Width="95%"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblLanguag" runat="server" Style="margin-left: 12px;" Text="Language" /></td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList ID="ddlHM_Language" runat="server" CssClass="ddl" TabIndex="65" Width="270px">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">Product </td>
                                                        <td class="labelsValue">
                                                            <asp:DropDownList ID="ddlHM_Product" runat="server" CssClass="ddl" TabIndex="66" Width="270px">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td></td>
                                                        <td></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>

                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="Underline"></td>
                            </tr>
                        </asp:Panel>
                        <asp:Panel ID="pnlDifferentAddress" runat="server" Visible="false">
                            <%--true--%>
                            <tr>
                                <td>
                                    <asp:Label ID="Label82" runat="server" Style="margin-left: 1px;" CssClass="HeaderOrder lblHeader">Different Mail Address</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <table>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label89" runat="server" Style="margin-left: 12px;" CssClass="lbl" EnableViewState="False">Line1</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtDA_Line1" runat="server" CssClass="txt" TabIndex="67" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label90" runat="server" CssClass="lbl" EnableViewState="False">Line2</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtDA_Line2" runat="server" CssClass="txt" TabIndex="68" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">&nbsp;<asp:Label ID="Label91" runat="server" CssClass="lbl" EnableViewState="False">Line3</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtDA_Line3" runat="server" CssClass="txt" TabIndex="69" Width="270px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label92" runat="server" CssClass="lbl" Style="margin-left: 12px;" EnableViewState="False">City</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtDA_City" runat="server" CssClass="txt" TabIndex="70" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label93" runat="server" CssClass="lbl" EnableViewState="False">State</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtDA_State" runat="server" CssClass="txt" TabIndex="71" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label94" runat="server" CssClass="lbl" EnableViewState="False">Zip/Postal Code</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtDA_ZipCode" runat="server" CssClass="txt" TabIndex="72" Width="270px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label95" runat="server" CssClass="lbl" Style="margin-left: 12px;" EnableViewState="False">Country</asp:Label>
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlDA_Country" runat="server" CssClass="ddl" TabIndex="73" Width="270px">
                                                            </asp:DropDownList>
                                                            <asp:LinkButton ID="lnkDA_More" runat="server" CssClass="link" Visible="true">More ...</asp:LinkButton>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label96" runat="server" CssClass="lbl" EnableViewState="False">Home No</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtDA_HomeNo" runat="server" CssClass="txt" TabIndex="74" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label97" runat="server" CssClass="lbl" EnableViewState="False">Mobile No</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtDA_MobileNo" runat="server" CssClass="txt" TabIndex="75" Width="270px"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="Label98" runat="server" CssClass="lbl" Style="margin-left: 12px;" EnableViewState="False">Business No</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:TextBox ID="txtDA_BusinessNo" runat="server" CssClass="txt" TabIndex="76" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">
                                                            <asp:Label ID="Label99" runat="server" CssClass="lbl" EnableViewState="False">Fax No</asp:Label>
                                                        </td>
                                                        <td class="labelsValue">
                                                            <asp:TextBox ID="txtDA_FaxNo" runat="server" CssClass="txt" TabIndex="77" Width="270px"></asp:TextBox>
                                                        </td>
                                                        <td class="labels">Effective Date </td>
                                                        <td class="labelsValue">
                                                            <dateCtrl:dtControl ID="dtDA_EffectiveDate" runat="server" CalenderCss="btn1" Disabled="False" TabIndex="78" TextBoxCss="txt" TextBoxSize="245px" Visible="True" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label ID="lblExpiry" runat="server" Style="margin-left: 12px;">Expiry Date</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <dateCtrl:dtControl ID="dtDA_ExpiryDate" runat="server" CalenderCss="btn1" Disabled="False" TabIndex="79" TextBoxCss="txt" TextBoxSize="245px" Visible="true" />
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td></td>
                                                        <td class="labelsValue">
                                                            <asp:CheckBox ID="chkDA_ApplyDailyAdvice" runat="server" CssClass="lbl" TabIndex="80" Text="Apply to Daily Advice" />
                                                        </td>
                                                        <td></td>
                                                        <td class="labelsValue">
                                                            <asp:CheckBox ID="chkDA_MonthlyStatement" runat="server" CssClass="lbl" TabIndex="81" Text="Apply to Monthly Statement" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label runat="server" ID="lblDesc" Style="margin-left: 12px;">Description

                                                            </asp:Label>
                                                        </td>
                                                        <td colspan="6">
                                                            <asp:TextBox ID="txtDA_Description" runat="server" CssClass="txt" TabIndex="82" Width="95%" MaxLength="100"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="labels">
                                                            <asp:Label runat="server" Style="margin-left: 12px;">Language</asp:Label>
                                                        </td>
                                                        <td class="labelsValueShort">
                                                            <asp:DropDownList ID="ddlDA_Language" runat="server" CssClass="ddl" TabIndex="83" Width="270px">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td class="width10"></td>
                                                        <td class="labels">Product </td>
                                                        <td class="labelsValue">
                                                            <asp:DropDownList ID="ddlDA_Product" runat="server" CssClass="ddl" TabIndex="84" Width="270px">
                                                            </asp:DropDownList>
                                                        </td>
                                                        <td></td>
                                                        <td></td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>


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

                <tr id="trcontactpersons" runat="server" visible="false">
                    <td class="">
                        <asp:Label ID="lblcontactpersons" runat="server" CssClass="HeaderOrder lblHeader">Contact Persons</asp:Label>
                    </td>
                </tr>
                <tr visible="false">
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:GridView ID="gvContactPersons" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="gvContactPersons_RowCancelingEdit" OnRowCommand="gvContactPersons_RowCommand" OnRowDeleting="gvContactPersons_RowDeleting" OnRowEditing="gvContactPersons_RowEditing" OnRowUpdating="gvContactPersons_RowUpdating" ShowHeaderWhenEmpty="True" Width="1025px">
                                                    <Columns>
                                                        <%--<asp:TemplateField>
            <ItemTemplate>
                <asp:CheckBox ID="chkRow" runat="server" />
            </ItemTemplate>
        </asp:TemplateField>--%>
                                                        <asp:TemplateField HeaderStyle-ForeColor="#484848" HeaderText="Seq" ItemStyle-Width="20px">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblSrno" runat="server" Width="20px" />
                                                            </ItemTemplate>
                                                            <HeaderStyle ForeColor="#484848" />
                                                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left" HeaderText="Name">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblName" runat="server" Text='<%#Eval("Name")%>' Width="100px" />
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="txtEName" runat="server" Text='<%#Eval("Name")%>' Width="100px" />
                                                            </EditItemTemplate>
                                                            <FooterTemplate>
                                                                <asp:TextBox ID="txtAName" runat="Server" />
                                                            </FooterTemplate>
                                                            <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left" HeaderText="SurName">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblSurName" runat="server" Text='<%#Eval("SurName")%>' Width="100px" />
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="txtESurName" runat="server" Text='<%#Eval("SurName")%>' Width="100px" />
                                                            </EditItemTemplate>
                                                            <FooterTemplate>
                                                                <asp:TextBox ID="txtASurName" runat="Server" />
                                                            </FooterTemplate>
                                                            <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left" HeaderText="Email Address">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblEmail" runat="server" Text='<%#Eval("Email")%>' Width="100px" />
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="txtEEmail" runat="server" Text='<%#Eval("Email")%>' Width="100px" />
                                                            </EditItemTemplate>
                                                            <FooterTemplate>
                                                                <asp:TextBox ID="txtAEmail" runat="Server" />
                                                            </FooterTemplate>
                                                            <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left" HeaderText="Home Phone No">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblHomePH" runat="server" Text='<%#Eval("HomePH")%>' Width="100px" />
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="txtEHomePH" runat="server" Text='<%# Eval("HomePH")%>' Width="100px" />
                                                            </EditItemTemplate>
                                                            <FooterTemplate>
                                                                <asp:TextBox ID="txtAHomePH" runat="Server" />
                                                            </FooterTemplate>
                                                            <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left" HeaderText="Mobile Phone No">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblMobilePH" runat="server" Text='<%#Eval("MobilePH")%>' Width="100px" />
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="txtEMobilePH" runat="server" Text='<%#Eval("MobilePH")%>' Width="100px" />
                                                            </EditItemTemplate>
                                                            <FooterTemplate>
                                                                <asp:TextBox ID="txtAMobilePH" runat="Server" />
                                                            </FooterTemplate>
                                                            <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                        <asp:TemplateField HeaderStyle-ForeColor="#484848" HeaderStyle-HorizontalAlign="Left" HeaderText="Office Phone No">
                                                            <ItemTemplate>
                                                                <asp:Label ID="lblOfficePH" runat="server" Text='<%#Eval("OfficePH")%>' Width="100px" />
                                                            </ItemTemplate>
                                                            <EditItemTemplate>
                                                                <asp:TextBox ID="txtEOfficePH" runat="server" Text='<%#Eval("OfficePH")%>' Width="100px" />
                                                            </EditItemTemplate>
                                                            <FooterTemplate>
                                                                <asp:TextBox ID="txtAOfficePH" runat="Server" />
                                                            </FooterTemplate>
                                                            <HeaderStyle ForeColor="#484848" HorizontalAlign="Left" />
                                                        </asp:TemplateField>
                                                        <%--    <asp:TemplateField>--%>
                                                        <asp:CommandField ButtonType="Button" ShowCancelButton="true" ShowDeleteButton="true" ShowEditButton="true" />
                                                        <%-- <EditItemTemplate>
        <asp:Button ID="ButtonUpdate" runat="server" CommandName="Update"  Text="Update"  />
        <asp:Button ID="ButtonCancel" runat="server" CommandName="Cancel"  Text="Cancel" />
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Button ID="ButtonEdit" runat="server" CommandName="Edit"  Text="Edit"  />
        <asp:Button ID="ButtonDelete" runat="server" CommandName="Delete"  Text="Delete"  />
    </ItemTemplate>--%><%-- </asp:TemplateField>--%>
                                                    </Columns>
                                                </asp:GridView>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <table>
                                        <tr visible="false">
                                            <td>
                                                <asp:Button ID="btnCntInfoAdd" runat="server" Text="Add" Visible="false" />
                                            </td>
                                        </tr>
                                        <%-- <tr>
                                            <td >
                                            <asp:Button ID="btnCntInfodel" runat="server" Text="delete" />
                                           </td>    
                                        </tr>--%><%--   <tr>
                                                        <td class="Underline"></td>
                                                    </tr>--%>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="trAdditional" runat="server" visible="true">
                    <td>
                        <asp:Label ID="Label39" runat="server" CssClass="HeaderOrder lblHeader" Style="margin-left: 10px;" Text="Additional Info."></asp:Label>
                    </td>
                        
                </tr>
                <tr>
                    <%--Additional Info Table--%>
                    <td>
                        <table>
                            <tr>
                                <td>
                                    <table id="Table1" runat="server" align="right" visible="true">
                                           
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblRMMan" runat="server" CssClass="mandatory" EnableViewState="false" Style="margin-left: 2px;">*</asp:Label>
                                                <asp:Label ID="lblRM" runat="server" CssClass="lbl" EnableViewState="False">RM (Main)</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:DropDownList ID="cboRM" runat="server" AutoPostBack="False" CssClass="ddl" Style="width: 270px !important" TabIndex="84">
                                                </asp:DropDownList>
                                               
                                            </td>
                                             <td class="width10"></td>
                                             <td class="labels">
                                                <asp:Label ID="lblAccountCcy" runat="server" CssClass="lbl" EnableViewState="False" Text="Currency"></asp:Label>
                                            </td>
                                             <td class="labelsValue">
                                         <asp:DropDownList ID="ddlAccountCcy" runat="server" AutoPostBack="False" CssClass="ddl" Style="width: 270px !important" TabIndex="84">
                                                </asp:DropDownList>
                                            </td>

                                            <%-- <Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>
                                              <td class="labels">
                                             <asp:Label ID="lblProftAccMapping" runat="server" CssClass="lbl" EnableViewState="False">Proftfolio Account Mapping</asp:Label>
                                             </td>
                                              <td class="labelsValue">
                                                  <asp:DropDownList ID="ddlProftAccMapping" CssClass="ddl" TabIndex="94" runat="server" Visible="true" Style="width: 270px !important">
                                                    <asp:ListItem Text="Yes" Value ="Y">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="No" Value ="N"></asp:ListItem>
                                                </asp:DropDownList>
                                                  </td>
                                                     <%-- </Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>                                         
                                         
                                        </tr>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblBookNameMan" runat="server" CssClass="mandatory" EnableViewState="False" Style="margin-left: 2px;">*</asp:Label>
                                                <asp:Label ID="lblBookName" runat="server" CssClass="lbl" EnableViewState="False">Branch Name</asp:Label>
                                            </td>
                                            <td class="labelsValueShort">
                                                <asp:TextBox ID="txtBrancheCode" runat="server" AutoPostBack="true" CssClass="txt" Visible="false" Width="120px"></asp:TextBox>
                                                <asp:TextBox ID="txtDisplayBrancheName" runat="server" CssClass="txt" Enabled="false" Visible="false" Width="148px"></asp:TextBox>
                                                <asp:DropDownList ID="cboBook" runat="server" AutoPostBack="true" CssClass="ddl" TabIndex="84" Width="270px">
                                                </asp:DropDownList>
                                            </td>
                                            <td class="width10"></td>
                                            <td class="labels">
                                                <asp:Label ID="lblCreated" runat="server" CssClass="lbl" EnableViewState="False" Text="Created At/By"></asp:Label>
                                            </td>
                                            <td class="labelsValue">            
                                                 <%-- <Added by Nitin N /Mayuri C on 27-Nov-2020 for Jira Mashreq_Internal MASINT-828 Sprint 4: Wrong alignment on account screen>--%>
                                               <%-- <asp:Label ID="txtCreatedAt" runat="server" CssClass="lbl" TabIndex="90" Width="170px"></asp:Label>
                                                <asp:Label ID="txtCreatedBy" runat="server" CssClass="lbl" TabIndex="91"></asp:Label>--%>

                                                      <%-- <Changed by Mayuri C on 25-Feb-2021 as per informed by Nitin N/Amit N>--%>
                                                <asp:TextBox ID="txtCreatedAt" runat="server" CssClass="txt" TabIndex="90" Width="175px" Enabled="false"></asp:TextBox>
                                                <asp:TextBox ID="txtCreatedBy" runat="server" CssClass="txt" TabIndex="91" Width="91px" Enabled="false"></asp:TextBox>
                                            </td>

                                            <%-- <Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>
                                               <td class="labels">
                                                <asp:Label ID="lblBalanceAmt" runat="server" CssClass="lbl" EnableViewState="False" Text="Account Balance"></asp:Label>
                                            </td>
                                            <td class="labelsValue">
                                                <asp:TextBox ID="txtBalanceAmt" runat="server" CssClass="txt" TabIndex="82" Width="270px" MaxLength="8" AutoPostBack="true"></asp:TextBox>
                                            </td>
                                             
                                               <%-- </Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>

                                        </tr>
                                        <tr>
                                            <td class="labels">
                                                <asp:Label ID="lblMandatoryInvestmentObjective" runat="server" CssClass="mandatory" EnableViewState="False"  Width="8px"></asp:Label>
                                                <asp:Label ID="lblInvestmentObjective" runat="server" CssClass="lbl" EnableViewState="False" Text ="Investment Objective"></asp:Label>
                                            </td>
                                             <td class="labelsValueShort">
                                            <asp:DropDownList ID="ddlInvestObj" runat="server" AutoPostBack="true" CssClass="ddl" TabIndex="84" Width="270px">
                                                </asp:DropDownList>
                                            </td>
                                             <td class="width10"></td>
                                                <td class="labels">
                                                    <asp:Label ID="lblVerified" runat="server" CssClass="lbl" EnableViewState="False">Approved At/By</asp:Label>
                                                </td>
                                                <td class="labelsValue">
                                                   <%-- <asp:Label ID="txtVerifiedAt" runat="server" CssClass="lbl" Enabled="False" TabIndex="85" Width="150px"></asp:Label>
                                                    <asp:Label ID="txtVerifiedBy" runat="server" CssClass="lbl" Enabled="False" TabIndex="86"></asp:Label>--%>
                                                        <%-- <Changed by Mayuri C on 25-Feb-2021 as per informed by Nitin N/Amit N>--%>
												    <asp:TextBox ID="txtVerifiedAt" runat="server" CssClass="txt" Enabled="False" TabIndex="85" Width="175px"></asp:TextBox>
                                                    <asp:TextBox ID="txtVerifiedBy" runat="server" CssClass="txt" Enabled="False" TabIndex="86"  Width="91px"></asp:TextBox>
                                                </td>

                                               <%-- <Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>
                                            <td class="labels">
                                                <asp:Label ID="lblDeleted" runat="server" CssClass="lbl" EnableViewState="False" Text="Deleted At/By"></asp:Label>
                                            </td>
                                            <td class="labelsValue">
                                               <%-- <asp:Label ID="txtDeactivatedAt" runat="server" CssClass="lbl" TabIndex="92" Width="150px"></asp:Label>
                                                <asp:Label ID="txtDeactivatedBy" runat="server" CssClass="lbl" TabIndex="93"></asp:Label>--%>  
                                                 <%-- <Changed by Mayuri C on 25-Feb-2021 as per informed by Nitin N/Amit N>--%>
											    <asp:TextBox ID="txtDeactivatedAt" runat="server" CssClass="txt" TabIndex="92" Width="175px" Enabled="false"></asp:TextBox>
                                                 <asp:TextBox ID="txtDeactivatedBy" runat="server" CssClass="txt" TabIndex="93" Enabled="false" Width="91px"></asp:TextBox>
                                            </td>
                                            <%-- </Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>
                                               
                                        </tr>
                              <tr>
                                           <td class="labels">
                                               <asp:Label ID="Label38" runat="server" CssClass="mandatory" EnableViewState="False"  Width="8px"></asp:Label>
                                                 <asp:Label ID="lblCDM_Vulnerable" runat="server" CssClass="lbl" EnableViewState="False" Text ="Vulnerability"></asp:Label>
                                            </td>
                                                 <td class="labelsValueShort">
                                            <asp:textbox ID="txtCDM_Vulnerable" runat="server" AutoPostBack="true" MaxLength ="10" CssClass="ddl" TabIndex="84" Width="270px">
                                                </asp:textbox>
                                            </td>

                                        <%-- <Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>
                                          <td class="width10"></td>
                                          <td class="width10"></td>
                                          <td class="width10"></td>
                                          <td class="labels">
                                                    <asp:Label ID="lblEdited" runat="server" CssClass="lbl" EnableViewState="False">Edited At/By</asp:Label>
                                                </td>
                                                <td class="labelsValue">
                                                <%--    <asp:Label ID="txtEditedAt" runat="server" CssClass="lbl" Enabled="False" TabIndex="87" Width="150px"></asp:Label>
                                                    <asp:Label ID="txtEditedBy" runat="server" CssClass="lbl" Enabled="False" TabIndex="88"></asp:Label>--%>
                                                        <%-- <Changed by Mayuri C on 25-Feb-2021 as per informed by Nitin N/Amit N>--%>
                                                    <asp:TextBox ID="txtEditedAt" runat="server" CssClass="txt" Enabled="False" TabIndex="87" Width="175px"></asp:TextBox>
                                                    <asp:TextBox ID="txtEditedBy" runat="server" CssClass="txt" Enabled="False" TabIndex="88" Width="91px"></asp:TextBox>
                                                </td>
                                      <%-- </Changed by Mayuri C on 06-Jan-2021 as per Discussed with Amit N/Nitin N>--%>
                               </tr>
                                        <tr>
                                             <td class="labels">
                                                  <asp:Label ID="lblSourceBarnchMan" runat="server" CssClass="mandatory" Text ="*" Style="margin-left: 2px;" EnableViewState="False" visible="false" Width="8px"></asp:Label>
                                                  <asp:Label ID="lblSourceBranch" runat="server" CssClass="lbl" EnableViewState="False" Text ="Source Branch" Visible ="false"></asp:Label>
                                             </td>
                                             <td class="labelsValueShort">
                                            <asp:textbox ID="txtSourceBranch" runat="server" AutoPostBack="true" MaxLength ="100" CssClass="txt" Width="270px" Visible ="false">
                                                </asp:textbox>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="Underline"></td>
                </tr>
                <%--Visible false row--%>
                <tr id="Tr3" runat="server" visible="false">
                    <td>
                        <table id="Table3" runat="server" border="0" visible="true">
                            <tr>
                                <%-- <td width="150px">
                                    <asp:Label ID="Label56" runat="server" CssClass="lbl" EnableViewState="False">Approved At/By</asp:Label>
                                </td>
                                <td width="350px">
                                    &nbsp;
                                    <asp:TextBox ID="txtVerifiedAt" TabIndex="85" CssClass="txt" Enabled="False" runat="server"
                                        Width="160px"></asp:TextBox>
                                    <asp:TextBox ID="txtVerifiedBy" TabIndex="86" CssClass="txt" Enabled="False" runat="server"></asp:TextBox>
                                </td>--%>
                                <td class="labels">
                                    <asp:Label ID="lblBranchOfficerName" runat="server" CssClass="lbl">Branch Officer Name</asp:Label>
                                </td>
                                <td class="labelsValue">
                                    <asp:TextBox ID="txtBranchOfficerName" runat="server" CssClass="txt" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="labels">
                                    <asp:Label ID="lblTFCOfficerName" runat="server" CssClass="lbl">TFC Officer Name</asp:Label>
                                </td>
                                <td class="labelsValue">
                                    <asp:TextBox ID="txtTFCOfficerName" runat="server" CssClass="txt" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="labels">
                                    <asp:Label ID="lblAccountApprover" runat="server" CssClass="lbl" EnableViewState="False">Account Approver</asp:Label>
                                </td>
                                <td class="labelsValue">
                                    <asp:TextBox ID="txtAccountApprover" runat="server" CssClass="txt" TabIndex="89" Width="245px"></asp:TextBox>
                                </td>
                                <td class="labels">
                                    <asp:Label ID="lblTMUOfficerName" runat="server" CssClass="lbl">TMU Officer Name</asp:Label>
                                </td>
                                <td class="labelsValue">
                                    <asp:TextBox ID="txtTMUOfficerName" runat="server" CssClass="txt" Width="200px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="labels">
                                    <asp:Label ID="lblSuggestedSpread" runat="server" CssClass="lbl">Suggested Spread</asp:Label>
                                </td>
                                <td class="labelsValue">
                                    <asp:TextBox ID="txtSuggestedSpread" runat="server" CssClass="txt" Width="245px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="labels">
                                    <asp:Label ID="lbloptioncutlocationman" runat="server" CssClass="lbl" EnableViewState="False" Width="10px">*</asp:Label>

                                </td>
                                <td class="labelsValue"></td>
                            </tr>
                            <tr id="trcustomerid" runat="server">
                                <td class="labels">
                                    <asp:Label ID="Label20" runat="server" CssClass="lbl" EnableViewState="False" Visible="true">Customer ID</asp:Label>
                                </td>
                                <td class="labelsValue">
                                    <asp:TextBox ID="txtcusName" runat="server" CssClass="txt" TabIndex="3" Visible="true"></asp:TextBox>
                                    <input class="Button" id="cmdFind" onclick="FindCustomer(txtcusName, 'Account');"
                                        type="button" value="Find" runat="server" visible="true" />
                                </td>
                                <td class="labels">
                                    <asp:Label ID="lblCustomerCode" runat="server" CssClass="lbl" EnableViewState="False" Visible="true">Customer Code</asp:Label>

                                </td>
                                <td class="labelsValue">
                                    <asp:TextBox ID="txtcustomer_code" runat="server" CssClass="txt" Visible="true"></asp:TextBox>

                                    <asp:Label ID="Label63" runat="server" CssClass="lbl" EnableViewState="False" Visible="true">State</asp:Label>
                                    <asp:TextBox ID="cboState" runat="server" CssClass="txt" TabIndex="96" Visible="true"></asp:TextBox>
                                    <asp:Label ID="txtState" runat="server" CssClass="lbl" Visible="true"></asp:Label>
                                    <input id="hdntxtState" type="hidden" size="1" name="Hidden1" runat="server" />
                                    <input id="hdnRFQ" type="hidden" size="1" name="hdnMode" runat="server" />
                                    <input id="hdnRM" type="hidden" size="3" name="Hidden1"
                                        runat="server" />
                                    <asp:HiddenField ID="HiddenField1" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

        </ContentTemplate>
    </asp:UpdatePanel>

    <script type="text/javascript">


        //$(".btnClose").live('click', function () {
        //    HidePopup();
        //});
        function ShowPopup() {
            $("#ctl00_MainContent_popupFlag").val('show');
            $('#mask').show();
            $('#<%=pnlpopup.ClientID %>').show();
        }
        function HidePopup() {
            $("#ctl00_MainContent_popupFlag").val('hide');
            $('#mask').hide();
            $('#<%=pnlpopup.ClientID%>').hide();
            }

            function ShowPopupCIF2() {
                //alert(1);
                $("#ctl00_MainContent_popupOnlineCIF").val('show');
                $('#mask1').show();
                $('#<%=pnonline.ClientID%>').show();
            }
            function HidePopupCIF2() {
                $("#ctl00_MainContent_popupOnlineCIF").val('hide');
                $('#mask1').hide();
                $('#<%=pnonline.ClientID%>').hide();
        }


        function pageLoad_CustAccount(sender, args) {

            if ($("#ctl00_MainContent_popupFlag").val() == "hide") {
                HidePopup();
            }
            else {
                ShowPopup();
            }
        }

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(
            function () {
                try {
                    var popupFlag = $("#ctl00_MainContent_popupFlag").val();
                    var CIFPopup = $("#ctl00_MainContent_popupOnlineCIF").val();

                    if (popupFlag == "hide") {
                        HidePopup();
                    }
                    else if (popupFlag == "show") {
                        ShowPopup();
                    }

                    if (CIFPopup == "hide") {
                        HidePopupCIF2();
                    }
                    else if (CIFPopup == "show") {
                        ShowPopupCIF2();
                    }

                } catch (er) { }
            }
    )
    </script>

</asp:Content>
