/* check/uncheck top tab options from a click on a tab option name */
function toggleChecksFromText( checkID,otherCheckID ) {
	return toggleChecks( document.getElementById( checkID ), otherCheckID );
}

/* check/uncheck top tab options from a click on a tab check box */
function toggleChecks( check, otherCheckID ) {
	var otherCheck = document.getElementById( otherCheckID );
	if( check.src.indexOf( "unchecked.gif" ) != -1 ) {
		check.src = "images/checked.gif";
		otherCheck.src = "images/unchecked.gif";
	}				
	if( otherCheckID == "confCheck" ) {
		season_display_mode = 1;
	} else if ( otherCheckID == "divCheck" ) {
		season_display_mode = 2;
	} else if ( otherCheckID == "balCheck" ) {
		money_display_mode = 1;
	} else if ( otherCheckID == "wonCheck" ) {
		money_display_mode = 2;
	}
}

// init the checkbox so the correct one is checked off based on what the display_mode is
function initCheckboxes() {
	if ( season_display_mode == 2 ) {
		document.getElementById( "divCheck" ).setAttribute( 'src', "images/unchecked.gif" );
		document.getElementById( "confCheck" ).setAttribute( 'src', "images/checked.gif" );
	} else {
		document.getElementById( "divCheck" ).setAttribute( 'src', "images/checked.gif" );
		document.getElementById( "confCheck" ).setAttribute( 'src', "images/unchecked.gif" );
	}
	if ( money_display_mode == 2 ) {
		document.getElementById( "wonCheck" ).setAttribute( 'src', "images/unchecked.gif" );
		document.getElementById( "balCheck" ).setAttribute( 'src', "images/checked.gif" );
	} else {
		document.getElementById( "wonCheck" ).setAttribute( 'src', "images/checked.gif" );
		document.getElementById( "balCheck" ).setAttribute( 'src', "images/unchecked.gif" );
	}
}