<?php
    session_start();
    if( !isset($_SESSION['chap']) ){
        header("Location:../index.html#login-area");
        exit();
    }
    else{
        $chap = $_SESSION['chap'];
        include "../connect/db.php";
        $sql = mysqli_query($mysqli,"SELECT * FROM users WHERE email = '$chap' ");
        $row = mysqli_fetch_assoc($sql);
        if( $row['status'] == "suspended" ){
            header("Location:account.php");
            exit();
        }
        else if( $row['status'] == "terminated" ){
            header("Location:terminate.php");
            exit();
        }
    }
    



       if($row['kyc_status'] == "pending" || $row['kyc_status'] == "review" )


{
   header("Location:kyc.php");
   exit();


}
    if($row['code_level'] != "nothing"){

if($row['lock_status'] == "active" )


{
   header("Location:auth.php");
   exit();


}
else{
    
}



}
else{
    
}
    




    $amount = $_GET['amount'] ?? '';
    

?>
<!DOCTYPE html>
<html lang="en-US" class="js">

<head>
    <meta charset="utf-8">
    <meta name="author" content="Smart">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description"
        content="Aspire Securities is a trademark of Aspire Financial Corporation. Aspire Securities is a trade name for the corporate and investment banking services of Aspire Financial Corporation and its subsidiaries. All rights reserved. Securities and strategic advisory services are provided by Aspire Securities, Inc., member FINRA, link opens in new tab and SIPC, link opens in new tab. Lending, financial risk management, and treasury management and payment services are offered by Aspire Bank. Deposit products are offered by Aspire Bank.">
    <!-- Fav Icon  -->
    <link rel="shortcut icon" href="../images/favicon.png">
    <!-- Page Title  -->
    <title> <?=$row['firstname']?> <?=$row['middlename']?> <?=$row['lastname']?> | <?= htmlspecialchars(getSetting('site_name', 'Deutsche Bank Holdings Delaware')) ?> Online banking</title>
    <!-- StyleSheets  -->
    <link rel="stylesheet" href="../scss/sweetalert.css">
    <link rel="stylesheet" href="assets/css/dashlite.css?ver=2.4.0">
    <link id="skin-default" rel="stylesheet" href="assets/css/theme.css?ver=2.4.0">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">

    <link href="../css/toastr.css" rel="stylesheet" />
    <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>

</head>
<link rel="stylesheet"
    href="https://www.jqueryscript.net/demo/jQuery-International-Telephone-Input-With-Flags-Dial-Codes/build/css/intlTelInput.css">
<script type="text/javascript">
    function googleTranslateElementInit() {
        new google.translate.TranslateElement({
            pageLanguage: 'en',
            layout: google.translate.TranslateElement.InlineLayout.SIMPLE
        }, 'google_translate_element');
    }
</script>
<script type="text/javascript"
    src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<style>
    .goog-te-gadget-simple {
        border: none;
    }

    .goog-te-gadget-simple a {
        color: #000;
    }
</style>
<style type="text/css">
    .btn-primary {
        background-color: #033d75;
    }

    .btn-secondary {
        background-color: #d13636;
    }

    .btn-secondary:hover {
        opacity: 0.6;
    }

    .btn-primary:hover {
        opacity: 0.6;
    }
</style>


<body class="nk-body npc-crypto bg-white has-sidebar ">
    <div class="nk-app-root">
        <!-- main @s -->
        <div class="nk-main ">
            <!-- sidebar @s -->
            <div class="nk-sidebar nk-sidebar-fixed " data-content="sidebarMenu">
                <div class="nk-sidebar-element nk-sidebar-head" style="border-bottom: solid #fe473a;">
                    <div class="nk-sidebar-brand">
                        <a href="dashboard" class="logo-link nk-sidebar-logo">
                            <img class="logo-light logo-img" src="../logo.png" srcset="../logo.png 2x" alt="logo">
                            <img class="logo-dark logo-img" src="../logo.png" srcset="../logo.png 2x" alt="logo-dark">
                        </a>
                    </div>
                    <div class="nk-menu-trigger mr-n2">
                        <a href="#" class="nk-nav-toggle nk-quick-nav-icon d-xl-none" data-target="sidebarMenu">
                            <em class="icon ni ni-arrow-left"></em>
                        </a>
                    </div>
                </div>
               
















                <?php include 'includes/sidebar.php';  ?>


















                <!-- main header @e -->
                <div class="nk-content nk-content-fluid">
                    <div class="container-xl wide-lg">
                        <div class="nk-content-body">
                            <div class="buysell wide-xs m-auto">
                                    <div class="buysell-title text-center">
                                        <h2 class="title"> <?= htmlspecialchars(getSetting('site_name', 'Deutsche Bank Holdings Delaware')) ?> Online Banking Transfer.</h2>
                                    </div>
                                    <!-- .buysell-title -->
                                    <form action="" method="post"><?= csrf_field() ?>
                                        <div class="resultForTwo"></div>
                                        <div class="card card-preview">
                                            <div class="card-inner">
                                                <div class="preview-block">
                                                    <span class="preview-title-lg text-primary overline-title">Amount to
                                                        transfer: <?=currencySymbol($row['usercurrency'])?> <?=$amount?></span>
                                                    <!-- Saved Beneficiaries -->
                                                    <div class="row" id="beneficiarySection">
                                                        <div class="col-lg-12 col-sm-12 p-2">
                                                            <div class="form-group">
                                                                <div class="form-control-wrap">
                                                                    <select class="form-control form-control-xl" id="savedBeneficiary" style="padding-top:1rem;">
                                                                        <option value="">— Select a saved beneficiary —</option>
                                                                    </select>
                                                                    <label class="form-label-outlined" for="savedBeneficiary">Saved Beneficiaries</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <!-- /Saved Beneficiaries -->
                                                    <div class="row">
                                                        <div class="col-lg-12 col-sm-12 p-2">
                                                            <div class="form-group">
                                                                <div class="form-control-wrap">
                                                                    <div class="form-icon form-icon-right">
                                                                        <em class="icon ni ni-template"></em>
                                                                    </div>
                                                                    <input list="banks" type="text"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="bankname" id="bankname">
                                                                    <datalist id="banks">

                                                                        <option>Abacus Federal Savings Bank </option>
                                                                        <option>Abbeville Building & Loan </option>
                                                                        <option>Abbeville First Bank, SSB </option>
                                                                        <option>AbbyBank </option>
                                                                        <option>ABINGTON BANK </option>
                                                                        <option>Academy Bank </option>
                                                                        <option>ACB Bank </option>
                                                                        <option>Access Bank </option>
                                                                        <option>AccessBank Texas </option>
                                                                        <option>ACNB Bank </option>
                                                                        <option>Adams Bank & Trust </option>
                                                                        <option>Adams Community Bank </option>
                                                                        <option>Adams County Bank </option>
                                                                        <option>Adams State Bank </option>
                                                                        <option>1st National Bank </option>
                                                                        <option>Academy Bank </option>
                                                                        <option>ADP Trust Company </option>
                                                                        <option>Albany Bank and Trust Company </option>
                                                                        <option>Alerus Financial </option>
                                                                        <option>Amarillo National Bank </option>
                                                                        <option>Amerant Bank </option>
                                                                        <option>Amerant Trust </option>
                                                                        <option>American Bank and Trust Company
                                                                        </option>
                                                                        <option>American Bank </option>
                                                                        <option>American Commerce Bank </option>
                                                                        <option>American Express National Bank </option>
                                                                        <option>American First National Bank </option>
                                                                        <option>American Heritage National Bank
                                                                        </option>
                                                                        <option>American National Bank </option>
                                                                        <option>Adirondack Bank Utica </option>
                                                                        <option>Adrian Bank Adrian </option>
                                                                        <option>Adrian State Bank Adrian </option>
                                                                        <option>Affinity Bank Covington </option>
                                                                        <option>AIG Federal Savings Bank </option>
                                                                        <option>Alamerica Bank Birmingham </option>
                                                                        <option>Alamosa State Bank </option>
                                                                        <option>Albany Bank and Trust Company </option>
                                                                        <option>Alden State Bank </option>
                                                                        <option>Alerus Financial </option>
                                                                        <option>Algonquin State Bank </option>
                                                                        <option>All America Bank </option>
                                                                        <option>Allegiance Bank Houston </option>
                                                                        <option>Alliance Bank </option>
                                                                        <option>American Plus Bank </option>
                                                                        <option>AMG National Trust Bank </option>
                                                                        <option>Anahuac National Bank </option>
                                                                        <option>Anchorage Digital Bank </option>
                                                                        <option>Anna-Jonesboro National Bank </option>
                                                                        <option>Armed Forces Bank </option>
                                                                        <option>Asian Pacific National Bank </option>
                                                                        <option>Associated Bank </option>
                                                                        <option>Associated Trust Company </option>
                                                                        <option>Atlantic Capital Bank </option>
                                                                        <option>Austin Bank </option>
                                                                        <option>Axiom Bank </option>
                                                                        <option>Alliance Bank Topeka </option>
                                                                        <option>Alliance Bank & Trust Company </option>
                                                                        <option>Alliance Bank Central Texas </option>
                                                                        <option>Alliance Community Bank Petersburg
                                                                        </option>
                                                                        <option>Alliant Bank Madison </option>
                                                                        <option>Allied First Bank </option>
                                                                        <option>AllNations Bank Calumet </option>
                                                                        <option>Ally Bank </option>
                                                                        <option>Alma Bank </option>
                                                                        <option>Alpine Bank </option>
                                                                        <option>Alpine Capital Bank </option>
                                                                        <option>Altabank American Fork </option>
                                                                        <option>Altamaha Bank & Trust Company Vidalia
                                                                        </option>
                                                                        <option>Alton Bank Alton </option>
                                                                        <option>Altoona First Savings Bank Altoona
                                                                        </option>
                                                                        <option>Alva State Bank & Trust Company Alva
                                                                        </option>
                                                                        <option>Amalgamated Bank New York </option>
                                                                        <option>Amalgamated Bank of Chicago Chicago
                                                                        </option>
                                                                        <option>Amarillo National Bank Amarillo
                                                                        </option>
                                                                        <option>Ambler Savings Bank </option>
                                                                        <option>Amboy Bank Old Bridge </option>
                                                                        <option>Amerant Bank </option>
                                                                        <option>Amerasia Bank Flushing </option>
                                                                        <option>America's Community Bank </option>
                                                                        <option>American Bank </option>
                                                                        <option>American Bank & Trust Wessington Springs
                                                                        </option>
                                                                        <option>American Bank & Trust Company Opelousas
                                                                        </option>
                                                                        <option>American Bank & Trust Company Covington
                                                                        </option>
                                                                        <option>American Bank & Trust Company </option>
                                                                        <option>American Bank & Trust of the Cumberlands
                                                                            Livingston </option>
                                                                        <option>American Bank and Trust Company Tulsa
                                                                        </option>
                                                                        <option>American Bank and Trust Company
                                                                        </option>
                                                                        <option>American Bank Center Dickinson </option>
                                                                        <option>American Bank of Baxter Springs Baxter
                                                                            Springs </option>
                                                                        <option>American Bank of Beaver Dam Beaver Dam
                                                                        </option>
                                                                        <option>American Bank of Commerce Wolfforth
                                                                        </option>
                                                                        <option>American Bank of Missouri Wellsville
                                                                        </option>
                                                                        <option>American Bank of Oklahoma Collinsville
                                                                        </option>
                                                                        <option>American Bank of the Carolinas Monroe
                                                                        </option>
                                                                        <option>American Bank of the North </option>
                                                                        <option>American Business Bank Los Angeles
                                                                        </option>
                                                                        <option>American Commerce Bank </option>
                                                                        <option>American Community Bank Glen Cove
                                                                        </option>
                                                                        <option>American Community Bank & Trust
                                                                            Woodstock </option>
                                                                        <option>American Community Bank of Indiana
                                                                        </option>
                                                                        <option>American Continental Bank </option>
                                                                        <option>American Eagle Bank South Elgin
                                                                        </option>
                                                                        <option>American Equity Bank Minnetonka
                                                                        </option>
                                                                        <option>American Exchange Bank </option>
                                                                        <option>American Express National Bank Sandy
                                                                        </option>
                                                                        <option>American Federal Bank Fargo </option>
                                                                        <option>American First National Bank Houston
                                                                        </option>
                                                                        <option>American Heritage Bank Sapulpa </option>
                                                                        <option>American Heritage Bank Clovis </option>
                                                                        <option>American Heritage National Bank Long
                                                                            Prairie </option>
                                                                        <option>American Interstate Bank Elkhorn
                                                                        </option>
                                                                        <option>American Investors Bank and Mortgage
                                                                            Eden Prairie </option>
                                                                        <option>American Metro Bank Chicago </option>
                                                                        <option>American Momentum Bank </option>
                                                                        <option>Axos Bank </option>
                                                                        <option>Baker Boyer National Bank </option>
                                                                        <option>Ballston Spa National Bank </option>
                                                                        <option>Banc of California </option>
                                                                        <option>12152 BancCentral </option>
                                                                        <option>4975 Bank First </option>
                                                                        <option>24077 Bank of America California
                                                                        </option>
                                                                        <option>Bank of Brenham </option>
                                                                        <option>Bank of Bridger </option>
                                                                        <option>Bank of Brookfield-Purdin </option>
                                                                        <option>Bank of Desoto </option>
                                                                        <option>Bank of Hillsboro </option>
                                                                        <option>Bank of Houston </option>
                                                                        <option>Bank of Southern California </option>
                                                                        <option>Bank of Whittier </option>
                                                                        <option>BankChampaign </option>
                                                                        <option>BankFinancial </option>
                                                                        <option>BankUnited </option>
                                                                        <option>Barrington Bank & Trust Company
                                                                        </option>
                                                                        <option>Beacon Business Bank </option>
                                                                        <option>Bessemer Trust Company of California
                                                                        </option>
                                                                        <option>Bessemer Trust Company of Delaware
                                                                        </option>
                                                                        <option>Bessemer Trust Company </option>
                                                                        <option>Beverly Bank & Trust Company </option>
                                                                        <option>Big Bend Banks </option>
                                                                        <option>Black Hills Community Bank </option>
                                                                        <option>Blackrock Institutional Trust Company
                                                                        </option>
                                                                        <option>Blue Ridge Bank </option>
                                                                        <option>BMO Harris Bank </option>
                                                                        <option>BMO Harris Central National Association
                                                                        </option>
                                                                        <option>b1BANK Baton Rouge </option>
                                                                        <option>BAC Community Bank Stockton </option>
                                                                        <option>Badger Bank Fort Atkinson </option>
                                                                        <option>Baker-Boyer National Bank </option>
                                                                        <option>Balboa Thrift and Loan Association Chula
                                                                            Vista </option>
                                                                        <option>Ballston Spa National Bank Ballston Spa
                                                                        </option>
                                                                        <option>Banc of California </option>
                                                                        <option>BancCentral </option>
                                                                        <option>BancFirst Oklahoma City </option>
                                                                        <option>Banco do Brasil Americas Miami </option>
                                                                        <option>Banco Popular de Puerto Rico San Juan
                                                                        </option>
                                                                        <option>BancorpSouth Bank Tupelo </option>
                                                                        <option>Bandera Bank Bandera </option>
                                                                        <option>Banesco USA Coral Gables </option>
                                                                        <option>Bangor Savings Bank </option>
                                                                        <option>Bank Northwest Hamilton </option>
                                                                        <option>Bank of Abbeville & Trust Company
                                                                            Abbeville </option>
                                                                        <option>Bank of Alapaha Alapaha </option>
                                                                        <option>Bank of Alma Alma </option>
                                                                        <option>Bank of America California </option>
                                                                        <option>Bank of America Charlotte </option>
                                                                        <option>Bank of Anguilla Anguilla </option>
                                                                        <option>Bank of Ann Arbor Ann Arbor </option>
                                                                        <option>Bank of Baroda New York </option>
                                                                        <option>Bank of Bartlett Bartlett </option>
                                                                        <option>Bank of Bearden Bearden </option>
                                                                        <option>Bank of Belle Glade Belle Glade
                                                                        </option>
                                                                        <option>Bank of Belleville Belleville </option>
                                                                        <option>Bank of Bennington Bennington </option>
                                                                        <option>Bank of Billings </option>
                                                                        <option>Bank of Bird-in-Hand </option>
                                                                        <option>Bank of Blue Valley </option>
                                                                        <option>Bank of Bluffs </option>
                                                                        <option>Bank of Botetourt </option>
                                                                        <option>Bank of Bozeman </option>
                                                                        <option>Bank of Brenham </option>
                                                                        <option>Bank of Brewton </option>
                                                                        <option>Bank of Bridger </option>
                                                                        <option>Bank of Brookfield </option>
                                                                        <option>Bank of Brookhaven </option>
                                                                        <option>Bank of Buffalo </option>
                                                                        <option>Bank of Cadiz and Trust Company Cadiz
                                                                        </option>
                                                                        <option>Bank of Calhoun County Hardin </option>
                                                                        <option>Bank of Camilla Camilla </option>
                                                                        <option>Bank of Cashton </option>
                                                                        <option>Bank of Cattaraugus </option>
                                                                        <option>Bank of Cave City </option>
                                                                        <option>Bank of Central Florida Lakeland
                                                                        </option>
                                                                        <option>Bank of Charles Town </option>
                                                                        <option>Bank of Cherokee County Hulbert
                                                                        </option>
                                                                        <option>Bank of Chestnut </option>
                                                                        <option>Bank of China </option>
                                                                        <option>Bank of Clarke County </option>
                                                                        <option>Bank of Clarks </option>
                                                                        <option>Bank of Clarkson </option>
                                                                        <option>Bank of Clevelan </option>
                                                                        <option>Bank of Colorado </option>
                                                                        <option>Bank of Columbia </option>
                                                                        <option>Bank of Commerce </option>
                                                                        <option>Bank of Cordell Cordell </option>
                                                                        <option>Bank of Coushatta Coushatta </option>
                                                                        <option>Bank of Crocker Waynesville </option>
                                                                        <option>Bank of Crockett Bells </option>
                                                                        <option>Bank of Dade Trenton </option>
                                                                        <option>Bank of Dawson </option>
                                                                        <option>Bank of Deerfield </option>
                                                                        <option>Bank of Delight </option>
                                                                        <option>BNC National Bank </option>
                                                                        <option>BNY Mellon </option>
                                                                        <option>BOKF </option>
                                                                        <option>Brazos National Bank </option>
                                                                        <option>Bremer Bank </option>
                                                                        <option>Broadway National Bank 1177 N.E. Loop
                                                                            410 San Antonio TX 15797 474254 </option>
                                                                        <option>Brown Brothers Harriman Trust Company
                                                                        </option>
                                                                        <option>BTH Bank </option>
                                                                        <option>Buena Vista National Bank </option>
                                                                        <option>Business Bank of Texas </option>
                                                                        <option>Bank of Denton Denton </option>
                                                                        <option>Bank of DeSoto </option>
                                                                        <option>Bank of Dickson Dickson </option>
                                                                        <option>Bank of Dixon County Ponca </option>
                                                                        <option>Bank of Doniphan Doniphan </option>
                                                                        <option>Bank of Dudley Dudley </option>
                                                                        <option>Bank of Eastern Oregon Heppner </option>
                                                                        <option>Bank of Easton North Easton </option>
                                                                        <option>Bank of Edmonson County Brownsville
                                                                        </option>
                                                                        <option>Bank of Elgin </option>
                                                                        <option>Bank of England </option>
                                                                        <option>Bank of Erath </option>
                                                                        <option>Bank of Estes Park </option>
                                                                        <option>Bank of Eufaula Eufaula </option>
                                                                        <option>Bank of Evergreen </option>
                                                                        <option>Bank of Farmington </option>
                                                                        <option>Bank of Feather River Yuba City
                                                                        </option>
                                                                        <option>Bank of Frankewing </option>
                                                                        <option>Bank of Franklin Meadville </option>
                                                                        <option>Bank of Franklin County Washington
                                                                        </option>
                                                                        <option>Bank of George Las Vegas </option>
                                                                        <option>Bank of Gibson City </option>
                                                                        <option>Bank of Gleason </option>
                                                                        <option>Bank of Grand Lake </option>
                                                                        <option>Bank of Grandin </option>
                                                                        <option>Bank of Gravette </option>
                                                                        <option>Bank of Greeley </option>
                                                                        <option>Bank of Greeleyville </option>
                                                                        <option>Bank of Guam </option>
                                                                        <option>Bank of Gueydan </option>
                                                                        <option>Bank of Halls </option>
                                                                        <option>Bank of Hancock County Sparta </option>
                                                                        <option>Bank of Hartington </option>
                                                                        <option>Bank of Hawaii Honolulu </option>
                                                                        <option>Bank of Hays </option>
                                                                        <option>Bank of Hazelton </option>
                                                                        <option>Bank of Hazlehurst </option>
                                                                        <option>Bank of Hillsboro </option>
                                                                        <option>Bank of Hindman </option>
                                                                        <option>Bank of Holland </option>
                                                                        <option>Bank of Holly Springs </option>
                                                                        <option>Bank of Holyrood </option>
                                                                        <option>Bank of Hope </option>
                                                                        <option>Bank of Houston </option>
                                                                        <option>Bank of Hydro </option>
                                                                        <option>Bank of Iberia </option>
                                                                        <option>Bank of Idaho Idaho Falls </option>
                                                                        <option>Bank of India New York </option>
                                                                        <option>Bank of Jackson Hole </option>
                                                                        <option>Bank of Jamestown </option>
                                                                        <option>Bank of Kampsville </option>
                                                                        <option>Bank of Kilmichael </option>
                                                                        <option>Bank of Kirksville </option>
                                                                        <option>Bank of Labor Kansas City </option>
                                                                        <option>Bank of Lake Mills </option>
                                                                        <option>Bank of Lake Village </option>
                                                                        <option>Bank of Lewellen </option>
                                                                        <option>Bank of Lexington </option>
                                                                        <option>Bank of Lincoln County Fayetteville
                                                                        </option>
                                                                        <option>Bank of Lindsay </option>
                                                                        <option>Bank of Montana Missoula </option>
                                                                        <option>Bank of Montgomery </option>
                                                                        <option>Bank of Monticello </option>
                                                                        <option>Bank of Morton </option>
                                                                        <option>Bank of Moundville </option>
                                                                        <option>Bank of New Cambria </option>
                                                                        <option>Bank of New Hampshire </option>
                                                                        <option>Bank of New Madrid </option>
                                                                        <option>Bank of Newington </option>
                                                                        <option>Bank of Newman Grove </option>
                                                                        <option>Bank of O'Fallon </option>
                                                                        <option>Bank of Oak Ridge </option>
                                                                        <option>Bank of Little Rock </option>
                                                                        <option>Bank of Locust Grove </option>
                                                                        <option>Bank of Louisiana </option>
                                                                        <option>Bank of Lumber City </option>
                                                                        <option>Bank of Luxemburg </option>
                                                                        <option>Bank of Madison </option>
                                                                        <option>Bank of Maple </option>
                                                                        <option>Bank of Marin </option>
                                                                        <option>Bank of Mauston </option>
                                                                        <option>Bank of Maysville </option>
                                                                        <option>Bank of Mead </option>
                                                                        <option>Bank of Millbrook </option>
                                                                        <option>Bank of Milton </option>
                                                                        <option>Bank of Mingo </option>
                                                                        <option>C3bank </option>
                                                                        <option>Cadence Bank </option>
                                                                        <option>California First National Bank </option>
                                                                        <option>California International Bank, A
                                                                            National Banking Association </option>
                                                                        <option>Canandaigua National Trust Company of
                                                                            Florida </option>
                                                                        <option>Canyon Community Bank </option>
                                                                        <option>Capital Bank </option>
                                                                        <option>Capital One Bank (USA) </option>
                                                                        <option>Capital One </option>
                                                                        <option>Capitol National Bank </option>
                                                                        <option>Cayuga Lake National Bank </option>
                                                                        <option>Cedar Hill National Bank </option>
                                                                        <option>Cendera Bank </option>
                                                                        <option>Center National Bank </option>
                                                                        <option>Central National Bank </option>
                                                                        <option>Central National Bank </option>
                                                                        <option>CenTrust Bank </option>
                                                                        <option>CFBank </option>
                                                                        <option>Chain Bridge Bank </option>
                                                                        <option>Champlain National Bank </option>
                                                                        <option>Chester National Bank </option>
                                                                        <option>Chilton Trust Company </option>
                                                                        <option>Chino Commercial Bank </option>
                                                                        <option>CIBC National Trust Company </option>
                                                                        <option>CIT Bank </option>
                                                                        <option>Citibank, N.A. </option>
                                                                        <option>Citicorp Trust Delaware </option>
                                                                        <option>Citizens Bank </option>
                                                                        <option>Citizens Bank </option>
                                                                        <option>Citizens Community Federal National
                                                                            Association </option>
                                                                        <option>Citizens National Bank </option>
                                                                        <option>Citizens National Bank </option>
                                                                        <option>Citizens National Bank </option>
                                                                        <option>Citizens National Bank at Brownwood
                                                                        </option>
                                                                        <option>Citizens National Bank of Albion
                                                                        </option>
                                                                        <option>Citizens National Bank of Cheboygan
                                                                        </option>
                                                                        <option>Citizens National Bank of Crosbyton
                                                                        </option>
                                                                        <option>Citizens National Bank of Texas
                                                                        </option>
                                                                        <option>Citizens National Bank </option>
                                                                        <option>City First Bank of D.C. </option>
                                                                        <option>City National Bank </option>
                                                                        <option>City National Bank </option>
                                                                        <option>City National Bank of Florida </option>
                                                                        <option>City National Bank of West Virginia
                                                                        </option>
                                                                        <option>Clare Bank </option>
                                                                        <option>Classic Bank </option>
                                                                        <option>CNB Bank & Trust </option>
                                                                        <option>Coastal Carolina National Bank </option>
                                                                        <option>Comerica Bank & Trust </option>
                                                                        <option>Commerce National Bank & Trust </option>
                                                                        <option>Commercial Bank of Texas </option>
                                                                        <option>Commercial National Bank of Texarkana
                                                                        </option>
                                                                        <option>Commonwealth National Bank </option>
                                                                        <option>Community Bank </option>
                                                                        <option>Community First Bank </option>
                                                                        <option>Community First National Bank </option>
                                                                        <option>Community National Bank </option>
                                                                        <option>Community National Bank </option>
                                                                        <option>Community National Bank </option>
                                                                        <option>Community National Bank </option>
                                                                        <option>Community National Bank & Trust
                                                                        </option>
                                                                        <option>Community National Bank & Trust of Texas
                                                                        </option>
                                                                        <option>Community National Bank in Monmouth
                                                                        </option>
                                                                        <option>Community National Bank of Okarche
                                                                        </option>
                                                                        <option>Community West Bank </option>
                                                                        <option>CommunityBank of Texas </option>
                                                                        <option>Computershare Trust Company </option>
                                                                        <option>Connecticut Community Bank </option>
                                                                        <option>Consumers National Bank </option>
                                                                        <option>Cornerstone Bank </option>
                                                                        <option>Cornerstone National Bank & Trust
                                                                            Company </option>
                                                                        <option>Cortrust Bank National Association
                                                                        </option>
                                                                        <option>Country Club Trust Company </option>
                                                                        <option>County National Bank </option>
                                                                        <option>Credit First National Association
                                                                        </option>
                                                                        <option>Credit One Bank </option>
                                                                        <option>Crockett National Bank </option>
                                                                        <option>Crystal Lake Bank & Trust Company
                                                                        </option>
                                                                        <option>Cumberland Valley National Bank & Trust
                                                                            Company </option>
                                                                        <option>Dakota Community Bank & Trust </option>
                                                                        <option>Dallas Capital Bank </option>
                                                                        <option>Delta National Bank and Trust Company
                                                                        </option>
                                                                        <option>Department Stores National Bank
                                                                        </option>
                                                                        <option>Desjardins Bank </option>
                                                                        <option>Deutsche Bank Holdings Delaware National Trust Company
                                                                        </option>
                                                                        <option>Deutsche Bank Holdings Delaware Trust Company </option>
                                                                        <option>DNB National Bank </option>
                                                                        <option>Douglas National Bank </option>
                                                                        <option>DSRM National Bank </option>
                                                                        <option>Eastbank </option>
                                                                        <option>Eastern National Bank </option>
                                                                        <option>Edison National Bank </option>
                                                                        <option>EH National Bank </option>
                                                                        <option>Embassy National Bank </option>
                                                                        <option>Esquire Bank </option>
                                                                        <option>Evans Bank </option>
                                                                        <option>Evercore Trust Company </option>
                                                                        <option>Evergreen National Bank </option>
                                                                        <option>Extraco Banks </option>
                                                                        <option>F&M Community Bank </option>
                                                                        <option>Falcon National Bank </option>
                                                                        <option>Farmers National Bank </option>
                                                                        <option>Farmers National Bank </option>
                                                                        <option>Farmers National Bank of Griggsville
                                                                        </option>
                                                                        <option>FCN Bank </option>
                                                                        <option>Fidelity Bank </option>
                                                                        <option>Fifth Third Bank </option>
                                                                        <option>Finemark National Bank & Trust </option>
                                                                        <option>First & Farmers National Bank, Inc.
                                                                        </option>
                                                                        <option>First American National Bank </option>
                                                                        <option>First Bankers Trust Company </option>
                                                                        <option>First Century Bank </option>
                                                                        <option>Deutsche Bank Holdings Delaware   </option>
                                                                        <option>First Colorado National Bank </option>
                                                                        <option>First Commercial Bank </option>
                                                                        <option>First Community National Bank </option>
                                                                        <option>First Community Trust </option>
                                                                        <option>First Dakota National Bank </option>
                                                                        <option>First Farmers & Merchants National Bank
                                                                        </option>
                                                                        <option>First Farmers & Merchants National Bank
                                                                        </option>
                                                                        <option>First Federal Community Bank </option>
                                                                        <option>First Financial Bank </option>
                                                                        <option>First Financial Bank </option>
                                                                        <option>First Financial Trust & Asset Management
                                                                            Company </option>
                                                                        <option>First Financial Trust </option>
                                                                        <option>First Hope Bank, A National Banking
                                                                            Association </option>
                                                                        <option>First Mid Bank & Trust </option>
                                                                        <option>First National Bank & Trust </option>
                                                                        <option>First National Bank & Trust Company
                                                                        </option>
                                                                        <option>First National Bank & Trust Company of
                                                                            McAlester </option>
                                                                        <option>First National Bank Alaska </option>
                                                                        <option>First National Bank Albany/Breckenridge
                                                                        </option>
                                                                        <option>First National Bank and Trust </option>
                                                                        <option>First National Bank and Trust </option>
                                                                        <option>First National Bank and Trust Co. of
                                                                            Bottineau </option>
                                                                        <option>First National Bank and Trust Company
                                                                        </option>
                                                                        <option>First National Bank and Trust Company of
                                                                            Ardmore </option>
                                                                        <option>First National Bank and Trust Company of
                                                                            Weatherford </option>
                                                                        <option>First National Bank at Darlington
                                                                        </option>
                                                                        <option>First National Bank in Cimarron
                                                                        </option>
                                                                        <option>First National Bank in DeRidder
                                                                        </option>
                                                                        <option>First National Bank in Fairfield
                                                                        </option>
                                                                        <option>First National Bank in Frankfort
                                                                        </option>
                                                                        <option>First National Bank in Fredonia
                                                                        </option>
                                                                        <option>First National Bank in Howell </option>
                                                                        <option>First National Bank in New Bremen
                                                                        </option>
                                                                        <option>First National Bank in Okeene </option>
                                                                        <option>First National Bank in Olney </option>
                                                                        <option>First National Bank in Ord </option>
                                                                        <option>First National Bank in Philip </option>
                                                                        <option>First National Bank in Pinckneyville
                                                                        </option>
                                                                        <option>First National Bank in Port Lavaca
                                                                        </option>
                                                                        <option>First National Bank in Taylorville
                                                                        </option>
                                                                        <option>First National Bank in Tigerton
                                                                        </option>
                                                                        <option>First National Bank Minnesota </option>
                                                                        <option>First National Bank North </option>
                                                                        <option>First National Bank Northwest Florida
                                                                        </option>
                                                                        <option>First National Bank of Alvin </option>
                                                                        <option>First National Bank of America </option>
                                                                        <option>First National Bank of Anderson
                                                                        </option>
                                                                        <option>First National Bank of Beardstown
                                                                        </option>
                                                                        <option>First National Bank of Benton </option>
                                                                        <option>First National Bank of Bosque County
                                                                        </option>
                                                                        <option>First National Bank of Brookfield
                                                                        </option>
                                                                        <option>First National Bank of Burleson
                                                                        </option>
                                                                        <option>First National Bank of Central Texas
                                                                        </option>
                                                                        <option>First National Bank of Chadron </option>
                                                                        <option>First National Bank of Clarksdale
                                                                        </option>
                                                                        <option>First National Bank of Coffee County
                                                                        </option>
                                                                        <option>First National Bank of Decatur County
                                                                        </option>
                                                                        <option>First National Bank of Dublin </option>
                                                                        <option>First National Bank of Eastern Arkansas
                                                                        </option>
                                                                        <option>First National Bank of Fort Stockton
                                                                        </option>
                                                                        <option>First National Bank of Giddings
                                                                        </option>
                                                                        <option>First National Bank of Gillette
                                                                        </option>
                                                                        <option>First National Bank of Griffin </option>
                                                                        <option>First National Bank of Hereford
                                                                        </option>
                                                                        <option>First National Bank of Huntsville
                                                                        </option>
                                                                        <option>First National Bank of Kansas </option>
                                                                        <option>First National Bank of Kentucky
                                                                        </option>
                                                                        <option>First National Bank of Lake Jackson
                                                                        </option>
                                                                        <option>First National Bank of Las Animas
                                                                        </option>
                                                                        <option>First National Bank of Louisiana
                                                                        </option>
                                                                        <option>First National Bank of McGregor
                                                                        </option>
                                                                        <option>First National Bank of Michigan
                                                                        </option>
                                                                        <option>First National Bank of Muscatine
                                                                        </option>
                                                                        <option>First National Bank of Nokomis </option>
                                                                        <option>First National Bank of North Arkansas
                                                                        </option>
                                                                        <option>First National Bank of Oklahoma
                                                                        </option>
                                                                        <option>First National Bank of Omaha </option>
                                                                        <option>First National Bank of Pana </option>
                                                                        <option>First National Bank of Pasco </option>
                                                                        <option>First National Bank of Pennsylvania
                                                                        </option>
                                                                        <option>First National Bank of Picayune
                                                                        </option>
                                                                        <option>First National Bank of Pulaski </option>
                                                                        <option>First National Bank of River Falls
                                                                        </option>
                                                                        <option>First National Bank of Scotia </option>
                                                                        <option>First National Bank of South Carolina
                                                                        </option>
                                                                        <option>First National Bank of South Padre
                                                                            Island </option>
                                                                        <option>First National Bank of Steeleville
                                                                        </option>
                                                                        <option>First National Bank of Tennessee
                                                                        </option>
                                                                        <option>First National Bank of Wauchula
                                                                        </option>
                                                                        <option>First National Bank of Winnsboro
                                                                        </option>
                                                                        <option>First National Bank Texas </option>
                                                                        <option>First National Bank USA </option>
                                                                        <option>First National Bank, Ames, Iowa
                                                                        </option>
                                                                        <option>First National Bank, Cortez </option>
                                                                        <option>First National Bankers Bank </option>
                                                                        <option>First National Community Bank </option>
                                                                        <option>First National Community Bank </option>
                                                                        <option>First National Trust Company </option>
                                                                        <option>First Neighbor Bank </option>
                                                                        <option>First Pioneer National Bank </option>
                                                                        <option>First Robinson Savings Bank </option>
                                                                        <option>First Southern National Bank </option>
                                                                        <option>First Texoma National Bank </option>
                                                                        <option>First United National Bank </option>
                                                                        <option>FirstCapital Bank of Texas </option>
                                                                        <option>First-Lockhart National Bank </option>
                                                                        <option>Florida Capital Bank </option>
                                                                        <option>Forcht Bank </option>
                                                                        <option>Forest Park National Bank and Trust
                                                                            Company </option>
                                                                        <option>FSNB </option>
                                                                        <option>Fulton Bank </option>
                                                                        <option>Gilmer National Bank </option>
                                                                        <option>Glens Falls National Bank and Trust
                                                                            Company </option>
                                                                        <option>GNBank </option>
                                                                        <option>Golden Bank </option>
                                                                        <option>Golden Pacific Bank </option>
                                                                        <option>Goldwater Bank </option>
                                                                        <option>Grand Ridge National Bank </option>
                                                                        <option>Grasshopper Bank </option>
                                                                        <option>Great Plains National Bank </option>
                                                                        <option>Greenville National Bank </option>
                                                                        <option>Guaranty Bank & Trust </option>
                                                                        <option>Haskell National Bank </option>
                                                                        <option>Hawaii National Bank </option>
                                                                        <option>Heartland National Bank </option>
                                                                        <option>Heritage Bank </option>
                                                                        <option>Hiawatha National Bank </option>
                                                                        <option>Hilltop National Bank </option>
                                                                        <option>Hinsdale Bank & Trust Company </option>
                                                                        <option>HNB National Bank </option>
                                                                        <option>Home Bank </option>
                                                                        <option>Home National Bank </option>
                                                                        <option>Home State Bank / National Association
                                                                        </option>
                                                                        <option>Hometown Bank </option>
                                                                        <option>Hometown National Bank </option>
                                                                        <option>HSBC Bank USA </option>
                                                                        <option>HSBC Trust Company (Delaware) </option>
                                                                        <option>INB </option>
                                                                        <option>Incommons Bank </option>
                                                                        <option>Industrial and Commercial Bank of China
                                                                            (USA) </option>
                                                                        <option>Intercredit Bank </option>
                                                                        <option>Intrust Bank </option>
                                                                        <option>Investar Bank </option>
                                                                        <option>Inwood National Bank </option>
                                                                        <option>JPMorgan Chase Bank </option>
                                                                        <option>Junction National Bank </option>
                                                                        <option>KEB Hana Bank USA </option>
                                                                        <option>Key National Trust Company of Delaware
                                                                        </option>
                                                                        <option>KeyBank National Association </option>
                                                                        <option>Keystone Bank </option>
                                                                        <option>Kingston National Bank </option>
                                                                        <option>Kleberg Bank </option>
                                                                        <option>Kress National Bank </option>
                                                                        <option>Lake Forest Bank & Trust Company
                                                                        </option>
                                                                        <option>Lamar National Bank </option>
                                                                        <option>Landmark National Bank </option>
                                                                        <option>LCNB National Bank </option>
                                                                        <option>Leader Bank </option>
                                                                        <option>Ledyard National Bank </option>
                                                                        <option>Legacy National Bank </option>
                                                                        <option>Legacy Trust Company </option>
                                                                        <option>Legend Bank </option>
                                                                        <option>LendingClub Bank </option>
                                                                        <option>Liberty National Bank </option>
                                                                        <option>Liberty National Bank </option>
                                                                        <option>Liberty National Bank </option>
                                                                        <option>Libertyville Bank & Trust Company
                                                                        </option>
                                                                        <option>Llano National Bank </option>
                                                                        <option>Lone Star Capital Bank </option>
                                                                        <option>Lone Star National Bank </option>
                                                                        <option>Malvern Bank </option>
                                                                        <option>Mason City National Bank </option>
                                                                        <option>Mccurtain County National Bank </option>
                                                                        <option>Merchants Bank </option>
                                                                        <option>MetaBank </option>
                                                                        <option>Midamerica National Bank </option>
                                                                        <option>Mid-Central National Bank </option>
                                                                        <option>Midstates Bank </option>
                                                                        <option>Midwest Bank </option>
                                                                        <option>Millbury National Bank </option>
                                                                        <option>Minnesota National Bank </option>
                                                                        <option>Minnstar Bank National Association
                                                                        </option>
                                                                        <option>Mission National Bank </option>
                                                                        <option>Modern Bank </option>
                                                                        <option>Moody National Bank </option>
                                                                        <option>Morgan Stanley Bank, N.A. </option>
                                                                        <option>Morgan Stanley Private Bank </option>
                                                                        <option>Mountain Valley Bank </option>
                                                                        <option>MUFG Union Bank </option>
                                                                        <option>Natbank </option>
                                                                        <option>National Advisors Trust Company
                                                                        </option>
                                                                        <option>National Bank & Trust </option>
                                                                        <option>National Bank of Commerce </option>
                                                                        <option>National Bank of New York City </option>
                                                                        <option>National Bank of St. Anne </option>
                                                                        <option>National Cooperative Bank, N.A.
                                                                        </option>
                                                                        <option>National Exchange Bank and Trust
                                                                        </option>
                                                                        <option>National United </option>
                                                                        <option>Native American Bank </option>
                                                                        <option>NBT Bank </option>
                                                                        <option>Nebraskaland National Bank </option>
                                                                        <option>Neighborhood National Bank </option>
                                                                        <option>Neighborhood National Bank </option>
                                                                        <option>Neuberger Berman Trust Company National
                                                                            Association </option>
                                                                        <option>Neuberger Berman Trust Company of
                                                                            Delaware National Association </option>
                                                                        <option>New Covenant Trust Company </option>
                                                                        <option>New Horizon Bank </option>
                                                                        <option>New Omni Bank </option>
                                                                        <option>Newfield National Bank </option>
                                                                        <option>Newfirst National Bank </option>
                                                                        <option>NexTier Bank </option>
                                                                        <option>Nicolet National Bank </option>
                                                                        <option>North Georgia National Bank </option>
                                                                        <option>Northbrook Bank & Trust Company
                                                                        </option>
                                                                        <option>Northern California National Bank
                                                                        </option>
                                                                        <option>Northern Interstate Bank </option>
                                                                        <option>Northwestern Bank </option>
                                                                        <option>Natbank </option>
                                                                        <option>National Advisors Trust Company
                                                                        </option>
                                                                        <option>National Bank & Trust </option>
                                                                        <option>National Bank of Commerce </option>
                                                                        <option>National Bank of New York City </option>
                                                                        <option>National Bank of St. Anne </option>
                                                                        <option>National Cooperative Bank, N.A.
                                                                        </option>
                                                                        <option>National Exchange Bank and Trust
                                                                        </option>
                                                                        <option>National United </option>
                                                                        <option>Native American Bank </option>
                                                                        <option>NBT Bank </option>
                                                                        <option>Nebraskaland National Bank </option>
                                                                        <option>Neighborhood National Bank </option>
                                                                        <option>Neighborhood National Bank </option>
                                                                        <option>Neuberger Berman Trust Company National
                                                                            Association </option>
                                                                        <option>Neuberger Berman Trust Company of
                                                                            Delaware National Association </option>
                                                                        <option>New Covenant Trust Company </option>
                                                                        <option>New Horizon Bank </option>
                                                                        <option>New Omni Bank </option>
                                                                        <option>Newfield National Bank </option>
                                                                        <option>Newfirst National Bank </option>
                                                                        <option>NexTier Bank </option>
                                                                        <option>Nicolet National Bank </option>
                                                                        <option>North Georgia National Bank </option>
                                                                        <option>Northbrook Bank & Trust Company
                                                                        </option>
                                                                        <option>Northern California National Bank
                                                                        </option>
                                                                        <option>Northern Interstate Bank </option>
                                                                        <option>Northwestern Bank </option>
                                                                        <option>Pacific National Bank </option>
                                                                        <option>Panola National Bank </option>
                                                                        <option>Patriot Bank </option>
                                                                        <option>Peoples National Bank of Kewanee
                                                                        </option>
                                                                        <option>Peoples National Bank, N.A. </option>
                                                                        <option>People's United Bank </option>
                                                                        <option>Pike National Bank </option>
                                                                        <option>Pikes Peak National Bank </option>
                                                                                  <option> Deutsche Bank Holdings Delaware  </option>

                                                                        <option>Pioneer Trust Bank </option>
                                                                        <option>PNC Bank </option>
                                                                        <option>Powell Valley National Bank </option>
                                                                        <option>Progressive National Bank </option>
                                                                        <option>Quail Creek Bank </option>
                                                                        <option>Quantum National Bank </option>
                                                                        <option>Queensborough National Bank & Trust
                                                                            Company </option>
                                                                        <option>Ramsey National Bank </option>
                                                                        <option>Range Bank </option>
                                                                        <option>Raymond James Bank </option>
                                                                        <option>Raymond James Trust </option>
                                                                        <option>RBC Bank (Georgia) </option>
                                                                        <option>Relyance Bank </option>
                                                                        <option>Resource Bank </option>
                                                                        <option>Rockefeller Trust Company </option>
                                                                        <option>RockPoint Bank </option>
                                                                        <option>Safra National Bank of New York
                                                                        </option>
                                                                        <option>Santander Bank </option>
                                                                        <option>Saratoga National Bank and Trust Company
                                                                        </option>
                                                                        <option>Savannah Bank National Association
                                                                        </option>
                                                                        <option>Schaumburg Bank & Trust Company
                                                                        </option>
                                                                        <option>Seacoast National Bank </option>
                                                                        <option>Securian Trust Company </option>
                                                                        <option>Security First National Bank of Hugo
                                                                        </option>
                                                                        <option>Security National Bank </option>
                                                                        <option>Security National Bank of Omaha
                                                                        </option>
                                                                        <option>Security National Bank of South Dakota
                                                                        </option>
                                                                        <option>Security National Trust Co. </option>
                                                                        <option>Shamrock Bank </option>
                                                                        <option>Signature Bank </option>
                                                                        <option>Skyline National Bank </option>
                                                                        <option>SNB Bank </option>
                                                                        <option>Solera National Bank </option>
                                                                        <option>South State Bank </option>
                                                                        <option>SouthCrest Bank </option>
                                                                        <option>Southeast First National Bank </option>
                                                                        <option>Southtrust Bank </option>
                                                                        <option>Southwest National Bank </option>
                                                                        <option>Southwestern National Bank </option>
                                                                        <option>St. Charles Bank & Trust Company
                                                                        </option>
                                                                        <option>St. Martin National Bank </option>
                                                                        <option>State Bank of the Lakes </option>
                                                                        <option>State Street Bank and Trust Company
                                                                            National Association </option>
                                                                        <option>State Street Bank and Trust Company of
                                                                            California </option>
                                                                        <option>Stearns Bank Holdingford National
                                                                            Association </option>
                                                                        <option>Stearns Bank National Association
                                                                        </option>
                                                                        <option>Stearns Bank Upsala National Association
                                                                        </option>
                                                                        <option>Sterling National Bank </option>
                                                                        <option>Stifel Trust Company Delaware </option>
                                                                        <option>Stifel Trust Company </option>
                                                                        <option>Stillman Banccorp National Association
                                                                        </option>
                                                                        <option>Stockmens National Bank in Cotulla
                                                                        </option>
                                                                        <option>Stride Bank </option>
                                                                        <option>Stroud National Bank </option>
                                                                        <option>Summit National Bank </option>
                                                                        <option>Sunflower Bank </option>
                                                                        <option>Sunrise Banks </option>
                                                                        <option>Superior National Bank </option>
                                                                        <option>Synovus Trust Company </option>
                                                                        <option>T Bank </option>
                                                                        <option>TCF National Bank </option>
                                                                        <option>TCM Bank </option>
                                                                        <option>TD Bank USA </option>
                                                                        <option>TD Bank </option>
                                                                        <option>Terrabank National Association </option>
                                                                        <option>Texan Bank </option>
                                                                        <option>Texana Bank </option>
                                                                        <option>Texas Advantage Community Bank </option>
                                                                        <option>Texas Capital Bank </option>
                                                                        <option>Texas Citizens Bank </option>
                                                                        <option>Texas Gulf Bank </option>
                                                                        <option>Texas Heritage National Bank </option>
                                                                        <option>Texas National Bank </option>
                                                                        <option>Texas National Bank </option>
                                                                        <option>Texas National Bank of Jacksonville
                                                                        </option>
                                                                        <option>Texas Republic Bank </option>
                                                                        <option>TexStar National Bank </option>
                                                                        <option>The American National Bank of Mount
                                                                            Pleasant </option>
                                                                        <option>The American National Bank of Texas
                                                                        </option>
                                                                        <option>The Atlanta National Bank </option>
                                                                        <option>The Bank National Association </option>
                                                                        <option>The Bank of New York Mellon Trust
                                                                            Company </option>
                                                                        <option>The Bradford National Bank of Greenville
                                                                        </option>
                                                                        <option>The Brady National Bank </option>
                                                                        <option>The Brenham National Bank </option>
                                                                        <option>The Camden National Bank </option>
                                                                        <option>The Canandaigua National Bank and Trust
                                                                            Company </option>
                                                                        <option>The Central National Bank of Poteau
                                                                        </option>
                                                                        <option>The Chicago Trust Company </option>
                                                                        <option>The Citizens First National Bank of
                                                                            Storm Lake </option>
                                                                        <option>The Citizens National Bank </option>
                                                                        <option>The Citizens National Bank of Bluffton
                                                                        </option>
                                                                        <option>The Citizens National Bank of Hammond
                                                                        </option>
                                                                        <option>The Citizens National Bank of Hillsboro
                                                                        </option>
                                                                        <option>The Citizens National Bank of Lebanon
                                                                        </option>
                                                                        <option>The Citizens National Bank of
                                                                            McConnelsville </option>
                                                                        <option>The Citizens National Bank of Meridian
                                                                        </option>
                                                                        <option>The Citizens National Bank of Park
                                                                            Rapids </option>
                                                                        <option>The Citizens National Bank of Quitman
                                                                        </option>
                                                                        <option>The Citizens National Bank of Somerset
                                                                        </option>
                                                                        <option>The Citizens National Bank of Woodsfield
                                                                        </option>
                                                                        <option>The City National Bank and Trust Company
                                                                            of Lawton, Oklahoma </option>
                                                                        <option>The City National Bank of Colorado City
                                                                        </option>
                                                                        <option>The City National Bank of Metropolis
                                                                        </option>
                                                                        <option>The City National Bank of San Saba
                                                                        </option>
                                                                        <option>The City National Bank of Sulphur
                                                                            Springs </option>
                                                                        <option>The City National Bank of Taylor
                                                                        </option>
                                                                        <option>The Clinton National Bank </option>
                                                                        <option>The Commercial National Bank of Brady
                                                                        </option>
                                                                        <option>The Conway National Bank </option>
                                                                        <option>The Delaware National Bank of Delhi
                                                                        </option>
                                                                        <option>The Ephrata National Bank </option>
                                                                        <option>The Fairfield National Bank </option>
                                                                        <option>The Falls City National Bank </option>
                                                                        <option>The Farmers and Merchants National Bank
                                                                            of Fairview </option>
                                                                        <option>The Farmers and Merchants National Bank
                                                                            of Nashville </option>
                                                                        <option>The Farmers' National Bank of Canfield
                                                                        </option>
                                                                        <option>The Farmers National Bank of Danville
                                                                        </option>
                                                                        <option>The Farmers National Bank of Emlenton
                                                                        </option>
                                                                        <option>The Farmers National Bank of Lebanon
                                                                        </option>
                                                                        <option>The Fayette County National Bank of
                                                                            Fayetteville </option>
                                                                        <option>The First Central National Bank of St.
                                                                            Paris </option>
                                                                        <option>The Deutsche Bank Holdings Delaware   of
                                                                            Upper Sandusky </option>
                                                                        <option>The First Farmers National Bank of
                                                                            Waurika </option>
                                                                        <option>The First Liberty National Bank
                                                                        </option>
                                                                        <option>The First National Bank </option>
                                                                        <option>The First National Bank & Trust Co. of
                                                                            Iron Mountain </option>
                                                                        <option>The First National Bank and Trust Co.
                                                                        </option>
                                                                        <option>The First National Bank and Trust
                                                                            Company </option>
                                                                        <option>The First National Bank and Trust
                                                                            Company of Broken Arrow </option>
                                                                        <option>The First National Bank and Trust
                                                                            Company of Miami </option>
                                                                        <option>The First National Bank and Trust
                                                                            Company of Newtown </option>
                                                                        <option>The First National Bank and Trust
                                                                            Company of Okmulgee </option>
                                                                        <option>The First National Bank and Trust
                                                                            Company of Vinita </option>
                                                                        <option>The First National Bank at Paris
                                                                        </option>
                                                                        <option>The First National Bank at St. James
                                                                        </option>
                                                                        <option>The First National Bank in Amboy
                                                                        </option>
                                                                        <option>The First National Bank in Carlyle
                                                                        </option>
                                                                        <option>The First National Bank in Cooper
                                                                        </option>
                                                                        <option>The First National Bank in Creston
                                                                        </option>
                                                                        <option>The First National Bank in Falfurrias
                                                                        </option>
                                                                        <option>The First National Bank in Marlow
                                                                        </option>
                                                                        <option>The First National Bank in Sioux Falls
                                                                        </option>
                                                                        <option>The First National Bank in Tremont
                                                                        </option>
                                                                        <option>The First National Bank in Trinidad
                                                                        </option>
                                                                        <option>The First National Bank of Absecon
                                                                        </option>
                                                                        <option>The First National Bank of Allendale
                                                                        </option>
                                                                        <option>The First National Bank of Anson
                                                                        </option>
                                                                        <option>The First National Bank of Arenzville
                                                                        </option>
                                                                        <option>The First National Bank of Aspermont
                                                                        </option>
                                                                        <option>The First National Bank of Assumption
                                                                        </option>
                                                                        <option>The First National Bank of Ava </option>
                                                                        <option>The First National Bank of Ballinger
                                                                        </option>
                                                                        <option>The First National Bank of Bangor
                                                                        </option>
                                                                        <option>The First National Bank of Bastrop
                                                                        </option>
                                                                        <option>The First National Bank of Bellevue
                                                                        </option>
                                                                        <option>The First National Bank of Bellville
                                                                        </option>
                                                                        <option>The First National Bank of Bemidji
                                                                        </option>
                                                                        <option>The First National Bank of Blanchester
                                                                        </option>
                                                                        <option>The First National Bank of Brooksville
                                                                        </option>
                                                                        <option>The First National Bank of Brownstown
                                                                        </option>
                                                                        <option>The First National Bank of Buhl
                                                                        </option>
                                                                        <option>The First National Bank of Carmi
                                                                        </option>
                                                                        <option>The First National Bank of Cokato
                                                                        </option>
                                                                        <option>The First National Bank of Coleraine
                                                                        </option>
                                                                        <option>The First National Bank of Dennison
                                                                        </option>
                                                                        <option>The First National Bank of Dighton
                                                                        </option>
                                                                        <option>The First National Bank of Dozier
                                                                        </option>
                                                                        <option>The First National Bank of Dryden
                                                                        </option>
                                                                        <option>The First National Bank of Eagle Lake
                                                                        </option>
                                                                        <option>The First National Bank of East Texas
                                                                        </option>
                                                                        <option>The First National Bank of Eldorado
                                                                        </option>
                                                                        <option>The First National Bank of Elmer
                                                                        </option>
                                                                        <option>The First National Bank of Ely </option>
                                                                        <option>The First National Bank of Evant
                                                                        </option>
                                                                        <option>The First National Bank of Fairfax
                                                                        </option>
                                                                        <option>The First National Bank of Fleming
                                                                        </option>
                                                                        <option>The First National Bank of Fletcher
                                                                        </option>
                                                                        <option>The First National Bank of Floydada
                                                                        </option>
                                                                        <option>The First National Bank of Fort Smith
                                                                        </option>
                                                                        <option>The First National Bank of Frederick
                                                                        </option>
                                                                        <option>The First National Bank of Germantown
                                                                        </option>
                                                                        <option>The First National Bank of Gilbert
                                                                        </option>
                                                                        <option>The First National Bank of Gordon
                                                                        </option>
                                                                        <option>The First National Bank of Granbury
                                                                        </option>
                                                                        <option>The First National Bank of Grayson
                                                                        </option>
                                                                        <option>The First National Bank of Groton
                                                                        </option>
                                                                        <option>The First National Bank of Hartford
                                                                        </option>
                                                                        <option>The First National Bank of Harveyville
                                                                        </option>
                                                                        <option>The First National Bank of Hebbronville
                                                                        </option>
                                                                        <option>The First National Bank of Henning
                                                                        </option>
                                                                        <option>The First National Bank of Hooker
                                                                        </option>
                                                                        <option>The First National Bank of Hope
                                                                        </option>
                                                                        <option>The First National Bank of Hughes
                                                                            Springs </option>
                                                                        <option>The First National Bank of Hugo
                                                                        </option>
                                                                        <option>The First National Bank of Hutchinson
                                                                        </option>
                                                                        <option>The First National Bank of Izard County
                                                                        </option>
                                                                        <option>The First National Bank of Jeanerette
                                                                        </option>
                                                                        <option>The First National Bank of Johnson
                                                                        </option>
                                                                        <option>The First National Bank of Kemp
                                                                        </option>
                                                                        <option>The First National Bank of Lacon
                                                                        </option>
                                                                        <option>The First National Bank of Lawrence
                                                                            County at Walnut Ridge </option>
                                                                        <option>The First National Bank of Le Center
                                                                        </option>
                                                                        <option>The First National Bank of Lindsay
                                                                        </option>
                                                                        <option>The First National Bank of Lipan
                                                                        </option>
                                                                        <option>The First National Bank of Litchfield
                                                                        </option>
                                                                        <option>The First National Bank of Livingston
                                                                        </option>
                                                                        <option>The First National Bank of Long Island
                                                                        </option>
                                                                        <option>The First National Bank of Louisburg
                                                                        </option>
                                                                        <option>The First National Bank of Manchester
                                                                        </option>
                                                                        <option>The First National Bank of Manning
                                                                        </option>
                                                                        <option>The First National Bank of
                                                                            McConnelsville </option>
                                                                        <option>The First National Bank of McIntosh
                                                                        </option>
                                                                        <option>The First National Bank of Mertzon
                                                                        </option>
                                                                        <option>The First National Bank of Middle
                                                                            Tennessee </option>
                                                                        <option>The First National Bank of Milaca
                                                                        </option>
                                                                        <option>The First National Bank of Monterey
                                                                        </option>
                                                                        <option>The First National Bank of Moody
                                                                        </option>
                                                                        <option>The First National Bank of Moose Lake
                                                                        </option>
                                                                        <option>The First National Bank of Mount Dora
                                                                        </option>
                                                                        <option>The First National Bank of Nevada,
                                                                            Missouri </option>
                                                                        <option>The First National Bank of Okawville
                                                                        </option>
                                                                        <option>The First National Bank of Oneida
                                                                        </option>
                                                                        <option>The First National Bank of Orwell
                                                                        </option>
                                                                        <option>The First National Bank of Osakis
                                                                        </option>
                                                                        <option>The First National Bank of Ottawa
                                                                        </option>
                                                                        <option>The First National Bank of Pandora
                                                                        </option>
                                                                        <option>The First National Bank of Peterstown
                                                                        </option>
                                                                        <option>The First National Bank of Primghar
                                                                        </option>
                                                                        <option>The First National Bank of Proctor
                                                                        </option>
                                                                        <option>The First National Bank of Quitaque
                                                                        </option>
                                                                        <option>The First National Bank of Raymond
                                                                        </option>
                                                                        <option>The First National Bank of Russell
                                                                            Springs </option>
                                                                        <option>The First National Bank of Sandoval
                                                                        </option>
                                                                        <option>The First National Bank of Scott City
                                                                        </option>
                                                                        <option>The First National Bank of Sedan
                                                                        </option>
                                                                        <option>The First National Bank of Shiner
                                                                        </option>
                                                                        <option>The First National Bank of Sonora
                                                                        </option>
                                                                        <option>The First National Bank of South Miami
                                                                        </option>
                                                                        <option>The First National Bank of Sparta
                                                                        </option>
                                                                        <option>The First National Bank of Spearville
                                                                        </option>
                                                                        <option>The First National Bank of St. Ignace
                                                                        </option>
                                                                        <option>The First National Bank of Stanton
                                                                        </option>
                                                                        <option>The First National Bank of Sterling City
                                                                        </option>
                                                                        <option>The First National Bank of Stigler
                                                                        </option>
                                                                        <option>The First National Bank of Sycamore
                                                                        </option>
                                                                        <option>The First National Bank of Syracuse
                                                                        </option>
                                                                        <option>The First National Bank of Tahoka
                                                                        </option>
                                                                        <option>The First National Bank of Tom Bean
                                                                        </option>
                                                                        <option>The First National Bank of Trinity
                                                                        </option>
                                                                        <option>The First National Bank of Wakefield
                                                                        </option>
                                                                        <option>The First National Bank of Waseca
                                                                        </option>
                                                                        <option>The First National Bank of Waterloo
                                                                        </option>
                                                                        <option>The First National Bank of Waverly
                                                                        </option>
                                                                        <option>The First National Bank of Waynesboro
                                                                        </option>
                                                                        <option>The First National Bank of Weatherford
                                                                        </option>
                                                                        <option>The First National Bank of Williamson
                                                                        </option>
                                                                        <option>The First, A National Banking
                                                                            Association </option>
                                                                        <option>The Fisher National Bank </option>
                                                                        <option>The Glenmede Trust Company </option>
                                                                        <option>The Goldman Sachs Trust Company
                                                                        </option>
                                                                        <option>The Granger National Bank </option>
                                                                        <option>The Granville National Bank </option>
                                                                        <option>The Havana National Bank </option>
                                                                        <option>The Home National Bank of Thorntown
                                                                        </option>
                                                                        <option>The Hondo National Bank </option>
                                                                        <option>The Honesdale National Bank </option>
                                                                        <option>The Huntington National Bank </option>
                                                                        <option>The Idabel National Bank </option>
                                                                        <option>The Jacksboro National Bank </option>
                                                                        <option>The Karnes County National Bank of
                                                                            Karnes City </option>
                                                                        <option>The Lamesa National Bank </option>
                                                                        <option>The Lemont National Bank </option>
                                                                        <option>The Liberty National Bank in Paris
                                                                        </option>
                                                                        <option>The Lincoln National Bank of Hodgenville
                                                                        </option>
                                                                        <option>The Litchfield National Bank </option>
                                                                        <option>The Lyons National Bank </option>
                                                                        <option>The Malvern National Bank </option>
                                                                        <option>The Marion National Bank </option>
                                                                        <option>The Merchants National Bank </option>
                                                                        <option>The Miners National Bank of Eveleth
                                                                        </option>
                                                                        <option>The Mint National Bank </option>
                                                                        <option>The National Bank of Adams County of
                                                                            West Union </option>
                                                                        <option>The National Bank of Andrews </option>
                                                                        <option>The National Bank of Blacksburg
                                                                        </option>
                                                                        <option>The National Bank of Coxsackie </option>
                                                                        <option>The National Bank of Indianapolis
                                                                        </option>
                                                                        <option>The National Bank of Malvern </option>
                                                                        <option>The National Bank of Middlebury
                                                                        </option>
                                                                        <option>The National Bank of Texas at Fort Worth
                                                                        </option>
                                                                        <option>The National Capital Bank of Washington
                                                                        </option>
                                                                        <option>The National Grand Bank of Marblehead
                                                                        </option>
                                                                        <option>The National Iron Bank </option>
                                                                        <option>The Neffs National Bank </option>
                                                                        <option>The Northumberland National Bank
                                                                        </option>
                                                                        <option>The Old Exchange National Bank of
                                                                            Okawville </option>
                                                                        <option>The Old Point National Bank of Phoebus
                                                                        </option>
                                                                        <option>The Park National Bank </option>
                                                                        <option>The Pauls Valley National Bank </option>
                                                                        <option>The Pennsville National Bank </option>
                                                                        <option>The Peoples National Bank of Checotah
                                                                        </option>
                                                                        <option>The Perryton National Bank </option>
                                                                        <option>The Peshtigo National Bank </option>
                                                                        <option>The Private Trust Company </option>
                                                                        <option>The Putnam County National Bank of
                                                                            Carmel </option>
                                                                        <option>The Riddell National Bank </option>
                                                                        <option>The Salyersville National Bank </option>
                                                                        <option>The Santa Anna National Bank </option>
                                                                        <option>The Security National Bank of Enid
                                                                        </option>
                                                                        <option>The Security National Bank of Sioux
                                                                            City, Iowa </option>
                                                                        <option>The State National Bank of Big Spring
                                                                        </option>
                                                                        <option>The State National Bank of Groom
                                                                        </option>
                                                                        <option>The Stephenson National Bank and Trust
                                                                        </option>
                                                                        <option>The Tipton Latham Bank </option>
                                                                        <option>The Trust Company of Toledo </option>
                                                                        <option>The Turbotville National Bank </option>
                                                                        <option>The University National Bank of Lawrence
                                                                        </option>
                                                                        <option>The Upstate National Bank </option>
                                                                        <option>The Vinton County National Bank
                                                                        </option>
                                                                        <option>The Waggoner National Bank of Vernon
                                                                        </option>
                                                                        <option>The Yoakum National Bank </option>
                                                                        <option>Thomasville National Bank </option>
                                                                        <option>TIB The Independent BankersBank
                                                                        </option>
                                                                        <option>Tioga State Bank </option>
                                                                        <option>Titan Bank </option>
                                                                        <option>Touchmark National Bank </option>
                                                                        <option>Town Bank </option>
                                                                        <option>Town-Country National Bank </option>
                                                                        <option>Transact Bank </option>
                                                                        <option>Tri City National Bank </option>
                                                                        <option>Triad Bank </option>
                                                                        <option>Trinity Bank </option>
                                                                        <option>Trustmark National Bank </option>
                                                                        <option>U.S. Bank National Association </option>
                                                                        <option>U.S. Bank Trust Company </option>
                                                                        <option>U.S. Bank Trust National Association
                                                                        </option>
                                                                        <option>U.S. Bank Trust National Association SD
                                                                        </option>
                                                                        <option>UMB Bank & Trust </option>
                                                                        <option>UMB Bank </option>
                                                                        <option>Union National Bank </option>
                                                                        <option>United Bank & Trust National Association
                                                                        </option>
                                                                        <option>United Midwest Savings Bank </option>
                                                                        <option>United National Bank </option>
                                                                        <option>Unity National Bank of Houston </option>
                                                                        <option>Valley National Bank </option>
                                                                        <option>Vanguard National Trust Company
                                                                        </option>
                                                                        <option>Varo Bank </option>
                                                                        <option>Vast Bank </option>
                                                                        <option>VeraBank </option>
                                                                        <option>Viking Bank </option>
                                                                        <option>Village Bank & Trust </option>
                                                                        <option>Virginia National Bank </option>
                                                                        <option>Vision Bank </option>
                                                                        <option>Washington Federal Bank </option>
                                                                        <option>Waterford Bank </option>
                                                                        <option>Webster Bank </option>
                                                                        <option>Wellington Trust Company </option>
                                                                        <option>Wells Fargo Bank South Central </option>
                                                                        <option>Wells Fargo Bank </option>
                                                                        <option>Wells Fargo Delaware Trust Company
                                                                        </option>
                                                                        <option>Wells Fargo National Bank West </option>
                                                                        <option>Wells Fargo Trust Company </option>
                                                                        <option>West Texas National Bank </option>
                                                                        <option>West Valley National Bank </option>
                                                                        <option>Western National Bank </option>
                                                                        <option>Western National Bank </option>
                                                                        <option>Western National Bank </option>
                                                                        <option>Wheaton Bank & Trust Company </option>
                                                                        <option>Wheaton College Trust Company </option>
                                                                        <option>Wilmington Trust </option>
                                                                        <option>Winter Park National Bank </option>
                                                                        <option>Wintrust Bank </option>
                                                                        <option>WNB Financial </option>
                                                                        <option>Woodforest National Bank </option>
                                                                        <option>Woodlands National Bank </option>
                                                                        <option>Worthington National Bank </option>
                                                                        <option>Zapata National Bank </option>
                                                                        <option>Zions Bancorporation </option>
                                                                    </datalist>
                                                                    <label class="form-label-outlined"
                                                                        for="bankname">Bank name:</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-lg-6 col-sm-6 p-2">
                                                            <div class="form-group">
                                                                <div class="form-control-wrap">
                                                                    <div class="form-icon form-icon-right">
                                                                        <em class="icon ni ni-card-view"></em>
                                                                    </div>
                                                                    <input type="text"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="sortcode" id="sortcode">
                                                                        <input type="hidden"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="amount" id="amount" value="<?=$amount?>">
                                                                        <input type="hidden"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="balance" id="balance" value="<?=number_format($row['checking_balance'],2)?>">
                                                                        <input type="hidden"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="currency" id="currency" value="<?=$row['usercurrency']?>">
                                                                    <label class="form-label-outlined"
                                                                        for="sortcode">Bank routing number</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-lg-6 col-sm-6 p-2">
                                                            <div class="form-group">
                                                                <div class="form-control-wrap">
                                                                    <div class="form-icon form-icon-right">
                                                                        <em class="icon ni ni-card-view"></em>
                                                                    </div>
                                                                    <input type="text"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="accountnumber" id="accountnumber">
                                                                    <label class="form-label-outlined"
                                                                        for="accountnumber">Account Number:</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-lg-12 col-sm-12 p-2">
                                                            <div class="form-group">
                                                                <div class="form-control-wrap">
                                                                    <div class="form-icon form-icon-right">
                                                                        <em class="icon ni ni-user-alt"></em>
                                                                    </div>
                                                                    <input type="text"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="accountholder" id="accountholder">
                                                                    <label class="form-label-outlined"
                                                                        for="accountholder">Account holder:</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="col-lg-12 col-sm-12 p-2">
                                                            <div class="form-group">
                                                                <div class="form-control-wrap">
                                                                    <div class="form-icon form-icon-right">
                                                                        <em class="icon ni ni-chat-fill"></em>
                                                                    </div>
                                                                    <input type="text"
                                                                        class="form-control form-control-xl form-control-outlined"
                                                                        name="description" id="description">
                                                                    <label class="form-label-outlined"
                                                                        for="accountholder">Description(optional):</label>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="buysell-field form-action">
                                                        <div class="custom-control custom-checkbox mb-3">
                                                            <input type="checkbox" class="custom-control-input" id="saveBeneficiary">
                                                            <label class="custom-control-label" for="saveBeneficiary">Save as beneficiary for future transfers</label>
                                                        </div>
                                                        <button type="submit"
                                                            class="btn btn-lg btn-block btn-primary stepTwoFormnew"
                                                            id="btn2">Continue to next step</button>
                                                        <br>
                                                        <p></p>
                                                        <center>
                                                            <a class="btn btn-sm btn-light" href="transfer?action=edit">
                                                                <em class="icon ni ni-edit"></em>
                                                                Edit
                                                            </a>
                                                        </center>
                                                    </div>
                                    </form>
                                    <script type="text/javascript">
                           $(document).ready(function () {
    $("#accountnumber").on("input", function () {
        var accountnumber = $(this).val();

        if (accountnumber.length === 10) { // Run AJAX when input is exactly 10 digits
            $("#accountholder").html('<div class="spinner-border text-success" role="status"><span class="sr-only">Loading...</span></div>');

            $.ajax({
                type: "POST",
                url: "../apps/user/user_account_name.php",
                data: { accountnumber: accountnumber },
                success: function (data) {
                    if (data.trim() === "no user found with this account number") {
                        Swal.fire({
                            icon: "error",
                            title: "User Not Found",
                            text: "No user found with this account number!",
                        });
                        $("#accountholder").html(""); // Clear field
                        $("#btn2").prop("disabled", true);
                    } else {
                        $("#accountholder").val(data);
                        $("#accountholder").click(function () {
});
                        $("#btn2").prop("disabled", false);
                    }
                },
                error: function () {
                    Swal.fire({
                        icon: "error",
                        title: "Error",
                        text: "Something went wrong while fetching user details!",
                    });
                    $("#accountholder").html(""); // Clear field
                    $("#btn2").prop("disabled", true);
                }
            });

        } else if (accountnumber.length > 0 && accountnumber.length < 10) { 
           
        }
    });
});



                                    </script>
     <script type="text/javascript">
$(document).ready(function () {
    $('.stepTwoFormnew').click(function (e) {
        e.preventDefault();
        
        // Disable the button
        document.getElementById("btn2").disabled = true;
        
        // Collect form data
        var bankname = $('#bankname').val().trim();
        var accountnumber = $('#accountnumber').val().trim();
        var accountholder = $('#accountholder').val().trim();
        var sortcode = $('#sortcode').val().trim();
        var description = $('#description').val().trim();
        var currency = $('#currency').val().trim();
        var amount = $('#amount').val().trim();
        var balance = $('#balance').val().trim();

        // Validate form data
        if (!bankname || !accountnumber || !accountholder || !sortcode || !amount || !currency || !balance) {
            Swal.fire({
                icon: 'error',
                title: 'Validation Error',
                text: 'Please fill in all required fields.',
                showConfirmButton: true,
            });
            document.getElementById("btn2").disabled = false;
            return;
        }

        if (isNaN(accountnumber)) {
            Swal.fire({
                icon: 'error',
                title: 'Validation Error',
                text: 'Account number must be numeric.',
                showConfirmButton: true,
            });
            document.getElementById("btn2").disabled = false;
            return;
        }

        if (isNaN(sortcode)) {
            Swal.fire({
                icon: 'error',
                title: 'Validation Error',
                text: 'Sort code must be numeric.',
                showConfirmButton: true,
            });
            document.getElementById("btn2").disabled = false;
            return;
        }

        if (isNaN(amount) || parseFloat(amount) <= 0) {
            Swal.fire({
                icon: 'error',
                title: 'Validation Error',
                text: 'Amount must be a positive number.',
                showConfirmButton: true,
            });
            document.getElementById("btn2").disabled = false;
            return;
        }

        // Save beneficiary if checked, then proceed
        saveBeneficiaryIfChecked();

        // Ajax request
        $.ajax({
            type: "POST",
            url: "../apps/user/bankdetails-intra.php",
            data: {
                bankname: bankname,
                accountnumber: accountnumber,
                accountholder: accountholder,
                sortcode: sortcode,
                description: description,
                amount: amount,
                currency: currency,
                balance: balance
            },
            success: function (data) {
                if (data.trim() === "disabled") {
                    Swal.fire({
                        icon: 'error',
                        title: 'Transfer Disabled',
                        text: 'Transfer for this user is disabled. Please contact customer care for assistance.',
                        showConfirmButton: false,
                        timer: 20000000
                    });
                } else {
                    document.getElementById("btn2").disabled = false;

                    // Append the modal HTML to the body if needed
                    $('body').append(data);

                    // Show the modal
                    $('#detailsModal').modal('show');
                }
                
            },
            error: function (xhr, status, error) {
                console.error("AJAX error: " + status + " - " + error);
                document.getElementById("btn2").disabled = false;
            }
        });
    });

    // ── Beneficiary Management ──────────────────────────────────
    var beneficiaries = [];
    function loadBeneficiaries() {
        $.getJSON('../apps/user/loadbeneficiaries.php', function(data) {
            beneficiaries = data;
            var sel = $('#savedBeneficiary');
            sel.find('option:not(:first)').remove();
            $.each(data, function(i, b) {
                sel.append('<option value="' + i + '">' + b.name + ' — ' + b.account_num + ' (' + b.bank + ')</option>');
            });
        }).fail(function() {
            console.log('Failed to load beneficiaries');
        });
    }
    loadBeneficiaries();

    $('#savedBeneficiary').on('change', function() {
        var index = $(this).val();
        if (index === '') return;
        var b = beneficiaries[parseInt(index)];
        if (b) {
            setFieldVal('#bankname', b.bank);
            setFieldVal('#sortcode', b.routing || '');
            setFieldVal('#accountnumber', b.account_num);
            setFieldVal('#accountholder', b.name);
        }
    });

    function setFieldVal(selector, value) {
        $(selector).val(value).trigger('change').closest('.form-control-wrap').addClass('focused');
    }

    function saveBeneficiaryIfChecked() {
        if ($('#saveBeneficiary').is(':checked')) {
            $.post('../apps/user/savebeneficiary.php', {
                rbank: $('#bankname').val().trim(),
                accno: $('#accountnumber').val().trim(),
                rname: $('#accountholder').val().trim(),
                routing: $('#sortcode').val().trim()
            }, function(resp) {
                if (resp.trim() === 'success') { loadBeneficiaries(); }
            });
        }
    }

    // ── End Beneficiary Management ─────────────────────────────

});
</script>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="nk-footer nk-footer-fluid">
                <div class="container-fluid">
                    <div class="nk-footer-wrap">
                        <div class="nk-footer-copyright">
                            &copy;<?php
echo date("Y");
?>  <?= htmlspecialchars(getSetting('site_name', 'Deutsche Bank Holdings Delaware')) ?>   <a href="#">All rights reserved.</a>
                        </div>
                        <div class="nk-footer-links">
                            <ul class="nav nav-sm">
                                <li class="nav-item">
                                    <a class="nav-link" href="#">Terms</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="privacy">Privacy</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="contact">Help</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <!-- footer @e -->
        </div>
        <!-- wrap @e -->
    </div>
    <!-- main @e -->
    </div>
    <!-- app-root @e -->
    <!-- JavaScript -->

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script src="../js/country.js"></script>
    <script src="assets/js/bundle.js?ver=2.4.0"></script>
    <script src="assets/js/scripts.js?ver=2.4.0"></script>
    <script src="assets/js/charts/chart-crypto.js?ver=2.4.0"></script>
    <script src="../js/sweetalert.js"></script>
    <script src="assets/js/jquery.min.js"></script>
    <script src="assets/js/custom.js"></script>
    <script src="../js/toastr.js"></script>
</body>

</html>