<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="DCDDealentry_MultiPricer.aspx.vb" Inherits="FinIQWebApp.DCDDealentry_MultiPricer" MasterPageFile="~/FiniqAppMasterPage.Master" MaintainScrollPositionOnPostback="true" %>

<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl" TagPrefix="uc1" %>
<%@ Register Src="../FinIQ_User_Controls/Smart_Search_Customer_Control/FinIQ_Customer_SmartSearch.ascx" TagName="FinIQ_Customer_SmartSearch" TagPrefix="ucsmart" %>
<%@ Register Src="../FinIQ_User_Controls/Smart_Search_RM_Control/Smart_Serach_RM_Control.ascx" TagName="Smart_Search_RM_Control" TagPrefix="ucRM" %>
<%@ Register Src="../FinIQ_User_Controls/Smart_Search_Book_Control/Smart_Search_Book_Control.ascx" TagName="Smart_Search_Book_Control" TagPrefix="ucBook" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <link href="DCDDealEntry_MultiColumn.css" rel="stylesheet" type="text/css" />

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/FinIQJS/FixFocus.js" />
        </Scripts>
    </asp:ScriptManagerProxy>


    <script language="javascript" type="text/javascript">
        var secs;
        var remsecs;
        var timerID = null;
        var timerRunning = false;
        var delay = 1000;
        var timerblinkyld = null;
        var blnblink = true;
        var blnblinkyld = true;
        var countblinkyld = 0;
        var ValidityTimeConfirm;
        var arrTimerIds = new Array();
        var newremsecs;//for continuity
        function StopTimer(lblid, index, btnClearID) {

            clearTimeout(arrTimerIds[index]);
            clearTimeout(arrTimerIds[index]);
            arrTimerIds[index] = "";
            document.getElementById(lblid).innerHTML = "";
        }

        function StartTimer(lblid, ValidityTime, btnClearID, index) {

            if (ValidityTime == "") ValidityTime = 60;
            //document.getElementById(lblid).innerHTML = Pad(ValidityTime);
            document.getElementById(lblid).innerHTML = ValidityTime;
            if (ValidityTime < 20) { document.getElementById(lblid).style.color = "red"; }
            ValidityTime = ValidityTime - 1;
            ValidityTimeConfirm = ValidityTime;
            if (ValidityTime <= 0) {
                document.getElementById(btnClearID).click();
                clearTimeout(arrTimerIds[index]);
                clearTimeout(arrTimerIds[index]);
                arrTimerIds[index] = "";
                document.getElementById(lblid).innerHTML = "";

                //arrTimerIds[index] = self.setTimeout("StartTimer('" + lblid + "','0','" + btnClearID + "', " + index + ");", 1000);
            }
            else {
                arrTimerIds[index] = self.setTimeout("StartTimer('" + lblid + "','" + ValidityTime + "','" + btnClearID + "', " + index + ");", 1000);
            }

        }

        function Pad(number) {
            if (number < 10) number = 0 + "" + number; return number;
        }
        function SetMultiEntryDetails(ApplyButtonID, count) {
            document.getElementById(ApplyButtonID).click();
            document.getElementById('ctl00_MainContent_btnMulti').innerHTML = count + "Customers selected";

        }

        function ApplyChildValue(ApplyButtonID) {
            document.getElementById(ApplyButtonID).click();

        }

        function CloseStaticChild(CloseButtonID) {
            document.getElementById(CloseButtonID).click();
        }

        //Change done by PB: 09Dec2011
        //Added new column remarks, max lenght to be 50 characters only.
        function textboxMultilineMaxNumber(txt, maxLen) {
            try {
                if (txt.value.length > (maxLen - 1)) {
                    return false;
                }
            }
            catch (e) {
            }
        }


        function JS_StrikeChanged(button, control) {

            if (control.defaultValue != control.value) {
                document.getElementById(button).click();
            }

        }

        function AttachAccount(DealNo) {
            window.open('../AttAcc/AttAcc.aspx?DealNo=' + DealNo + '', 'AttachAcc', 'scrollbars=yes,resizable=no,menubar=0,status=1,width=850,height=430,top=50,left=400');

        }

        function SaveConfirmation(lblid, index, btnClearID, btnhdnConfirmation) {
            var retval;
            var timerTime;
            var solvedAt;
            //        var d1;
            var ValidityTime;
            var SolvedAt;
            var DealSolvedDateTime;
            var diff;
            var TimeStart;
            var screenid = document.getElementById('ctl00$MainContent$hdnScreenGUID').value;

            if ((arrTimerIds[0] != undefined) && (arrTimerIds[0] != '')) { StopTimer('ctl00_MainContent_dlPricer_ctl00_lblTimerValue', 0, 'ctl00_MainContent_dlPricer_ctl00_btnClearDeal'); }
            if ((arrTimerIds[1] != undefined) && (arrTimerIds[1] != '')) { StopTimer('ctl00_MainContent_dlPricer_ctl01_lblTimerValue', 1, 'ctl00_MainContent_dlPricer_ctl01_btnClearDeal'); }
            if ((arrTimerIds[2] != undefined) && (arrTimerIds[2] != '')) { StopTimer('ctl00_MainContent_dlPricer_ctl02_lblTimerValue', 2, 'ctl00_MainContent_dlPricer_ctl02_btnClearDeal'); }
            if ((arrTimerIds[3] != undefined) && (arrTimerIds[3] != '')) { StopTimer('ctl00_MainContent_dlPricer_ctl03_lblTimerValue', 3, 'ctl00_MainContent_dlPricer_ctl03_btnClearDeal'); }
            if ((arrTimerIds[4] != undefined) && (arrTimerIds[4] != '')) { StopTimer('ctl00_MainContent_dlPricer_ctl04_lblTimerValue', 4, 'ctl00_MainContent_dlPricer_ctl04_btnClearDeal'); }
            if ((arrTimerIds[5] != undefined) && (arrTimerIds[5] != '')) { StopTimer('ctl00_MainContent_dlPricer_ctl05_lblTimerValue', 5, 'ctl00_MainContent_dlPricer_ctl05_btnClearDeal'); }

            retval = window.showModalDialog("ConfirmationDialog.aspx?PopupIndex=" + index + "&Screenid=" + screenid, "", "dialogWidth:420px; dialogHeight:425px;status=no;");
            if (retval == undefined) { retval = false; }

            if (arrTimerIds[0] != undefined) {
                if (retval == false) { Start_New_Timer(0); }
                if (retval == true && index != 0) { Start_New_Timer(0); }
            }

            if (arrTimerIds[1] != undefined) {
                if (retval == false) { Start_New_Timer(1); }
                if (retval == true && index != 1) { Start_New_Timer(1); }
            }

            if (arrTimerIds[2] != undefined) {
                if (retval == false) { Start_New_Timer(2); }
                if (retval == true && index != 2) { Start_New_Timer(2); }
            }

            if (arrTimerIds[3] != undefined) {
                if (retval == false) { Start_New_Timer(3); }
                if (retval == true && index != 3) { Start_New_Timer(3); }
            }

            if (arrTimerIds[4] != undefined) {
                if (retval == false) { Start_New_Timer(4); }
                if (retval == true && index != 4) { Start_New_Timer(4); }
            }

            if (arrTimerIds[5] != undefined) {
                if (retval == false) { Start_New_Timer(5); }
                if (retval == true && index != 5) { Start_New_Timer(5); }
            }

            return retval;

        }

        function GetClientDate(index) {
            var d1 = new Date().toLocaleString();
            document.getElementById("ctl00_MainContent_dlPricer_ctl0" + index + "_hdnSolvedAt_ClientSide").innerText = d1;
        }


        function Start_New_Timer(index) {
            var CurrentDateTime1 = new Date();
            var ValidityTime = document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_hdnValidityTime').value;
            var SolvedAt = document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_hdnSolvedAt_ClientSide').value;
            var DealSolvedDateTime = new Date(Date.parse(SolvedAt.replace(/-/g, " ")))
            var diff = (CurrentDateTime1 - DealSolvedDateTime) / 1000;
            var TimeStart = Math.floor(ValidityTime - diff);
            //StopTimer('ctl00_MainContent_dlPricer_ctl02_lblTimerValue', 2, 'ctl00_MainContent_dlPricer_ctl02_btnClearDeal');
            var status = document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_hdnSaveButtonFormat').value;
            if (status == 'E') {
                arrTimerIds[index] = self.setTimeout("StartTimer('ctl00_MainContent_dlPricer_ctl0" + index + "_lblTimerValue','" + TimeStart + "','ctl00_MainContent_dlPricer_ctl0" + index + "_btnClearDeal', " + index + ");", 1000);
            }
        }
        function EnableAcceptButton(index) {

            if (newremsecs > 0) {
                document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_btnAcceptDeal').disabled = false;
                StartTimer(document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_lblTimerValue').id, newremsecs, document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_btnClearDeal').id, index);
            }
            else {
                //do not enable Accept button
            }
        }
        //Madan on 30-Dec-2019 JIRA :  MBBSGUP-1313
        function DisableAcceptButton(index) {

            //if (newremsecs > 0) {
                document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_btnAcceptDeal').disabled = true;
                //StartTimer(document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_lblTimerValue').id, newremsecs, document.getElementById('ctl00_MainContent_dlPricer_ctl0' + index + '_btnClearDeal').id, index);
            //}
            //else {
                //do not enable Accept button
            //}
        }
        //Madan
        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(initializeRequest);

        function initializeRequest(sender, args) {
            document.getElementById('ctl00_MainContent_lblServerRequest').innerHTML = "";
            if (prm.get_isInAsyncPostBack()) {
                // alert("Another request is already in progress");
                document.getElementById('ctl00_MainContent_lblServerRequest').innerHTML = "Another request is already in progress";
                args.set_cancel(true);
            }
        }
        function endRequest(sender, args) {
            document.getElementById('ctl00_MainContent_lblServerRequest').innerHTML = "";
        }

        if (window.addEventListener) {
            // Check for addEventListener first, since IE9/10 have both,
            // but you should use the standard over the deprecated IE-specific one
            window.addEventListener('onkeyup', buttonclickonF8);
        } else if (window.attachEvent) {
            window.attachEvent('onkeyup', buttonclickonF8);
        }

        // document.attachEvent('onkeyup', buttonclickonF8);
        function buttonclickonF8() {
            if (event.keyCode == 119) {
                document.getElementById('ctl00_MainContent_btnSolve').click();
            }
        }
        function InitializeconfirmationTimer(timer) {
            // Set the length of the timer, in seconds
            //alert(timer);
            LoadModalDiv();

            //ValidityTimeConfirm = document.getElementById('ctl00_MainContent_hdnValidityConfirm').value;
            //alert(ValidityTimeConfirm);
            secs = 0;
            remsecs = ValidityTimeConfirm;
            StopTheconfirmationClock();
            //var preM;
            //preM = 'ctl00_MainContent_';
            //document.getElementById(preM + 'btnProceed').disabled = false;
            StartTheconfirmationTimer();
        }
        function HideModalDiv(that, event) {

            var bcgDiv = document.getElementById("divBackground");
            $("#ctl00_MainContent_pnlDealConfirmation").hide();
            $("#ctl00_MainContent_btnConfirm").click();
            bcgDiv.style.display = "none";
           

        }
        function LoadModalDiv() {

            var bcgDiv = document.getElementById("divBackground");

            bcgDiv.style.display = "block";
        }
        function StopTheconfirmationClock() {

            if (timerRunning) {

                clearTimeout(timerID);
                //var preM;
                //preM = 'ctl00_MainContent_';
                if (document.getElementById('ctl00_MainContent_btnConfirm')) { document.getElementById('ctl00_MainContent_btnConfirm').disabled = true; }



                if (document.getElementById('ctl00_MainContent_lblTimer')) { document.getElementById('ctl00_MainContent_lblTimer').innerHTML = ''; document.getElementById('ctl00_MainContent_lblTimerCap').innerHTML = ''; }
                //remsecs = '0';
            }
            timerRunning = false;
        }
        function StartTheconfirmationTimer() {

            //if (secs >= ValidityTimeConfirm) {

            //    StopTheconfirmationClock();
            //    // Here's where you put something useful that's
            //    // supposed to happen after the allotted time.
            //    // For example, you could display a message:
            //}
            if (remsecs == 0) {
                StopTheconfirmationClock();
                //Madan on 19-Jan-2018 to disable confirm button
                $("#ctl00_MainContent_btnConfirm").parent('td').find(".btn").attr("disabled", "disabled");
                $("#ctl00_MainContent_btnConfirm").attr("disabled", "disabled");
                $("#ctl00_MainContent_btnConfirm").removeAttr("style");

            }
            else {

                var preM;
                preM = 'ctl00_MainContent_';
                if (document.getElementById('ctl00_MainContent_lblTimer'))
                {
                    document.getElementById('ctl00_MainContent_lblTimer').innerHTML = remsecs + ' seconds remaining';
                    if (remsecs < 20) { document.getElementById('ctl00_MainContent_lblTimer').style.color = "red"; }


                }
                if (document.getElementById('ctl00_MainContent_btnConfirm')) { document.getElementById('ctl00_MainContent_btnConfirm').disabled = false; }


                if (secs == 0) {

                }
                if (secs > 0 & secs <= ValidityTimeConfirm / 10) {

                }


                //if (secs == ValidityTimeConfirm - 1) {

                //    if (document.getElementById('ctl00_MainContent_lblTimer')) { document.getElementById('ctl00_MainContent_lblTimer').innerHTML = ''; document.getElementById('ctl00_MainContent_lblTimerCap').innerHTML = ''; }
                //}
                secs = secs + 1;
                remsecs = remsecs - 1;
                newremsecs = remsecs;
                timerRunning = true
                timerID = setTimeout("StartTheconfirmationTimer()", delay)
            }
        }
        //Madan on 06-aug-2019 For tenor display issue on Rollover mode
        $(document).ready(function () {
            $.urlParam = function (name) {
                var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
                return decodeURI(results[1]) || 0;
            }
            //$("select[id$='ddlTenor']").is(":visible")
            if ($.urlParam('Mode') == 'DCDQEC' || $.urlParam('Mode') == 'DCDQEN' || $.urlParam('Mode') == 'DCDTEC' || $.urlParam('Mode') == 'DCDREN' || $.urlParam('Mode') == 'DCDTEN') {

                $("input[id$='txtTenor']").attr('style', 'width:63px !important;');
            }
            else {
                $(".ddlTenortd").attr('style', 'display:none');
            }

        });

        var parameter = Sys.WebForms.PageRequestManager.getInstance();
        parameter.add_endRequest(function () {

            $.urlParam = function (name) {
                var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
                return decodeURI(results[1]) || 0;
            }

            if ($.urlParam('Mode') == 'DCDQEC' || $.urlParam('Mode') == 'DCDQEN' || $.urlParam('Mode') == 'DCDTEC' || $.urlParam('Mode') == 'DCDTEN' || $.urlParam('Mode') == 'DCDREN') {

                $("input[id$='txtTenor']").attr('style', 'width:63px !important;');
            }
            else {
                $(".ddlTenortd").attr('style', 'display:none');
            }
        });
        function SaveConfirm() {



            if (confirm('Do you want to Accept?')) {

                document.getElementById('ctl00_MainContent_hdnDealConfirmation').value = "Y";
            }
            else {
                document.getElementById('ctl00_MainContent_hdnDealConfirmation').value = "N";
            }
        }
        var dialogConfirmed = false;
        function ViewDialogConfirm(obj, title, dialogText) {
            if ($("#pageName").html() != null) {
            }
            if (!dialogConfirmed) {
                //$('html').append(String.Format("<div id='dialog' title='{0}'><p style='float:left;'><span class='ui-icon ui-icon-alert' style='float:left; margin:0 5px 20px 0;'></span>{1}</p></div>", title, dialogText));
                $('html').append(String.Format("<div id='dialog' title='{0}'><div class='infoConfirmationBox' style='float:left; height:22px !important; width:22px !important; margin: 13px 15px 20px 10px;'></div><p> " + dialogText + " </p></div>", title));

                $('#dialog').dialog
                        ({
                            height: 180,
                            width: 350,
                            modal: true,
                            resizable: false,
                            draggable: true,
                            close: function (event, ui) { $('html').find('#dialog').remove(); },
                            buttons:
                            {
                                'Yes': function () {

                                    //document.getElementById('ctl00_MainContent_hdnDealConfirmation').value = "Y";
                                    $('#' + obj).click();
                                    $(this).dialog('close');
                                },
                                'No': function () {
                                    //document.getElementById('ctl00_MainContent_hdnDealConfirmation').value = "N";

                                    $(this).dialog('close');
                                    $('html').find("#dialog").remove();
                                    return false;
                                }
                            }
                        });
            }

            return dialogConfirmed;
            $(".ui-widget-overlay").height($("body").height());

        }
    </script>


    <asp:UpdatePanel ID="upnlPricer" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <div id="divBackground" style="position: fixed; z-index: 999; height: 100%; width: 100%; top: 0; left: 0; background-color: #f7f7f7; filter: alpha(opacity=60); opacity: 0.6; -moz-opacity: 0.8; display: none">
            </div>
            <div>
                <asp:Panel ID="pnlDealConfirmation" BorderStyle="Groove" HorizontalAlign="Center"
                    BorderWidth="0" Visible="false" runat="server">
                    <input type="hidden" id="hdnPricerItem" name="hdnPricerItem" runat="server" />
                    <input type="hidden" id="hdnValidityConfirm" name="hdnValidityConfirm" runat="server" />
                    <table border="0" class="ConfirmationBoxPos">

                        <tr>
                            <td colspan="4" style="height: 4px;"></td>
                        </tr>

                        <tr>
                            <td colspan="4" style="text-align: center;">
                                <asp:Label ID="lblHeaderConfirmation" runat="server" CssClass="lblHeader1">Are you sure you want to save the deal with following details?</asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" style="height: 14px;"></td>
                        </tr>


                        <tr>
                            <td colspan="2">
                                <table style="text-align: left;"> 
                                    <tr>
                                        <td style="width: 40px;" class="ctlBlotterPaddingRight"></td>
                                        <td class="lblBlotterPaddingRight">
                                            <asp:Label ID="lblCustNameCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Customer Name"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblCustNameConfirm" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td class="ctlBlotterPaddingRight" style="width: 40px;"></td>

                                    </tr>

                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblCcyPairCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Dealing Pair"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblCcyPair" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblPrincipalCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Deposit Amount"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblPrincipal" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblTransactionDateCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Transaction Date"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTransactionDate" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblValueDateCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Deposit Date"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblValueDate" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblFixingDateCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Fixing/Exercise Date"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblFixingDate" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblMaturityDateCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Maturity Date"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMaturityDate" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblTenorCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Tenor Days"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTenor" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblSpotRateCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Spot Rate"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblSpotRate" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblStrikeRateCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Strike Rate"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblStrikeRate" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblMatAmtdepoCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Maturity Amount(Depo)"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMatAmtdepo" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblMatAmtAltCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Maturity Amount(Alt)"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMatAmtAlt" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblCustomerYieldCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Customer Yield % p.a."></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblCustomerYield" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblMarginPerCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Profit Margin %"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMarginPer" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <asp:Label ID="lblMarginAmtCap" runat="server" CssClass="lblConfirmBOLDWidth12" Text="Profit Margin(Depo)"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMarginAmt" runat="server" CssClass="lblConfirmBOLDWidth12"></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td style="text-align: center;" colspan="2">
                                            <asp:Label ID="lblTimer" runat="server" CssClass="lblConfirmTimerBOLDWidth14"></asp:Label>
                                            <asp:Label ID="lblTimerCap" runat="server" CssClass="lblConfirmTimerBOLDWidth14" Text=""></asp:Label>
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td></td>
                                        <td>
                                            <input type="button" class="btn" value="Confirm" onclick="HideModalDiv(this, event);" style="width: 110px;" />
                                            <asp:Button ID="btnConfirm" runat="server" Text="" CssClass="show_hide" Width="0px" />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnCancelConfirmation" runat="server" Text="Cancel" CssClass="btn" Width="110px" />
                                        </td>
                                        <td></td>
                                    </tr>
                        </tr>
                    </table>
                    </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>

            <asp:Panel ID="pnlOuter" runat="server">
                <input type="hidden" id="hdnScreenGUID" name="hdnScreenGUID" runat="server" />

                <input type="hidden" id="hdnProductID" name="hdnProductID" runat="server" />
                <input type="hidden" id="hdnProductCode" name="hdnProductCode" runat="server" />
                <input type="hidden" id="hdnProductName" name="hdnProductName" runat="server" />

                <input type="hidden" id="hdnItemCount" name="hdnItemCount" runat="server" />
                <input type="hidden" id="hdnPEN_DepoCCY" name="hdnPEN_DepoCCY" runat="server" />
                <input type="hidden" id="hdnPEN_AltCCY" name="hdnPEN_AltCCY" runat="server" />
                <input type="hidden" id="hdnPEN_Tenor" name="hdnPEN_Tenor" runat="server" />
                <input type="hidden" id="hdnPEN_Spread" name="hdnPEN_Spread" runat="server" />
                <input type="hidden" id="hdnPEN_Strike" name="hdnPEN_Strike" runat="server" />
                <input type="hidden" id="hdnPEN_Yield" name="hdnPEN_Yield" runat="server" />
                <input type="hidden" id="hdnDealConfirmation" name="hdnDealConfirmation" runat="server" />
                <input type="hidden" id="hdnAmountValidationDA" name="hdnAmountValidationDA" runat="server" />
                <input type="hidden" id="hdnDealConfirmationTime" name="hdnDealConfirmationTime" runat="server" />
                <asp:Label ID="lblErrorMessage" runat="server" Font-Bold="true" CssClass="lblerror"
                    ForeColor="Red"></asp:Label>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td align="center">
                            <iframe id="iframe3" runat="server" frameborder="0" height="200px" width="130px"
                                class="UCPanelFind" visible="false"></iframe>
                            <asp:Panel ID="panelErrF3" runat="server" BorderStyle="Groove" HorizontalAlign="Center"
                                BorderWidth="0" Height="200px" CssClass="UCPanelFind UCOverflow UCBlock">
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" style="width: 100%">
                            <iframe id="iframe2" runat="server" frameborder="0" height="20px" width="130px" class="UCPanelFind"
                                visible="false"></iframe>
                            <asp:Panel ID="pnllblError" runat="server" BorderStyle="Groove" HorizontalAlign="Center"
                                BorderWidth="0" Height="20px" CssClass="UCPanelFind UCOverflow UCBlock">
                                <asp:Label ID="lblServerRequest" runat="server" Font-Bold="true" CssClass="lblerror"
                                    ForeColor="Red"></asp:Label>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <table cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td style="padding-bottom: 20px;" valign="top">
                                        <table align="left" cellspacing="0" style="border-collapse: separate;">
                                            <tr>
                                                <td class="lbl" id="multiClose" style="height: 50px;">

                                                    <table style="width: 100%">

                                                        <tr>
                                                            <td>
                                                                <asp:Button ID="btnAddItem" Visible="true" runat="server" Text="Add Item" CssClass="btn"
                                                                    ToolTip="Add Item" TabIndex="1"></asp:Button></td>
                                                            <td>
                                                                <asp:Button ID="btnSolve" Visible="true" CausesValidation="True" runat="server" Text="Solve All"
                                                                    CssClass="btn" ToolTip="Solve"></asp:Button></td>
                                                            <td></td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>

                                            <tr>
                                                <td>
                                                    <table class="Filter PricerLabelTableWidth" id="tblTrEntity">
                                                        <tr runat="server" id="trEntity">
                                                            <td class="lbl">Entity 
                                                            </td>
                                                        </tr>
                                                        <tr runat="server" id="trProductLabel">
                                                            <td class="lbl  ">
                                                                <asp:Label ID="lblProduct" runat="server" Text="Product"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Solve For
                                                            </td>
                                                        </tr>
                                                    </table>

                                                    <table class="Filter PricerLabelTableWidth" id="tblCustomerlbl" runat="server">
                                                        <tr>
                                                            <td class="lbl">Book 
                                                            </td>

                                                        </tr>
                                                        <tr style="display: none;">
                                                            <td class="lbl">RM (Main) Branch
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">RM (Dealing) 
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">RM (Main)
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl  CustomerPicker_label">Customer
                                                            </td>
                                                        </tr>

                                                        <tr id="tr_SegmentCode_lbl" runat="server" visible="false">
                                                            <td class="lbl">Segment Code
                                                            </td>
                                                        </tr>

                                                        <tr id="tr_RWMContainerID_lbl" runat="server" visible="false">
                                                            <td class="lbl">RWM Container ID
                                                            </td>
                                                        </tr>

                                                    </table>

                                                    <table class="Filter PricerLabelTableWidth" id="tblDealEntryMultiPricer">
                                                        <tr>
                                                            <td class="lbl">Investment Currency
                                                                <asp:Label ID="lblDepoBais" runat="server" Text="/ Basis"></asp:Label>
                                                            </td>

                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Alternate Currency
                                                                <asp:Label ID="lblAltBasis" runat="server" Text="/ Basis"></asp:Label>
                                                            </td>

                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Notional (Inv)
                                                            </td>

                                                        </tr>
                                                        <tr style="display: none">
                                                            <td></td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Deposit Tenure
                                                            </td>

                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Trade Date
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Value Date
                                                            </td>
                                                        </tr>
                                                        <tr id="trSpotDateLabel" runat="server">
                                                            <td class="lbl" style="height: 33px;">Spot Date
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Expiry Date / Option Days
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl" style="height: 34px;">Maturity Date / Deposit Days
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Spot / Break Even Rate
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Strike / <asp:Label ID="StrikePointsLabel" runat="server" Text="Strike Points"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr id="trlbl_PPPercentage" runat="server">
                                                            <td class="lbl">PP % / Far Strike
                                                            </td>
                                                        </tr>

                                                    </table>

                                                    <table class="Filter PricerLabelTableWidth" runat="server" id="tblMarginLabels">
                                                        <tr>
                                                            <td class="lbl">Customer Yield / Total Int</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">
                                                                <asp:Label ID="lblSpreadpa" runat="server" Text="% Spread p.a."></asp:Label>
                                                                / Spread (Depo)
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Spread (Alternate)
                                                                <asp:Label ID="lblBankBaseCurrency" runat="server" Visible="false" CssClass="lbl" Text="(USD)"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="lbl">Repayment (Inv) / (Alt)
                                                            </td>
                                                        </tr>

                                                        <tr id="trlbl" runat="server">
                                                            <td class="lbl remarksTD">Remarks
                                                            </td>
                                                        </tr>

                                                    </table>

                                                    <table class="Filter PricerLabelTableWidth" id="tblAmountLabel" runat="server">
                                                        <tr>
                                                            <td class="lblwidth">Board Rate (p.a.%) / Ordinary Int
                                                            </td>

                                                        </tr>
                                                        <tr id="trInternalCostlabel" runat="server">
                                                            <td class="lbl">Internal Cost (p.a.%) / Amt
                                                            </td>
                                                        </tr>
                                                        <tr id="tr_lbl_CostRate" runat="server">
                                                            <td class="lbl">Option Premium % 
                                                            </td>
                                                        </tr>

                                                        <tr id="tr_lbl_PremiumReceivable" runat="server">
                                                            <td class="lbl">Premium Receivable Amt
                                                            </td>
                                                        </tr>
                                                        <tr id="tr_lbl_PremiumPayable" runat="server">
                                                            <td class="lbl">Premium Payable Amt
                                                            </td>
                                                        </tr>
                                                        <tr id="tr_lbl_Optionbasedon" runat="server">

                                                            <td class="lbl">Option based on
                                                            </td>
                                                        </tr>
                                                        <tr id="trDeltaLabel" runat="server">
                                                            <td class="lbl">Delta % / Amount
                                                            </td>
                                                        </tr>
                                                        <tr id="trVolLabel" runat="server">
                                                            <td class="lbl">Volatility %
                                                            </td>
                                                        </tr>
                                                        <tr id="tr_lbl_SwapPtsFwdRate" runat="server">
                                                            <td class="lbl">Swap Points / Forward Rate
                                                            </td>
                                                        </tr>
                                                        <tr id="tblInterestLabels" runat="server">
                                                            <td class="lbl">Interest Rates % (IR1 / IR2)
                                                            </td>
                                                        </tr>
                                                        <tr id="trSpreadLabels" runat="server" visible="true">
                                                            <td class="lbl">Option Spread %
                                                            </td>
                                                        </tr>
                                                        <tr id="trSpreadLabels1" runat="server" visible="true">
                                                            <td class="lbl">MM Spread % p.a.
                                                            </td>
                                                        </tr>
                                                        <tr id="trInterestAmtAltLabel" runat="server">
                                                            <td class="lbl">Interest Amount (Inv / Alt)
                                                            </td>
                                                        </tr>
                                                        <tr id="trlbl_PPMinPremPerc" runat="server">
                                                            <td class="lbl">Min PP Leg Prem %
                                                            </td>
                                                        </tr>

                                                    </table>

                                                    <table class="Filter PricerLabelTableWidth" id="tblTaxLabels" runat="server">
                                                        <tr id="trTaxOnLabel" runat="server">
                                                            <td class="lbl">Tax On
                                                            </td>
                                                        </tr>
                                                        <tr id="trTaxRatesLabel" runat="server">
                                                            <td class="lbl">Tax Rates % / Amt
                                                            </td>
                                                        </tr>
                                                    </table>

                                                    <table class="Filter PricerLabelTableWidth" id="tblStatic" runat="server">
                                                        <tr id="trSalesInforef" runat="server">
                                                            <td class="lbl">
                                                                <asp:Label ID="lblref" runat="server" Text="ref:"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr id="trSalesInfosrc" runat="server">
                                                            <td class="lbl">
                                                                <asp:Label ID="lblsrc" runat="server" Text="src:"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr id="trSalesInfocls" runat="server">
                                                            <td class="lbl">
                                                                <asp:Label ID="lblcls" runat="server" Text="cls:"></asp:Label>
                                                            </td>
                                                        </tr>
                                                        <tr id="trRMLabel" runat="server">
                                                            <td class="lbl">RM 
                                                            </td>
                                                        </tr>
                                                        <tr id="trDealerLabel" runat="server">
                                                            <td class="lbl">Dealer
                                                            </td>
                                                        </tr>
                                                        <tr id="trBookLabel" runat="server">
                                                            <td class="lbl">Branch
                                                            </td>
                                                        </tr>
                                                        <tr id="trCustPanLabel" runat="server">
                                                            <td class="lbl">Customer PAN
                                                            </td>
                                                        </tr>
                                                        <tr id="trCustNameLabel" runat="server">
                                                            <td class="lbl">Customer Name
                                                            </td>
                                                        </tr>
                                                        <tr id="trCustGrpLabel" runat="server">
                                                            <td class="lbl">Customer Group
                                                            </td>
                                                        </tr>
                                                        <tr runat="server" id="trDebitInstruction">
                                                            <td class="lbl">Debit Instruction</td>
                                                        </tr>
                                                        <tr runat="server" id="trCreditInstructionDepe">
                                                            <td class="lbl">Credit Instruction Depo</td>
                                                        </tr>
                                                        <tr runat="server" id="trCreditInstructionAlt">
                                                            <td class="lbl">Credit Instruction Alt</td>
                                                        </tr>
                                                        <tr runat="server" id="trCreditInstructionInt" visible="false">
                                                            <td class="lbl">Credit Instruction (Int)</td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td valign="top">
                                        <asp:DataList ID="dlPricer" runat="server" CssClass="lbl" RepeatDirection="Horizontal" RepeatLayout="Table" Style="border-collapse: separate;">

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

                                                        <input type="hidden" id="hdnDecimalRates" name="hdnDecimalRates" runat="server" />
                                                        <input type="hidden" id="hdnDecimalAmount1" name="hdnDecimalAmount1" runat="server" />
                                                        <input type="hidden" id="hdnDecimalAmount2" name="hdnDecimalAmount2" runat="server" />
                                                        <input type="hidden" id="hdnDecimalRate1" name="hdnDecimalRate1" runat="server" />
                                                        <input type="hidden" id="hdnDecimalRate2" name="hdnDecimalRate2" runat="server" />
                                                        <input type="hidden" id="hdnDepoLeapYearBasis" name="hdnDepoLeapYearBasis" runat="server" />
                                                        <input type="hidden" id="hdnAltLeapYearBasis" name="hdnAltLeapYearBasis" runat="server" />
                                                        <input type="hidden" id="hdnBaseSpot" name="hdnBaseSpot" runat="server" />
                                                        <input type="hidden" id="hdnBaseDA" name="hdnBaseDA" runat="server" />
                                                        <input type="hidden" id="hdnPointShift" name="hdnPointShift" runat="server" />
                                                        <input type="hidden" id="hdnPairID" name="hdnPairID" runat="server" />
                                                        <input type="hidden" id="hdnCCYPair" name="hdnCCYPair" runat="server" />
                                                        <input type="hidden" id="hdnMainRMID" name="hdnMainRMID" runat="server" />
                                                        <input type="hidden" id="hdnMainRM" name="hdnMainRM" runat="server" />
                                                        <input type="hidden" id="hdnDealingRMID" name="hdnDealingRMID" runat="server" />
                                                        <input type="hidden" id="hdnDealingRM" name="hdnDealingRM" runat="server" />
                                                        <input type="hidden" id="hdnBookID" name="hdnBookID" runat="server" />
                                                        <input type="hidden" id="hdnBookName" name="hdnBookName" runat="server" />
                                                        <input type="hidden" id="hdnBookRMID" name="hdnBookRMID" runat="server" />
                                                        <input type="hidden" id="hdnBookRMName" name="hdnBookRMName" runat="server" />
                                                        <input type="hidden" id="hdnVega" name="hdnVega" runat="server" />
                                                        <input type="hidden" id="hdnGamma" name="hdnGamma" runat="server" />
                                                        <input type="hidden" id="hdnTheta" name="hdnTheta" runat="server" />
                                                        <input type="hidden" id="hdnRHO" name="hdnRHO" runat="server" />
                                                        <input type="hidden" id="hdnVegaAmt" name="hdnVegaAmt" runat="server" />
                                                        <input type="hidden" id="hdnGammaAmt" name="hdnGammaAmt" runat="server" />
                                                        <input type="hidden" id="hdnThetaAmt" name="hdnThetaAmt" runat="server" />
                                                        <input type="hidden" id="hdnRHOAmt" name="hdnRHOAmt" runat="server" />
                                                        <input type="hidden" id="hdnOPPOS_StaticField1" name="hdnOPPOS_StaticField1" runat="server" />
                                                        <input type="hidden" id="hdnDeltaHedgeSpotSpread" name="hdnDeltaHedgeSpotSpread"
                                                            runat="server" />
                                                        <input type="hidden" id="hdnBusinessDate" name="hdnBusinessDate" runat="server" />
                                                        <input type="hidden" id="hdnLocalDate" name="hdnLocalDate" runat="server" />
                                                        <input type="hidden" id="hdnMinSpreadPct" name="hdnMinSpreadPct" runat="server" />
                                                        <input type="hidden" id="hdnMaxSpreadPct" name="hdnMaxSpreadPct" runat="server" />
                                                        <input type="hidden" id="hdnMaxDealNotional" name="hdnMaxDealNotional" runat="server" />
                                                        <input type="hidden" id="hdnMinDealNotional" name="hdnMinDealNotional" runat="server" />
                                                        <input type="hidden" id="hdnMinSpreadAmt" name="hdnMinSpreadAmt" runat="server" />
                                                        <input type="hidden" id="hdnMaxSpreadAmt" name="hdnMaxSpreadAmt" runat="server" />
                                                        <input type="hidden" id="hdnTimerID" name="hdnMaxSpreadAmt" runat="server" />
                                                        <input type="hidden" id="hdnIRDepo_Compounded" name="hdnIRDepo_Compounded" runat="server" />
                                                        <input type="hidden" id="hdnIRALt_Compounded" name="IRALt_Compounded" runat="server" />
                                                        <input type="hidden" id="hdnParentDeal_CcyPair" name="hdnParentDeal_CcyPair" runat="server" />
                                                        <input type="hidden" id="hdnRollOver_Root" name="hdnRollOver_Root" runat="server" />
                                                        <input type="hidden" id="hdnRollOver_Root_Depo_Ccy" name="hdnRollover_Root_CCY" runat="server" />
                                                        <input type="hidden" id="hdnRollOver_Root_Depo_Amount" name="hdnRollover_Root_Amt"
                                                            runat="server" />
                                                        <input type="hidden" id="hdnRollover_Root_Depo_Equvi_Amount_Now" name="hdnRollover_Root_Depo_Equvi_Amount_Now"
                                                            runat="server" />
                                                        <input type="hidden" id="hdnOptionPremiumBasedOn_Rollover" name="hdnOptionPremiumBasedOn_Rollover"
                                                            runat="server" />
                                                        <input type="hidden" id="hdnPremiumAnnualised" name="hdnPremiumAnnualised" runat="server" />
                                                        <input type="hidden" id="hdnTotalYield_NR" name="hdnCustYield_NR" runat="server" />
                                                        <input type="hidden" id="hdnInterestRateDepo_Rounded_AfterTax" name="hdnInterestRateDepo_Rounded_AfterTax"
                                                            runat="server" />
                                                        <input type="hidden" id="hdnMarketPremium" name="hdnMarketPremium" runat="server" />
                                                        <input type="hidden" id="hdnPremiumSpreadDepo" name="hdnPremiumSpreadDepo" runat="server" />
                                                        <input type="hidden" id="hdnCustType" name="hdnCustType" runat="server" />
                                                        <input type="hidden" id="hdnCustAccrediatedFlag" name="hdnCustAccrediatedFlag" runat="server" />
                                                        <input type="hidden" id="hdnStaffYN" name="hdnStaffYN" runat="server" />
                                                        <input type="hidden" id="hdnRateSetName" name="hdnRateSetName" runat="server" />
                                                        <input type="hidden" id="hdnDealerActivationFlag" name="hdnDealerActivationFlag" runat="server" />
                                                        <input type="hidden" id="hdnBookActivationFlag" name="hdnBookActivationFlag" runat="server" />
                                                        <input type="hidden" id="hdnSolvedAt" name="hdnSolvedAt" runat="server" />
                                                        <input type="hidden" id="hdnSolvedAt_ClientSide" name="hdnSolvedAt_ClientSide" runat="server" />
                                                        <input type="hidden" id="hdnValidityTime" name="hdnValidityTime" runat="server" />
                                                        <input type="hidden" id="hdnClickButtonStatus" name="hdnValidityTime" runat="server" />
                                                        <input type="hidden" id="hdnVolatilityNONRounded" name="hdnVolNONRounded" runat="server" />
                                                        <input type="hidden" id="hdnMENTotalNotionalAmt" name="hdnMENTotalNotionalAmt" runat="server" />
                                                        <input type="hidden" id="hdnMENParentDealNumber" name="hdnMENParentDealNumber" runat="server" />
                                                        <input type="hidden" id="hdnIRDepo_NR" name="hdnIRDepo_NR" runat="server" />
                                                        <input type="hidden" id="hdnIRAlt_NR" name="hdnIRAlt_NR" runat="server" />
                                                        <input type="hidden" id="hdnBidVol" name="hdnBidVol" runat="server" />
                                                        <input type="hidden" id="hdnAskVol" name="hdnAskVol" runat="server" />
                                                        <input type="hidden" id="hdnPrem_Strike" name="hdnPrem_Strike" runat="server" />
                                                        <input type="hidden" id="hdnPrem_Strike_Far" name="hdnPrem_Strike_Far" runat="server" />
                                                        <input type="hidden" id="hdnTenorCode" name="hdnTenorCode" runat="server" />
                                                        <input type="hidden" id="hdnFarStrikeOfferVol" name="hdnFarStrikeOfferVol" runat="server" />
                                                        <input type="hidden" id="hdnEnhancedYield_NR" name="hdnEnhancedYield_NR" runat="server" />
                                                        <input type="hidden" id="hdnPremiumPct_NR" name="hdnPremiumPct_NR" runat="server" />
                                                        <input type="hidden" id="hdnsDefaultCrDays" name="hdnsDefaultCrDays" runat="server" />
                                                        <input type="hidden" id="hdnsDefaultDrDays" name="hdnsDefaultDrDays" runat="server" />
                                                        <input type="hidden" id="hdnLeft_USD_Pair" name="hdnLeft_USD_Pair" runat="server" />
                                                        <input type="hidden" id="hdnRight_USD_Pair" name="hdnRight_USD_Pair" runat="server" />
                                                        <input type="hidden" id="hdnOriginalRMSPread" name="hdnOriginalRMSPread" runat="server" />
                                                        <input type="hidden" id="hdnAnnualisedCustomerPremium" name="hdnAnnualisedCustomerPremium" runat="server" />
                                                        <input type="hidden" id="hdnSaveButtonFormat" name="hdnSaveButtonFormat" runat="server" />
                                                        <input type="hidden" id="hdnCustomerProdSubDate" name="hdnCustomerProdSubDate" runat="server" />
                                                        <input type="hidden" id="hdnDealInputsModified" name="hdnDealModifedAfterSOlve" runat="server" />
                                                        <input type="hidden" id="hdnFarStrikeNonRounded" name="hdnFarStrikeNonRounded" runat="server" />
                                                        <input type="hidden" id="hdnOptionCutBookBased" name="hdnOptionCutBookBased" runat="server" />
                                                        <input type="hidden" id="hdnDebitCurrency" name="hdnDebitCurrency" runat="server" />
                                                        <input type="hidden" id="hdnCreditDepoCurrency" name="hdnCreditDepoCurrency" runat="server" />
                                                        <input type="hidden" id="hdnCreditAltCurrency" name="hdnCreditAltCurrency" runat="server" />
                                                        <input type="hidden" id="hdnCreditInterestCurrency" name="hdnCreditInterestCurrency"
                                                            runat="server" />
                                                        <input type="hidden" id="hdnPairLevelOptionCut" name="hdnPairLevelOptionCut" runat="server" />
                                                        <input type="hidden" id="hdnPrincipalIntDepo_NonRounded" name="hdnPrincipalIntDepo_NonRounded"
                                                            runat="server" />
                                                        <input type="hidden" id="hdnIsMetalDeal" name="hdnIsMetalDeal" runat="server" />
                                                        <input type="hidden" id="hdnMetalMinimumSize" name="hdnMetalMinimumSize" runat="server" />
                                                        <input type="hidden" id="hdnMetalMaximumSize" name="hdnMetalMaximumSize" runat="server" />
                                                        <input type="hidden" id="hdnSubProductCode" name="hdnSubProductCode" runat="server" />
                                                        <input type="hidden" id="hdnSubProductCode_PP" name="hdnSubProductCode_PP" runat="server" />
                                                        <input type="hidden" id="hdnLCY_Type" name="hdnLCY_Type" runat="server" />
                                                        <input type="hidden" id="hdnRCY_Type" name="hdnRCY_Type" runat="server" />
                                                        <input type="hidden" id="hdnLCY_LotSize" name="hdnLCY_LotSize" runat="server" />
                                                        <input type="hidden" id="hdnRCY_LotSize" name="hdnRCY_LotSize" runat="server" />
                                                        <input type="hidden" id="hdnDepoCcyMetalYN" name="hdnDepoCcyMetalYN" runat="server" />
                                                        <input type="hidden" id="hdnAltCcyMetalYN" name="hdnAltCcyMetalYN" runat="server" />
                                                        <input type="hidden" id="hdnRFQId" name="hdnRFQId" runat="server" />
                                                        <input type="hidden" id="hdnCustomerCleared" name="hdnCustomerCleared" runat="server" />
                                                        <input type="hidden" id="hdnBidRate_ORG" name="hdnBidRate_ORG" runat="server" />
                                                        <input type="hidden" id="hdnSpotFactor" name="hdnSpotFactor" runat="server" />
                                                        <input type="hidden" id="hdnAskRate_ORG" name="hdnAskRate_ORG" runat="server" />
                                                        <input type="hidden" id="hdnSpot_Spread" name="hdnSpot_Spread" runat="server" />

                                                        <input type="hidden" id="hdnVol_Org" name="hdnVol_Org" runat="server" />
                                                        <input type="hidden" id="hdnMkt_Prem" name="hdnMkt_Prem" runat="server" />
                                                        <input type="hidden" id="hdnPremium_Receivable" name="hdnPremium_Receivable" runat="server" />
                                                        <input type="hidden" id="hdnCust_Yield_Org" name="hdnCust_Yield_Org" runat="server" />
                                                        <input type="hidden" id="hdnDCSpotSpreadAmt" name="hdnDCSpotSpreadAmt" runat="server" />

                                                        <input type="hidden" id="hdncustomerid" name="hdncustomerid" runat="server" />
                                                        <input type="hidden" id="hdnCustName" name="hdnCustName" runat="server" />
                                                        <input type="hidden" id="hdnVolChange" name="hdnVolChange" runat="server" />
                                                        <input type="hidden" id="hdnIR1Change" name="hdnIR1Change" runat="server" />
                                                        <input type="hidden" id="hdnIR2Change" name="hdnIR2Change" runat="server" />
                                                        <input type="hidden" id="hdnBoardrateChange" name="hdnBoardrateChange" runat="server" />
                                                        <input type="hidden" id="hdnCustomerYield_NR" name="hdnCustomerYield_NR" runat="server" />
                                                        <input type="hidden" id="hdnMkt_Prem_NR" name="hdnMkt_Prem_NR" runat="server" />
                                                        <input type="hidden" id="hdnRateInterpolationBasis1" name="hdnRateInterpolationBasis1" runat="server" />
                                                        <input type="hidden" id="hdnRateInterpolationBasis2" name="hdnRateInterpolationBasis2" runat="server" />
                                                        <input type="hidden" id="hdnUseManualEnteredIRValues" name="hdnUseManualEnteredIRValues" runat="server" />
                                                        <input type="hidden" id="hdnImplyRatesClicked" name="hdnImplyRatesClicked" runat="server" />
                                                        <input type="hidden" id="hdnValidTill" name="hdnValidTill" runat="server" />
                                                        <input type="hidden" id="hdnOptionSpreadChange" name="hdnOptionSpreadChange" runat="server" />
                                                        <input type="hidden" id="hdnMMSpreadChange" name="hdnMMSpreadChange" runat="server" />
                                                        <input type="hidden" id="hdnAutoSaveFromDealEntry" name="hdnAutoSaveFromDealEntry" runat="server" />

                                                        <input type="hidden" id="hdnIAS_UniqueRequestID" name="hdnIAS_UniqueRequestID" runat="server" />
                                                        <input type="hidden" id="hdnIAS_ResponseStatus" name="hdnIAS_ResponseStatus" runat="server" />
                                                        <input type="hidden" id="hdnIAS_ResponseMessage" name="hdnIAS_ResponseMessage" runat="server" />
                                                        <input type="hidden" id="hdnIAS_ResponsePlanId" name="hdnIAS_ResponsePlanId" runat="server" />
                                                        <input type="hidden" id="hdnIAS_ResponseSignedDate" name="hdnIAS_ResponseSignedDate" runat="server" />
                                                        <%--''<MadanD | 03-Dec-2019 | MBBSGUP-1139 | Changes done | As per discussion with Rajesh M/Pratiksha D/Bageshree G on Call and EMail>
        'JIRA Ref: MBBSGUP-1242 Deal Entry - Dealer RM book control to be in sync 3.5.
        'Issue : Deal Entry - Dealer RM book control to be in sync 3.5.
        'Logs : N/A
        'Findings : Default value loading behaviour not in sync with production
        'Solution: Made in sync with prod (customer's default Main RM on config based DCDDEN_GetCustomerDefaultMainRM , changes in book to be retained on solver code commented ,if required can add.
        'Email Sub : JIRA MBBSGUP-1242 Deal Entry - Dealer RM book control to be in sync 3.5.
        'SQL change Y/N : N--%>
                                                        <%--<input type="hidden" id="hdnBookChanged" name="hdnBookChanged" runat="server" />--%>
                                                           <%-- ''<MadanD | 03-Dec-2019 | MBBSGUP-1139 | Changes done | As per discussion with Rajesh M/Pratiksha D/Bageshree G on Call and EMail>--%>
                                                        <div>
                                                            <asp:Panel ID="pnlError" runat="server" BorderStyle="solid" BorderWidth="0" Style="border: 1px solid #dddddd !important;" CssClass="UCPanelFind  UCOverflow UCBlock UCErrorBox" Visible="false">
                                                                <table style="width: 100%;">
                                                                    <tr>
                                                                        <td align="left" class="background_gray" style="padding-top: 8px !important;">
                                                                            <asp:Label ID="lblHeader" runat="server" CssClass="lblHeader" Text="DCI Deal Entry"></asp:Label>
                                                                        </td>
                                                                        <td class="background_gray" align="right">
                                                                            <asp:Button ID="btnCancel" ToolTip="Close" runat="server" OnClick="btnCancel_Click"
                                                                                Text="X" CssClass="btn" Width="18px" Height="18px" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-right: 10px; padding-Left: 15px; padding-top: 15px"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="padding-right: 10px">
                                                                            <asp:Label ID="lblItemError" runat="server"  Font-Size="11px" Font-Names="verdana" Wrap="True" style="white-space:normal !important;"></asp:Label>

                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" style="height: 4px;"></td>
                                                                    </tr>

                                                                      <tr id="tr_ConfoGenerationMSG" runat="server" visible="false">
                                                                       <td colspan="2" style="padding-right: 10px">
                                                                            <asp:Label ID="lblGenConfoMsg" runat="server" Text="Do you want to generate confirmation?"
                                                                                Font-Size="11px"  Font-Names="Verdana"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                      <tr id="tr_ConfoGenerationBtn" runat="server" visible="false">
                                                                       <td align="middle" colspan="2" style="padding-top: 15px !important;">
                                                                            <asp:Button ID="btnGenerateConfoYes" runat="server" Text="Yes" OnClick="btnGenerateConfoYes_Click" CssClass="btn" />
                                                                            <asp:Button ID="btnGenerateConfoNo" runat="server" Text="No" OnClick="btnGenerateConfoNo_Click" CssClass="btn" />
                                                                        </td>
                                                                    </tr>



                                                                    <tr id="tr_GoToTxnLogBtn" runat="server">
                                                                        <td align="middle" colspan="2" style="padding-top: 15px !important;">
                                                                            <asp:Button ID="btnCancelPop" ToolTip="Close" runat="server" OnClick="btnCancel_Click"
                                                                                Text="Close" Width="100" CssClass="btn" />
                                                                            <asp:Button ID="btnGoToTxnLog" runat="server" OnClick="btnGoToTxnLog_Click" Text="Go to Transaction Log" Height="23"
                                                                                Width="150" CssClass="btn" />
                                                                                                                                                      
                                                                        </td>
                                                                    </tr>

                                                                    <tr id="tr_PopConf" runat="server" visible="false">
                                                                        <td align="center" colspan="2">
                                                                            <asp:Button ID="btnPopConfYES" ToolTip="Close" runat="server" OnClick="btnPopConfYES_Click" Text="YES" Height="23px" Width="100px" CssClass="btn" Style="cursor: pointer;" />
                                                                            &nbsp;&nbsp;
                                                                <asp:Button ID="btnPopConfNO" ToolTip="Close" runat="server" OnClick="btnPopConfNO_Click" Text="NO" Height="23px" Width="100px" CssClass="btn" Style="cursor: pointer;" />
                                                                        </td>
                                                                    </tr>



                                                                </table>
                                                            </asp:Panel>
                                                        </div>
                                                        <div>
                                                            <iframe id="iframe4" runat="server" style="background-color: Yellow" class="UCPanelFind "
                                                                visible="false" width="355px"></iframe>
                                                            <asp:Panel ID="pnlAttachAcc" runat="server" BorderStyle="Groove" HorizontalAlign="Center"
                                                                BorderWidth="1" CssClass="UCPanelFind UCOverflow" Visible="false">
                                                                <table cellpadding="0" cellspacing="0" border="0" class="UCOverflow" style="width: 398px"
                                                                    class="UCOverflow">
                                                                    <tr>
                                                                        <td class="lblHeader background_gray">
                                                                            <asp:Label ID="Label3" runat="server" Text="DCI Deal Entry"></asp:Label>
                                                                        </td>
                                                                        <td class="background_gray" align="right" style="width: 25px"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" align="center">
                                                                            <asp:Label runat="server" ID="lblSaveMessage" Font-Size="11px" Font-Names="verdana" ForeColor="Blue"></asp:Label>
                                                                            <input type="hidden" id="hdnDealNo" runat="server" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" align="center">
                                                                            <asp:Label ID="Label4" runat="server" Text="Do you want to attach account?" Font-Size="11px" ForeColor="Blue" Font-Names="Verdana"></asp:Label>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2"></td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="2" align="center">
                                                                            <asp:Button ID="btnAttachAcc_Yes" runat="server" Text="Yes" OnClick="btnAttachAcc_Yes_Click"
                                                                                CssClass="btn" Width="30px" />
                                                                            <asp:Button ID="btnAttachAcc_No" runat="server" Text="No" OnClick="btnAttachAcc_No_Click"
                                                                                CssClass="btn" Width="30px" />
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </asp:Panel>
                                                        </div>
                                                        <table class="PricerControlTableWidthbtn">
                                                            <tr>
                                                                <td style="height: 49px;">
                                                                    <asp:Button ID="btnAcceptDeal" runat="server" CssClass="btn" Text="Accept" OnClick="btnAcceptDeal_Click" />

                                                                    <asp:ImageButton ID="btnClearDeal" runat="server" CausesValidation="true" ImageUrl="Icons/edit.gif"
                                                                        OnClick="btnClearDeal_Click" ToolTip="Clear" Width="1px" />

                                                                    <asp:Button ID="btnPre_Confo" runat="server" CssClass="btn" Text="Pre Confo" OnClick="btnPre_Confo_Click" Visible="false" />


                                                                    <asp:Label ID="lblTimerValue" runat="server" Font-Bold="true" Font-Size="20px"
                                                                        Width="25px"></asp:Label>
                                                                    
                                                                     <asp:ImageButton ID="btnSolveDeal" runat="server" CausesValidation="true" ImageUrl="Icons/solve.gif"
                                                                        OnClick="btnSolveDeal_Click" ToolTip="Clear" Width="1px" Visible="false" />

                                                                    <asp:Button ID="btnHdnStrikePointsChanged" runat="server" Style="display: none;"
                                                                        OnClick="btnHdnStrikePointsChanged_Click" />
                                                                    <asp:Button ID="btnhdnConfirmation" runat="server" Style="display: none;" />
                                                                    <asp:Button ID="btnApplyLink" runat="server" class="btnTransp" />
                                                                   &nbsp; <asp:Label ID="lblRFQ" runat="server" CssClass="lblRFQMsg"></asp:Label>

                                                                </td>

                                                            </tr>

                                                        </table>
                                                        <table cellpadding="0" cellspacing="0">
                                                            <tr>
                                                                <td>
                                                                    <table>
                                                                        <tr>
                                                                            <td>
                                                                                <asp:Panel ID="pnlItem" runat="server">
                                                                                    <table class="Filter PricerControlTableWidth" id="tblEntityControls">
                                                                                        <tr runat="server" id="tdEntityControls">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td id="idDdlEntity" class="lbl PricerControltdWidth_SecondColumn" colspan="2">
                                                                                                <asp:DropDownList ID="ddlEntity" runat="server" CssClass="ddl ddlLonger" Enabled="False" Width="293px"
                                                                                                    OnSelectedIndexChanged="ddlEntity_SelectedIndexChanged" AutoPostBack="True" TabIndex="3">
                                                                                                </asp:DropDownList>
                                                                                                
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr runat="server" id="trProductValue">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:DropDownList ID="cboProduct" runat="server" CssClass="ddl ddlShort"
                                                                                                    OnSelectedIndexChanged="cboProduct_SelectedIndexChanged" AutoPostBack="True" TabIndex="4">
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn"></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn" id="idDdlSolveFor">
                                                                                                <asp:DropDownList ID="ddlSolveFor" runat="server" CssClass="ddl ddlShort" TabIndex="5"
                                                                                                    OnSelectedIndexChanged="ddlSolveFor_SelectedIndexChanged" AutoPostBack="true">
                                                                                                    <asp:ListItem Text="Yield" Value="YIELD"></asp:ListItem>
                                                                                                    <asp:ListItem Text="Strike" Value="STRIKE"></asp:ListItem>
                                                                                                    <asp:ListItem Text="Margin" Value="MARGIN"></asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtSolveForValue" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    Font-Bold="True" TabIndex="6" ReadOnly="true" Enabled="false"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>

                                                                                    <table class="Filter PricerControlTableWidth" runat="server" id="tblCustFind">

                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FSTFColumn">

                                                                                                <ucBook:Smart_Search_Book_Control runat="server" Style="vertical-align: top; white-space: nowrap;" OnUC_Postback="BookControl_UC_Postback" SetTabIndex="1" ID="BookControl" />
                                                                                            </td>

                                                                                        </tr>
                                                                                        <tr style="display: none;">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FSTFColumn">

                                                                                                <ucBook:Smart_Search_Book_Control runat="server" Style="vertical-align: top; white-space: nowrap;" OnUC_Postback="BookRMControl_UC_Postback" SetTabIndex="1" ID="BookRMControl" />
                                                                                            </td>

                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FSTFColumn">

                                                                                                <ucRM:Smart_Search_RM_Control runat="server" Style="vertical-align: top; white-space: nowrap; width: 291px !important" OnUC_Postback="DealerControl_UC_Postback" SetTabIndex="1" ID="DealerControl" />
                                                                                            </td>

                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FSTFColumn">

                                                                                                <ucRM:Smart_Search_RM_Control runat="server" Style="vertical-align: top; white-space: nowrap;" OnUC_Postback="RMControl_UC_Postback" SetTabIndex="1" ID="RMControl" />
                                                                                            </td>

                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FSTFColumn">
                                                                                                <ucsmart:FinIQ_Customer_SmartSearch runat="server" Style="vertical-align: top; white-space: nowrap;" OnUC_Postback="FindCustSmart_UC_Postback" SetTabIndex="1"
                                                                                                    ID="FindCustSmart" SetWidth="286" TabIndex="10" />
                                                                                                <asp:LinkButton ID="btnStaticInfo" runat="server" OnClick="btnStaticInfo_Click" Text=">>" Font-Size="9px" Font-Bold="true" ToolTip="click to select/view customer details" Visible="False" TabIndex="11" />
                                                                                            </td>

                                                                                        </tr>

                                                                                        <tr id="tr_SegmentCode_Ctrl" runat="server" visible="false">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FSTFColumn">
                                                                                                <asp:DropDownList ID="ddlSegmentCode" runat="server" AutoPostBack="true" CssClass="ddl ddlLonger" TabIndex="12" OnSelectedIndexChanged="ddlSegmentCode_SelectedIndexChanged">
                                                                                                </asp:DropDownList>
                                                                                            </td>

                                                                                        </tr>


                                                                                        <tr id="tr_RWMContainerID_Ctrl" runat="server" visible="false">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FSTFColumn">
                                                                                                <asp:TextBox ID="txtRWMContainerID" runat="server" CssClass="txt txtLonger" MaxLength="100" onkeypress="javascript:return textboxMultilineMaxNumber(this, 100);"
                                                                                                    TabIndex="46"></asp:TextBox>
                                                                                            </td>

                                                                                        </tr>

                                                                                    </table>

                                                                                    <table class="Filter PricerControlTableWidth" id="tblDEMultiPricer">
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:DropDownList ID="ddlDepoCcy" runat="server" AutoPostBack="True"
                                                                                                    OnSelectedIndexChanged="ddlDepoCcy_SelectedIndexChanged" CssClass="ddl ddlShort" TabIndex="12">
                                                                                                </asp:DropDownList><span class="PricerControltdWidth_MiddleColumn">CALL</span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:DropDownList ID="ddlDepoYearBasis" runat="server" CssClass="ddl ddlShort"
                                                                                                    Enabled="False" TabIndex="9">
                                                                                                    <asp:ListItem Text="" Value="" Selected="True"></asp:ListItem>
                                                                                                    <asp:ListItem Text="360" Value="360"></asp:ListItem>
                                                                                                    <asp:ListItem Text="365" Value="365"></asp:ListItem>
                                                                                                    <asp:ListItem Text="366" Value="366"></asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:DropDownList ID="ddlAltCcy" runat="server" AutoPostBack="True"
                                                                                                    OnSelectedIndexChanged="ddlAltCcy_SelectedIndexChanged" CssClass="ddl ddlShort" TabIndex="13">
                                                                                                </asp:DropDownList><span class="PricerControltdWidth_MiddleColumn">PUT</span>
                                                                                                <asp:Label ID="lblCallPut" runat="server" CssClass="lbl" TabIndex="200"
                                                                                                    Visible="False"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:DropDownList ID="ddlAltYearBasis" runat="server" CssClass="ddl ddlShort"
                                                                                                    Enabled="False" TabIndex="14">
                                                                                                    <asp:ListItem Text="" Value="" Selected="True"></asp:ListItem>
                                                                                                    <asp:ListItem Text="360" Value="360"></asp:ListItem>
                                                                                                    <asp:ListItem Text="365" Value="365"></asp:ListItem>
                                                                                                    <asp:ListItem Text="366" Value="366"></asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtNotionalDepo" Font-Bold="True" OnTextChanged="txtNotionalDepo_TextChanged"
                                                                                                    runat="server" CssClass="txt textBoxTextRightAlign" TabIndex="15"
                                                                                                    MaxLength="14"></asp:TextBox><asp:Label ID="lblDepoCcyNotionalDepo" runat="server" CssClass="lbl PricerControltdWidth_MiddleColumn" Text="Inv"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="lblNotionalAlt2" runat="server" ReadOnly="true" CssClass="txt textBoxTextRightAlign txtShort" Visible="false"
                                                                                                    Enabled="False" TabIndex="16"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblAltCcyNotionalAlt" runat="server" CssClass="lbl" Text="Alt" TabIndex="17" Visible="false"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr style="display: none">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="PricerControltdWidth_SecondColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtNotionalBase" runat="server" ReadOnly="true" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    Enabled="False" TabIndex="18"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblBaseCcyNotional" runat="server" CssClass="lbl" Text="Base" TabIndex="19"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn" style="padding: 0px;">
                                                                                                <table class="tblMarginDEMultipricer">
                                                                                                    <tr>
                                                                                                        <td class="ddlTenortd" style="padding: 0px !important;">
                                                                                                            <asp:DropDownList ID="ddlTenor" Style="width: 63px !important;" runat="server" AutoPostBack="true" CssClass="ddl"
                                                                                                                OnSelectedIndexChanged="ddlTenor_SelectedIndexChanged" TabIndex="20">
                                                                                                            </asp:DropDownList></td>
                                                                                                        <td style="padding: 0px !important;">
                                                                                                            <asp:TextBox ID="txtTenor" OnTextChanged="txtTenor_TextChanged" runat="server"
                                                                                                                CssClass="txt textBoxTextRightAlign" TabIndex="21"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">Days</span>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:DropDownList ID="ddlValueDays" runat="server" CssClass="ddl ddlShort" OnSelectedIndexChanged="ddlValueDays_SelectedIndexChanged"
                                                                                                    AutoPostBack="True" TabIndex="22">
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="lbl PricerControltdWidth_FirstColumn" align="center">
                                                                                                <asp:Label ID="lblDateLookup" runat="server" Text="" CssClass="lbl" Font-Size="11px" Visible="false" TabIndex="23"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <uc1:DateControl ID="txtTradeDate" runat="server" DoPostBack="true" CalenderCss="btn1 PricerControltdWidth_MiddleColumn"
                                                                                                    TextBoxCss="txt" OnTextChanged="txtTradeDate_TextChanged" TextBoxSize="115px"
                                                                                                    SetDefaultDate="True" TabIndex="24" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:DropDownList ID="ddlOptionCut" runat="server" CssClass="ddl ddlShort" Enabled="False"
                                                                                                    TabIndex="25">
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblOptionCutlblDisplay" runat="server" CssClass="lbl" Text="Cut" TabIndex="26"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <uc1:DateControl ID="txtValueDate" runat="server" DoPostBack="true" CalenderCss="btn1 PricerControltdWidth_MiddleColumn"
                                                                                                    TextBoxCss="txt" OnTextChanged="txtDates_TextChanged" TextBoxSize="115px" SetDefaultDate="False"
                                                                                                    Disabled="false" TabIndex="27" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtValueDays" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    ReadOnly="True" TabIndex="28" Enabled="False"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">Days
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="trSpotDateValue" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <uc1:DateControl ID="txtSpotDate" runat="server" DoPostBack="true" CalenderCss="btn1 PricerControltdWidth_MiddleColumn"
                                                                                                    TextBoxCss="txt" OnTextChanged="txtDates_TextChanged" TextBoxSize="115px" SetDefaultDate="False"
                                                                                                    Disabled="false" TabIndex="29" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtSpotDays" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    ReadOnly="True" TabIndex="30" Enabled="False"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">Days
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <uc1:DateControl ID="txtExpiryDate" runat="server" DoPostBack="true" CalenderCss="btn1 PricerControltdWidth_MiddleColumn"
                                                                                                    TextBoxCss="txt" OnTextChanged="txtDates_TextChanged" TextBoxSize="115px" SetDefaultDate="False"
                                                                                                    Disabled="false" TabIndex="31" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="lblExpiryDays" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    ReadOnly="True" TabIndex="32" Enabled="False"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">Days
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <uc1:DateControl ID="txtMaturityDate" runat="server" DoPostBack="true" CalenderCss="btn1 PricerControltdWidth_MiddleColumn"
                                                                                                    TextBoxCss="txt" OnTextChanged="txtDates_TextChanged" TextBoxSize="115px" SetDefaultDate="False"
                                                                                                    Disabled="false" TabIndex="33" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="lblDepositDays" ReadOnly="True" Enabled="False" Font-Bold="True"
                                                                                                    runat="server" CssClass="txt textBoxTextRightAlign txtShort" TabIndex="34"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">Days
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtSpot" Width="115px" runat="server" AutoPostBack="true" OnTextChanged="txtSpot_TextChanged"
                                                                                                    CssClass="txt textBoxTextRightAlign" TabIndex="35" MaxLength="14"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtBreakEvenRate" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    ReadOnly="True" Enabled="false" TabIndex="36"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="lbl PricerControltdWidth_FirstColumn" align="center">
                                                                                                <asp:ImageButton ID="btnSolveForStrike" CssClass="letterImages" alt="Solve for Strike" ImageUrl="../DCDDealentry/Icons/s.png"
                                                                                                    runat="server" ToolTip="Calculate Strike" OnClick="btnSolveForStrike_Click" TabIndex="37" />
                                                                                                <asp:CheckBox ID="chkSuggestStrike" runat="server" ToolTip="Auto suggest strike"
                                                                                                    Visible="false" TabIndex="38" />
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtStrike" Font-Bold="True" runat="server" Width="115px" CssClass="txt textBoxTextRightAlign"
                                                                                                    OnTextChanged="txtStrike_TextChanged" TabIndex="39" MaxLength="16"></asp:TextBox>
                                                                                                <asp:Image ID="imgCallPut" runat="server" CssClass="PricerControltdWidth_MiddleColumn" Style="margin-left: 3px;" BorderStyle="None" Width="22px" Height="18px"
                                                                                                    BorderWidth="0" ImageAlign="absmiddle" Visible="False" TabIndex="40" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtStrikePoints" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    Font-Bold="True" MaxLength="10" OnTextChanged="txtStrikePoints_TextChanged" TabIndex="41"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">Pips
                                                                                    <asp:Image runat="server" ID="imgSolvedResultStrike" Visible="false" Width="12px"
                                                                                        Height="12px" TabIndex="42" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="trTXT_PPPercentage" runat="server">
                                                                                            <td class="lbl PricerControltdWidth_FirstColumn" align="center">
                                                                                                <asp:CheckBox ID="chkPPProtected" runat="server" ToolTip="PP Protected" OnCheckedChanged="chkPPProtected_CheckedChanged"
                                                                                                    AutoPostBack="true" TabIndex="43" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtPPPercentage" Font-Bold="True" runat="server" Width="115px" MaxLength="5"
                                                                                                    CssClass="txt textBoxTextRightAlign" TabIndex="44" OnTextChanged="txtPPPercentage_TextChanged"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtPPFarStrike" Font-Bold="True" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    TabIndex="45"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>

                                                                                    </table>

                                                                                    <table class="Filter PricerControlTableWidth" runat="server" id="tblMarginValues">
                                                                                        <tr>
                                                                                            <td class="lbl  PricerControltdWidth_FirstColumn">
                                                                                                <asp:ImageButton ID="btnSolveForYield" alt="Solve for Yield" CssClass="letterImages" ImageUrl="../DCDDealentry/Icons/y.png"
                                                                                                    runat="server" AlternateText="Calculate Customer Yield" ToolTip="Calculate Customer Yield" OnClick="btnSolveForYield_Click" TabIndex="47" />
                                                                                            </td>
                                                                                            <td id="idCustomerYield" class="lbl  PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtCustomerYield" runat="server" CssClass="txt14 textBoxTextRightAlign"
                                                                                                    TabIndex="48" OnTextChanged="txtCustomerYield_TextChanged"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="lbl  PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="lblInterestAmtDepoDisplay" Font-Bold="True" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="49" Enabled="false"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl  PricerControltdWidth_FourthColumn" valign="middle" style="padding-left: 0px;">
                                                                                                <asp:Label ID="lblDepoCcyInterestAmtDepo" runat="server" CssClass="lbl" Text="Inv" TabIndex="50"></asp:Label>
                                                                                                <asp:Image runat="server" ID="imgSolvedResultYield" Visible="false" Width="12px"
                                                                                                    Height="12px" TabIndex="51" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="lbl PricerControltdWidth_FirstColumn">
                                                                                                <asp:ImageButton ID="btnSolveForMargin" alt="Solve for Margin" ImageUrl="../DCDDealentry/Icons/m.png" CssClass="letterImages"
                                                                                                    runat="server" ToolTip="Calculate Profit Margin" OnClick="btnSolveForMargin_Click" TabIndex="52" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtMarginDisplay" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    TabIndex="53" OnTextChanged="txtMarginDisplay_TextChanged" MaxLength="22"></asp:TextBox>
                                                                                                <asp:TextBox ID="txtMargin" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    TabIndex="54" OnTextChanged="txtMargin_TextChanged" MaxLength="22"></asp:TextBox>
                                                                                                <asp:TextBox ID="txtMarginBasePonits" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    TabIndex="55" OnTextChanged="txtMarginBasePonits_TextChanged" MaxLength="22" Visible="false"></asp:TextBox>
                                                                                                <asp:TextBox ID="txtNonAnnMarginDepo" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    TabIndex="56" OnTextChanged="txtNonAnnMarginDepo_TextChanged" MaxLength="22" Visible="false" AutoPostBack="true"></asp:TextBox>
                                                                                                <asp:CheckBox ID="chkDefaultSalesSpread" runat="server" ToolTip="Default Spread" AutoPostBack="true"
                                                                                                    OnCheckedChanged="chkDefaultSalesSpread_CheckedChanged" TabIndex="57" />

                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtMarginDepo" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    AutoPostBack="true" OnTextChanged="txtMarginDepo_TextChanged" TabIndex="58"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn" style="padding-left: 0px;">
                                                                                                <asp:Label ID="lblDepoCcyMarginDepo" runat="server" CssClass="lbl" Text="Inv" TabIndex="59"></asp:Label>
                                                                                                <asp:Image runat="server" ID="imgSolvedResultMargin" Visible="false" Width="12px"
                                                                                                    Height="12px" TabIndex="60" />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn"></td>

                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtMarginBaseCcy" runat="server" CssClass="txt textBoxTextRightAlign txtShort" TabIndex="64"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn" style="padding-left: 0px;">
                                                                                                <asp:Label ID="lblMarginBaseCcy" runat="server" CssClass="lbl" Text="USD" TabIndex="65"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:Label ID="lblPrincipalIntDepo"   runat="server" CssClass="lbl textBoxTextRightAlign"
                                                                                                    Width="115px"></asp:Label><asp:Label ID="lblDepoCcyRepaymentDepo" runat="server"
                                                                                                        CssClass="lbl PricerControltdWidth_MiddleColumn" Text="Inv" Style="padding-left: 7px;" TabIndex="61"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:Label ID="lblPrincipalIntAlt" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="62"  ></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn" style="padding-left: 0px;">
                                                                                                <asp:Label ID="lblAltCcyRepaymentAlt" runat="server" CssClass="lbl" Text="Alt" TabIndex="63"></asp:Label>
                                                                                            </td>
                                                                                        </tr>

                                                                                        <tr id="trRemarkValues" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:TextBox ID="txtRemarks" runat="server" CssClass="txt txtLonger" MaxLength="100" onkeypress="javascript:return textboxMultilineMaxNumber(this, 100);"
                                                                                                    TabIndex="46"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>



                                                                                    </table>

                                                                                    <table class="Filter PricerControlTableWidth" id="tblAmountValues" runat="server">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtBoardRate" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    ReadOnly="false" TabIndex="66" MaxLength="10" OnTextChanged="txtBoardRate_TextChanged"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                                <asp:Label ID="lblboardRateDisplay" runat="server" Font-Size="11px" Font-Bold="true"
                                                                                                    Visible="false" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtOrdIntAmount" runat="server" CssClass="lbl textBoxTextRightAlign1 txtShort" TabIndex="67"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDepoCcyOrdIntAmount" runat="server" CssClass="lbl" Text="Inv" TabIndex="68"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="trInternalCostValues" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtInternalCost" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    ReadOnly="True" TabIndex="69"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="lblInternalCostAmt" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="70"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDepoCcyInternalCostAmt" runat="server" CssClass="lbl" Text="Inv" TabIndex="71"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="tr_value_CostRate" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtOptionPremium" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    TabIndex="72"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn" style="width: 127px;">
                                                                                                <asp:Label ID="lblCostRate" runat="server" CssClass="lbl textBoxTextRightAlign" TabIndex="73"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDepoCcyCostRate" runat="server" CssClass="lbl" Text="Inv" TabIndex="74"></asp:Label>
                                                                                            </td>
                                                                                        </tr>


                                                                                        <tr id="tr_value_PremiumReceivable" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="TextBox1" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    TabIndex="75" Visible="false"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn"></span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:Label ID="lblPremiumReceivable" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="76"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDepoCcyPremiumReceivable" runat="server" CssClass="lbl" Text="Inv" TabIndex="77"></asp:Label>
                                                                                            </td>
                                                                                        </tr>

                                                                                        <tr id="tr_value_PremiumPayable" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:Label ID="lblPremiumPayablePerc" runat="server" Width="115px" CssClass="lbl textBoxTextRightAlign" Visible="false" TabIndex="78"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:Label ID="lblPremiumPayable" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="79"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDepoCcyPremiumPayable" runat="server" CssClass="lbl" Text="Inv" TabIndex="80"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="tr_value_Optionbasedon" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td align="left" class="lbl PricerControltdWidth_SecondColumn" colspan="2">
                                                                                                <asp:DropDownList ID="ddlPremiumBasedOn" runat="server" CssClass="ddl ddlLonger" OnSelectedIndexChanged="ddlPremiumBasedOn_SelectedIndexChanged"
                                                                                                    TabIndex="81" Width="293px">
                                                                                                    <asp:ListItem Selected="True" Text="Principal + Interest" Value="Principal + Interest"></asp:ListItem>
                                                                                                    <asp:ListItem Text="Principal" Value="Principal"></asp:ListItem>
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_ThirdColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trDeltaValues" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtDelta" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    TabIndex="82"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="lblDeltaAmount" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="83"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDepoCcyDeltaAmt" runat="server" CssClass="lbl" Text="Inv" TabIndex="84"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="trVolValues" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtVolatility" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    ReadOnly="false" TabIndex="85" OnTextChanged="txtVolatility_TextChanged"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_ThirdColumn"></td>
                                                                                            <td class="PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="tr_values_SwapPtsFwdRate" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtSwapPoints" Width="115px" runat="server" AutoPostBack="True"
                                                                                                    OnTextChanged="txtSwapPoints_TextChanged" CssClass="txt textBoxTextRightAlign"
                                                                                                    ReadOnly="True" TabIndex="86"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtForwardRate" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    ReadOnly="True" TabIndex="87"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="tblInterestValues" runat="server">
                                                                                            <td class="lbl PricerControltdWidth_FirstColumn">
                                                                                                <asp:ImageButton ID="btnImplyRates" alt="Imply Rates" ImageUrl="../DCDDealentry/Icons/I.png" CssClass="letterImages" Visible="false"
                                                                                                    runat="server" ToolTip="Imply Rates" OnClick="btnImplyRates_Click" TabIndex="52" />
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtInterestRateDepoCcy" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    ReadOnly="false" TabIndex="88" OnTextChanged="txtInterestRateDepoCcy_TextChanged"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="txtInterestRateAltCcy" runat="server" CssClass="txt textBoxTextRightAlign txtShort"
                                                                                                    ReadOnly="false" TabIndex="89" OnTextChanged="txtInterestRateAltCcy_TextChanged"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="trSpreadValues" runat="server" visible="true">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtOptionSpread" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign" OnTextChanged="txtOptionSpread_TextChanged"
                                                                                                    TabIndex="90"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_ThirdColumn">
                                                                                                <asp:Label ID="lblOptionSpreadAmt" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="93"></asp:Label>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trSpreadValues1" runat="server" visible="true">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtMMSpread" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign" OnTextChanged="txtMMSpread_TextChanged"
                                                                                                    ReadOnly="True" TabIndex="91"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_ThirdColumn">
                                                                                                <asp:Label ID="lblMMSpreadAmt" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="93"></asp:Label>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trInterestAmtAltValue" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="lblInterestAmtDepo"  runat="server" CssClass="lbl textBoxTextRightAlign"
                                                                                                    Width="115px" TabIndex="92"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="lbl  PricerControltdWidth_ThirdColumn">
                                                                                                <asp:TextBox ID="lblInterestAmtAlt" runat="server" CssClass="lbl textBoxTextRightAlign1" TabIndex="93"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblInterestAmtAltCcy" runat="server" CssClass="lbl" Text="Alt" TabIndex="74"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr id="trTXT_PPMinPremPercentage" runat="server">
                                                                                            <td>
                                                                                                <div class="PricerControltdWidth_FirstColumn"></div>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtPPMinPremPercentage" Font-Bold="True" runat="server" Width="115px"
                                                                                                    CssClass="txt textBoxTextRightAlign" TabIndex="94"></asp:TextBox>
                                                                                            </td>
                                                                                            <td class="PricerControltdWidth_ThirdColumn"></td>
                                                                                            <td class="PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                    <table class="Filter PricerControlTableWidth" id="tblTaxValues" runat="server">
                                                                                        <tr id="trTaxOnValue" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn" colspan="2">
                                                                                                <asp:DropDownList ID="ddlTaxOn" runat="server" CssClass="ddl ddlLonger" Width="260px" TabIndex="95"
                                                                                                    ReadOnly="True">
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trTaxRatesValue" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn">
                                                                                                <asp:TextBox ID="txtTaxRates" Width="115px" runat="server" CssClass="txt textBoxTextRightAlign"
                                                                                                    MaxLength="6" TabIndex="96"></asp:TextBox><span class="PricerControltdWidth_MiddleColumn">%</span>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_ThirdColumn">
                                                                                                <asp:Label ID="lblTaxAmount" Font-Bold="True" runat="server" CssClass="lbl textBoxTextRightAlign" TabIndex="97"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDepoCcyTaxAmount" runat="server" CssClass="lbl" Text="Inv" TabIndex="98"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                    <table class="Filter PricerControlTableWidth" id="tblStaticValues" runat="server">
                                                                                        <tr id="trSalesInforefvalue" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td colspan="2">
                                                                                                <asp:TextBox ID="txtref" runat="server" AutoPostBack="true" CssClass="txt Rightalign txtLonger"
                                                                                                    Font-Bold="True" TabIndex="99"></asp:TextBox>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trSalesInfosrcvalue" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:TextBox ID="txtsrc" runat="server" AutoPostBack="true" CssClass="txt Rightalign txtLonger"
                                                                                                    Font-Bold="True" TabIndex="100" Width="262px"></asp:TextBox>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trSalesInfoclsvalue" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:TextBox ID="txtcls" runat="server" AutoPostBack="true" CssClass="txt Rightalign txtLonger"
                                                                                                    Font-Bold="True" TabIndex="101" Width="262px"></asp:TextBox>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trRMValues" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:Label ID="lblMainRM" runat="server" CssClass="lbl" TabIndex="102" Font-Size="XX-Small"></asp:Label>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trDealerValues" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:Label ID="lblDealingRM" runat="server" CssClass="lbl" TabIndex="103" Font-Size="XX-Small"></asp:Label>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trBookValue" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl PricerControltdWidth_SecondColumn" colspan="2">
                                                                                                <asp:Label ID="lblBook" runat="server" CssClass="lbl" TabIndex="104" Font-Size="XX-Small"></asp:Label>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr runat="server" id="trCustPanValue">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:Label ID="lblCustPAN" runat="server" CssClass="lbl" TabIndex="105" Font-Size="XX-Small"></asp:Label>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr id="trCustNameValues" runat="server">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:Label ID="lblCustName" Font-Bold="True" runat="server" CssClass="lbl" TabIndex="106"
                                                                                                    Font-Size="XX-Small"></asp:Label>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr runat="server" id="trCustGrpValues">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:Label ID="lblCustGroup" Font-Bold="True" runat="server" CssClass="lbl" TabIndex="107"
                                                                                                    Font-Size="XX-Small"></asp:Label>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                        <tr runat="server" id="trlblDebitInstruction">
                                                                                            <td class="PricerControltdWidth_FirstColumn">
                                                                                                <asp:Label ID="lblSpace" runat="server" CssClass="lbl" Text="           " TabIndex="108"></asp:Label>
                                                                                            </td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:TextBox ID="lblDebitInstruction" runat="server" CssClass="txt txtLonger"
                                                                                                    TabIndex="109" Font-Size="XX-Small" Enabled="false" Visible="false"></asp:TextBox>

                                                                                                <asp:DropDownList ID="ddlDefaultDR" runat="server" CssClass="ddl ddlLonger"
                                                                                                    OnSelectedIndexChanged="ddlDefaultDR_SelectedIndexChanged" AutoPostBack="true" TabIndex="110">
                                                                                                </asp:DropDownList>
                                                                                            </td>
                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblDebitInstructionDepoCcy" runat="server" CssClass="lbl" Text="(Inv)" TabIndex="111"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr runat="server" id="trtxtCreditInstructionDepoCcy">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:TextBox ID="txtCreditInstructionDepoCcy" runat="server" CssClass="txt txtLonger"
                                                                                                    TabIndex="112" ReadOnly="true" Font-Size="XX-Small" Enabled="false" Visible="false">
                                                                                                </asp:TextBox>
                                                                                                <asp:DropDownList ID="ddlDefaultCRDepo" runat="server" CssClass="ddl ddlLonger"
                                                                                                    OnSelectedIndexChanged="ddlDefaultCRDepo_SelectedIndexChanged" AutoPostBack="true" TabIndex="113">
                                                                                                </asp:DropDownList>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblCreditInstructionDepoCcy" runat="server" CssClass="lbl" Text="(Inv)" TabIndex="114"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr runat="server" id="trtxtCreditInstructionAltCcy">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:TextBox ID="txtCreditInstructionAltCcy" runat="server" CssClass="txt txtLonger"
                                                                                                    TabIndex="115" ReadOnly="true" Font-Size="XX-Small" Enabled="false" Visible="false"></asp:TextBox>

                                                                                                <asp:DropDownList ID="ddlDefaultCRAlt" runat="server" CssClass="ddl ddlLonger"
                                                                                                    OnSelectedIndexChanged="ddlDefaultCRAlt_SelectedIndexChanged" AutoPostBack="true" TabIndex="116">
                                                                                                </asp:DropDownList>
                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn">
                                                                                                <asp:Label ID="lblCreditInstructionAltCcy" runat="server" CssClass="lbl" Text="(Alt)" TabIndex="117"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr runat="server" id="trtxtCreditInstructionInt" visible="false">
                                                                                            <td class="PricerControltdWidth_FirstColumn"></td>
                                                                                            <td class="lbl" colspan="2">
                                                                                                <asp:TextBox ID="txtCreditInstructionInt" runat="server" CssClass="txt txtLonger"
                                                                                                    TabIndex="118" ReadOnly="true" Font-Size="XX-Small" Enabled="false" Visible="false"></asp:TextBox>

                                                                                            </td>

                                                                                            <td class="lbl PricerControltdWidth_FourthColumn"></td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </asp:Panel>
                                                                                <asp:TextBox ID="lblFwdDays" runat="server" CssClass="txt" ReadOnly="True" Width="30px"
                                                                                    Visible="false" TabIndex="119" Enabled="False"></asp:TextBox>
                                                                                <asp:Button ID="btnApplyChild" runat="server" OnClick="btnApplyChild_Click" class="btnTransp" TabIndex="120" />
                                                                                <asp:Button ID="btnStaticClose" runat="server" OnClick="btnStaticClose_Click" class="btnTransp" TabIndex="121" />
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                    <asp:Button ID="btnDealSave" runat="server" Width="0" Style="width: 0px; height: 0px; font-size: 0; border: none; display: none;" OnClick="btnDealSave_Click" />
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                                <asp:UpdateProgress ID="pnlProgress" runat="server" AssociatedUpdatePanelID="pnlTemplate" Visible="false"
                                                    DisplayAfter="0">
                                                    <ProgressTemplate>
                                                        <div style="position: absolute; top: 90px; margin-left: 41px;">

                                                            <img alt="Loading" src="../App_Resources/loading_ajax.gif" width="120" height="110"
                                                                class="Img" />
                                                        </div>
                                                    </ProgressTemplate>
                                                </asp:UpdateProgress>
                                            </ItemTemplate>
                                        </asp:DataList>
                                    </td>
                                    <td>
                                        <%--    Multi Customer --%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="pnlPrg" runat="server" AssociatedUpdatePanelID="upnlPricer" Visible="true"
        DisplayAfter="0">
        <ProgressTemplate>
            <div style="position: absolute; top: 85px; left: 80px">
                <img alt="Loading" src="../App_Resources/loading_ajax.gif" class="Img" width="50"
                    height="50" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Content>
