
Event.observe(window, 'load', initPowerSearchCalendars);

// {{{ initPowerSearchCalendars()
function initPowerSearchCalendars() {
  Calendar.setup({
      inputField     :    "calendar1",      // id of the input field
      ifFormat       :    "%m/%d/%Y",       // format of the input field
      showsTime      :    false,            // will display a time selector
      button         :    "calimage1",   // trigger for the calendar (button ID)
      align          :    "Bl",           // alignment (defaults to "Bl")
      singleClick    :    true,           // double-click mode
      step           :    1                // show all years in drop-down boxes (instead of every other year as default)
  });

  Calendar.setup({
      inputField     :    "calendar2",      // id of the input field
      ifFormat       :    "%m/%d/%Y",       // format of the input field
      showsTime      :    false,            // will display a time selector
      button         :    "calimage2",   // trigger for the calendar (button ID)
      align          :    "Bl",           // alignment (defaults to "Bl")
      singleClick    :    true,           // double-click mode
      step           :    1                // show all years in drop-down boxes (instead of every other year as default)
  });
} // }}}

