["status"] == true) {
              alert('Sukses mengirim pesan.');
            } else {
            alert('Gagal mengirim pesan.\n' + jsonResponse["msg"]);
            }
        }
      }
  	};
  	xhttp.open("POST", "{?=url([ADMIN,'api','kirimwa'])?}", true);
  	xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  	xhttp.send("api_key=" + api_key + "&sender=" + sender + "&number=" + number + "&message=" + message);
  }
</script>
