var Ratings = {

  currentStep: 1,
  
  categorySelected: function(categoryId, categoryType) {
    return false;
  },

  nextStep: function() {
    if (this.currentStep != 3) {
      this.currentStep = this.currentStep + 1;
      this.reviseStepsVisibility();
    }
  },

  previousStep: function() {
    if (this.currentStep != 1) {
      this.currentStep = this.currentStep - 1;
      this.reviseStepsVisibility();
    }
  },

  reviseStepsVisibility: function() {
    for (i = 1; i <= 3; i++) {
      if (this.currentStep != i) {
        Element.hide("rating_form_step_" + i);
      }
      else {
        Element.show("rating_form_step_" + i);
      }
    }
  }
}
