function RatingControl(base_name) {
  this.base_name = base_name;
  this.value = null
};

RatingControl.prototype.setValue = function(selected_star_ind) {
  $(this.base_name).value = selected_star_ind;
  $(this.base_name + '_value').style.width = (selected_star_ind*20) + "px";
  new Effect.Opacity(selected_star_ind + "_" + this.base_name + "_star", { duration: 0.2,  transition: Effect.Transitions.linear, from: 0.3, to: 1.0 });
};

