// CurrentAccountsSearchEnhance.js
// JS Enhancements for the Current account Search page

function handleSortChanged() {
    $("[id$='btnRefresh']").trigger('click');
}


function addSearchControlHandlers() {
    $("[id$='drpSort']").bind('change', handleSortChanged);
}

function hookupSearchEnhancements(evt)
{
  addSearchControlHandlers();

  $('div.InvisibilityDivision').each(
    function(i) {
        $(this).show();
    }
  );

    $('p.SortList').each(
  function(i) {
      $(this).show();
  }
  ); 
}

$(document).ready(hookupSearchEnhancements);
