function courier_services_open_tab(evt, cityName) {
    var courier_services_i, courier_services_tabcontent, courier_services_tablinks;
    courier_services_tabcontent = document.getElementsByClassName("tabcontent");
    for (courier_services_i = 0; courier_services_i < courier_services_tabcontent.length; courier_services_i++) {
        courier_services_tabcontent[courier_services_i].style.display = "none";
    }
    courier_services_tablinks = document.getElementsByClassName("tablinks");
    for (courier_services_i = 0; courier_services_i < courier_services_tablinks.length; courier_services_i++) {
        courier_services_tablinks[courier_services_i].className = courier_services_tablinks[courier_services_i].className.replace(" active", "");
    }
    document.getElementById(cityName).style.display = "block";
    evt.currentTarget.className += " active";
}

jQuery(document).ready(function () {
    jQuery( ".tab-sec .tablinks" ).first().addClass( "active" );
});


// jQuery(document).ready(function($) {
//     $('#run-importer-button').on('click', function(e) {
//         e.preventDefault();
        
//         // Start the import process
//         $.ajax({
//             url: ajaxurl,
//             type: 'POST',
//             data: {
//                 action: 'run_demo_import',
//                 // Other necessary data
//             },
//             success: function(response) {
//                 // Update the status div with the success message and button
//                 $('#import-status').html(
//                     '<p>Your demo import was completed successfully!</p>' +
//                     '<a href="' + site_url + '" class="button button-primary">View Site</a>'
//                 );
//             },
//             error: function(xhr, status, error) {
//                 // Handle errors
//                 $('#import-status').html('<p>There was an error during the import process.</p>');
//             }
//         });
//     });
// });