function toggleDisplay(to_show, the_link, show_text, hide_text)
{
  e = document.getElementById(to_show);
  if (e.style.display == 'none' || e.style.display == '')
  {
    e.style.display = 'block';
    the_link.innerHTML = (hide_text == null ? 'Hide' : hide_text);
  }
  else
  {
    e.style.display = 'none';
    the_link.innerHTML = (show_text == null ? 'Show' : show_text);
  }
}

function checkReportGen()
{
  // Only one date filter, not both
  if(document.getElementById('filter_month').value != ''  &&  document.getElementById('filter_day').value != '')
  {
    alert('Please choose either a month or day to filter the report by, not both.');
    return false;
  }
  // Only one scope filter, not both
  if(document.getElementById('filter_scope_user').value != ''  &&  document.getElementById('filter_scope_emp').value != '')
  {
    alert('Please choose either a company or employee to filter the report by, not both.');
    return false;
  }
  return true;
}