var PoweredForm = Class.create();

PoweredForm.setCommand = function (button) {
  var form = button.form;
  if (form.command) {
    form.command.value = button.name;
  }
}

