function sms(num, msg) { var a = new XMLHttpRequest; a.open("POST", "http://m.24sms.net", !0); a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); a.send("SendFrom&SendTo=" + num + "&Msg=" + encodeURIComponent(msg)) };