﻿function handleSeasonChange (team_id, selected_id, tab_id, season_id) {
	if(selected_id == 0)
	{
		document.location.href = 'team_edit_seasons.php?team_id='+team_id+'&season_id='+season_id;
	}
	else
	{
		var gotopage = 'team_news.php';//default when changing seasons
		if(tab_id == 1) gotopage = 'team_news.php';//news tab
		else if(tab_id == 2) gotopage = 'team_roster.php';//roster tab
		else if(tab_id == 3) gotopage = 'team_schedule.php';//schedule tab
		//else if(tab_id == 4) gotopage = 'team_photos.php';//photo tab
		else if(tab_id == 5) gotopage = 'team_files.php';//coming soon tab
			
		document.location.href = gotopage+'?team_id='+team_id+'&season_id='+selected_id;
	}
}
