// -- Requires SFCAjax.js. --

function AjaxShowWeek(
aYear,
aWeek)
{
   AjaxUpdate('ContentBody','/NFLIndex/',{Ajax: 'UpdateContent', Year: aYear, Week: aWeek});
   
   return(true);
}



function AjaxShowHistory(
aHistory)
{
   AjaxUpdate('ContentBody','/NFLIndex/',{Ajax: 'ShowHistory', History: aHistory});
   
   return(true);
}



function AjaxRefresh()
{
   AjaxUpdate('ContentBody','/NFLIndex/',{Ajax: 'Refresh'});
   
   return(true);
}



function SelectYear(
aYear)
{
   $('YearSelect').value = aYear;
   
   return(true);
}



function ClearHistory()
{
   $('HistorySelect').options.length = 0;
   
   return(true);
}



function AddHistory(
aText,
aValue)
{
   hist = $('HistorySelect')
   hist.options.add(new Option(aText,aValue));
   
   return(true);
}



function ScrollToSection(
aSection)
{
   $(aSection).scrollTo();
   
   return(true);
}
