function listRounds($selectedRoundId, $formId)
{
    #----------------------------------------------------------------------
    $result = "<select class='drop' id='{$formId}' name='{$formId}'>\n";
    $selected = $selectedRoundId == 'del' ? " selected='selected'" : "";
    $result .= "<option value='del'{$selected}>[delete]</option>\n";
    foreach (getAllRounds() as $round) {
        extract($round);
        $selected = $id == $selectedRoundId ? " selected='selected'" : "";
        $result .= "<option value='{$id}'{$selected}>{$cellName}</option>\n";
    }
    $result .= "</select>";
    return $result;
}
function getAllRoundIds                    () { return getAllIDs( getAllRounds()                    ); }
function getRound($roundId)
{
    foreach (getAllRounds() as $round) {
        if ($round['id'] == $roundId) {
            return $round;
        }
    }
}
function listRounds ( $selectedRoundId, $formId ) {
#----------------------------------------------------------------------

  $result = "<select class='drop' id='$formId' name='$formId'>\n";

  $selected = ($selectedRoundId == 'del') ? " selected='selected'" : "";
  $result .= "<option value='del'$selected>[delete]</option>\n";

  foreach( getAllRounds() as $round ){
    extract( $round );

    $selected = ($id == $selectedRoundId) ? " selected='selected'" : "";
    $result .= "<option value='$id'$selected>$cellName</option>\n";
  }

  $result .= "</select>";
  return $result;

}