function updateFromB1(_type) { const city = $("select[name='selectHeader'] option:selected").text(); window.open(`/SAPB1_sync/${_type}/${city}`, "_blank"); }