
function showHide(show, showSections, hideSections)
{
  showHideList(show, showSections);
  showHideList(!show, hideSections);
}

function showHideList(show, sections)
{
  for (var i in sections)
  {
    var item = $('#' + sections[i]);
    if (item)
    	show ? item.show() : item.hide();
    else
      alert('Section ' + sections[i] + ' does not exist!');
  }
}

