function submit_poll(result_url)
{
  var selected_poll = $('input[@name = "polling-answer"]:checked').val();
  
  if(selected_poll)
  {
    $.ajax(
      {
        type: 'POST',
        url: '/polling/polling-terbaru/polling-form.aspx',
        data: 'node-id=' + selected_poll,
        success:
          function(data)
          {
            if(data)
            {
              document.location = result_url;
            }
            else
            {
              alert('Perintah gagal dilaksanakan. Mohon ulangi kembali');
            }
          }
      }
    );
  }
  else
  {
    alert('Silahkan pilih jawaban terlebih dahulu');
  }
}