<script>
$(document).ready(function() {
    $("#loader").hide();      
});

function playSound(item) {

    // alert(item.value);
    var sound = new Howl({
      src: ['<?php echo BASE_URL_ORIG;?>'+item.value+'.mp3', '<?php echo BASE_URL_ORIG;?>'+item.value+'.ogg', '<?php echo BASE_URL_ORIG;?>'+item.value+'.wav']
    });
      
    // Finally play the sound, also on mobiles
    sound.play();
}

// JavaScript to disable send button and show loading.gif image
$("#sendTM").on("click", function() {
  $("#loader").show();
  $('#sendTM').val("<?php echo $jkl['g67'];?>");
  $('#sendTM').attr("disabled", "disabled");
  $('.jak_form').submit();
});  

ls.main_url = "<?php echo BASE_URL_ADMIN;?>";
ls.orig_main_url = "<?php echo BASE_URL_ORIG;?>";
ls.main_lang = "<?php echo JAK_LANG;?>";
</script>
