var awards = {
  grant: function(scout_id, award_id)  {
    //  Submit the Award via AJAX
    var url = '/advancement/grant_award?scout_id=' + scout_id + '&award_id=' + award_id;
    new Ajax.Request(url, {
      method: 'post',
      onSuccess: function(transport) {
        if (transport.responseText.match(/FAILURE/))  {
          alert("Failed to grant award!");        
        } 
        else  {
          Effect.Squish('award_' + scout_id + '_' + award_id);
        }
      }
    });
  }
};