function Searchbar(display_rules) {
  this.display_rules = display_rules;

  if (typeof Searchbar._initialized == "undefined") {

    Searchbar.prototype.processSelect = function (el) {
      var param = el.value;

      if (el.id=="finder_ListTypeID//finder_SectionID") {
        this.changeForm(param);
      }
    }

    Searchbar.prototype.changeForm = function (param) {
      var rowStyle = "block";
//alert(this.display_rules[param]);
//showArray(this.display_rules);
      if (this.display_rules[param]) {
        if (this.display_rules[param]=="events") {
          this.changeToEventsForm(rowStyle);
        } else if (this.display_rules[param]=="price") {
          this.changeToPriceForm(rowStyle);
        } else {
          this.changeToNormalForm(rowStyle);
        }
      } else {
        this.changeToNormalForm(rowStyle);
      }
    }

    Searchbar.prototype.changeToEventsForm = function (rowStyle) {
      changeStyle("price_range_row","display","none");
      changeStyle("date_range_row","display",rowStyle);
    }

    Searchbar.prototype.changeToPriceForm = function (rowStyle) {
      changeStyle("date_range_row","display","none");
      changeStyle("price_range_row","display",rowStyle);
    }

    Searchbar.prototype.changeToNormalForm = function (rowStyle) {
      changeStyle("date_range_row","display","none");
      changeStyle("price_range_row","display","none");
    }

    Searchbar._initialized = true;
  }
}

function initPage_obj() {
  //post_obj.init();
}



