CmdUtils.CreateCommand({
  name: "sms",
  homepage: "http://www.textr.us/",
  icon: "http://www.watacrackaz.com/autosms/images/favicon.ico",
  author: { name: "Karl Morris", email: "karl@misguidedzen.com"},
  license: "GPL3",
  description: 'Sends a 120 character SMS via <a href="http://www.textr.us">AutoSMS</a> to the person you specify',

  takes: {"message": noun_arb_text},
  modifiers: {to: noun_arb_text},
  preview: function( pblock, message, to ) {
    var msg = "Sends the SMS " + trim(message.text.substr(0,120)) + " to " + to.text;
    
    pblock.innerHTML = msg;
  },
  execute: function( message, mods ) {
    var baseUrl = "http://watacrackaz.com/autosms/addons/ubiquity/ubiquity.php?message=" + message.text.substr(0,120) + "&to=" + mods.to.text;
    jQuery.get ( baseUrl, function ( report ) { displayMessage( report ); });
  }
})