toggleButton: function(action, condition, success, fail, success_caption, fail_caption)