function showChoices () {
#----------------------------------------------------------------------
  global $chosenWhat;
  displayChoices( array(
    eventChoice( false ),
    competitionChoice(),
    choice( 'what', 'What', array( array( '', 'All' ), array( 'individual', 'individual results' ), array( 'ranks', 'ranks' ), array( 'similar', 'similar results' )), $chosenWhat ),
    choiceButton( true, 'show', 'Show' )
  ));
}
function offerChoices () {
#----------------------------------------------------------------------
  global $chosenEventId, $chosenRegionId, $chosenYears, $chosenPatternHtml, $chosenList, $chosenMap;

  displayChoices( array(
    eventChoice( false ),
    regionChoice( true ),
    yearsChoice( true, true, false, true ),
    textFieldChoice( 'pattern', 'Name, City or Venue', $chosenPatternHtml ),
    array(
      choiceButton( $chosenList, 'list', 'List' ),
      choiceButton( $chosenMap, 'map', 'Map' ),
    )
  ));
}
function showChoices()
{
    #----------------------------------------------------------------------
    displayChoices(array(eventChoice(false), competitionChoice(), choiceButton(true, 'show', 'Show')));
}
function offerChoices()
{
    #----------------------------------------------------------------------
    global $chosenMixed, $chosenSlim, $chosenSeparate, $chosenHistory, $chosenMixHist;
    displayChoices(array(regionChoice(false), eventChoice(false), yearsChoice(true, false, true, false), array(choiceButton($chosenMixed, 'mixed', 'Mixed'), choiceButton($chosenSlim, 'slim', 'Slim'), choiceButton($chosenSeparate, 'separate', 'Separate'), choiceButton($chosenHistory, 'history', 'History'), choiceButton($chosenMixHist, 'mixHist', 'Mixed History'))));
}
function offerChoices()
{
    #----------------------------------------------------------------------
    global $chosenPatternHtml;
    displayChoices(array(eventChoice(false), regionChoice(false), textFieldChoice('pattern', 'Name, parts, or WCA id', $chosenPatternHtml), choiceButton(true, 'search', 'Search')));
}
function offerChoices()
{
    #----------------------------------------------------------------------
    global $chosenShow, $chosenSingle, $chosenAverage;
    displayChoices(array(eventChoice(true), regionChoice(false), yearsChoice(true, false, true, true), choice('show', 'Show', array(array('100 Persons', '100 Persons'), array('1000 Persons', '1000 Persons'), array('All Persons', 'All Persons'), array('By Region', 'By Region'), array('100 Results', '100 Results'), array('1000 Results', '1000 Results')), $chosenShow), array(choiceButton($chosenSingle, 'single', 'Single'), choiceButton($chosenAverage, 'average', 'Average'))));
}