
function toggleAllTournaments () { 
	alert ("start");
	boxes = document.tournaments.elements;
	alert (boxes);
	while ( b = boxes.next() ) { 
		alert (b);
	}
}

function askUser(question) { 
	return confirm(question);
}


function checkSeriesEdit() { 
	alert(document.tournament.occurs);
	return false;
	question = "Are you sure you wish to apply these changes to the whole series of tournaments?";
	if ( document.tournament.occurs != "once" ) { 
		return askUser(question);
	} else { 
		return true;
	}
}

