    ShowLeague = 1
    Header   = ""
    FirstBG  = "#E0E0E0"
    SecondBG = "#D0D0D0"
    ResultClass = "Result" ;
    GameClass   = "Game" ;
    TeamClass   = "TeamList" ;

    function SetShowLeague( Value )
      {
        ShowLeague = Value
      }

    function SetTableTitle( Value )
      {
        Header = Value
      }

    function SetBackStrips( First, Second )
      {
        FirstBG  = First ;
        SecondBG = Second ;
      }

    function SetClasses( Result, Game, TeamList )
      {
        ResultClass = Result ;
        GameClass   = Game ;
        TeamClass   = TeamList ;
      }

    function Start()
      {
        document.write( Header )
        document.write( "<Table Border='0' CellSpacing='1' CellPadding='1'>" )
        background = 0
        Header = ""
        HomeScorers = ""
        AwayScorers = ""
      }

    function Result( League, HomeTeam, HomeScore, Result, AwayTeam, AwayScore, Status )
      {
        document.write( "  <TR>" )
        if ( background == 0 )
          { if ( ShowLeague == 1 )
              { document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + ResultClass + "'> " + League + " </DIV></TD>" )
              }
            document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + ResultClass + "'> " + HomeTeam + " </DIV></TD>" )
            document.write( "    <TD Width=25 Align=Center BGcolor=" + FirstBG + "><DIV Class='" + ResultClass + "'> " + HomeScore + " </DIV></TD>" )
            document.write( "    <TD Width=70 Align=Center BGcolor=" + FirstBG + "><DIV Class='" + ResultClass + "'> " + Result + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + ResultClass + "'> " + AwayTeam + " </DIV></TD>" )
            document.write( "    <TD Width=25 Align=Center BGcolor=" + FirstBG + "><DIV Class='" + ResultClass + "'> " + AwayScore + " </DIV></TD>" )
            background = 1
          }
        else
          { if ( ShowLeague == 1 )
              { document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + ResultClass + "'> " + League + " </TD>" )
              }
            document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + ResultClass + "'> " + HomeTeam  + " </DIV></TD>" )
            document.write( "    <TD Width=25 Align=Center BGcolor=" + SecondBG + "><DIV Class='" + ResultClass + "'> " + HomeScore + " </DIV></TD>" )
            document.write( "    <TD Width=70 Align=Center BGcolor=" + SecondBG + "><DIV Class='" + ResultClass + "'> " + Result + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + ResultClass + "'> " + AwayTeam + " </DIV></TD>" )
            document.write( "    <TD Width=25 Align=Center BGcolor=" + SecondBG + "><DIV Class='" + ResultClass + "'> " + AwayScore + " </DIV></TD>" )
            background = 0
          }
        document.write( "  </TR>" )
        HomeScorers = ""
        AwayScorers = ""
      }

    function Scorer( HomeAway, Player, Goals )
      {
        if ( Goals > 1 )
          { Player = Player + " (" + Goals + ")"
          }
        if ( HomeAway == "H" )
          { if ( HomeScorers == "" )
              { HomeScorers = Player
              }
            else
              { HomeScorers = HomeScorers + "<BR>" + Player
              }
          }
        else
          { if ( AwayScorers == "" )
              { AwayScorers = Player
              }
            else
              { AwayScorers = AwayScorers + "<BR>" + Player
              }
          }
      }

    function Game( League, HomeTeam, AwayTeam, Ground, When )
      {
        document.write( "  <TR>" )
        if ( background == 0 )
          { if ( ShowLeague == 1 )
              { document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + GameClass + "'> " + League + " </DIV></TD>" )
              }
            document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + GameClass + "'> " + HomeTeam + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + GameClass + "'> " + AwayTeam + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + GameClass + "'> " + Ground + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + FirstBG + "><DIV Class='" + GameClass + "'> " + When + " </DIV></TD>" )
            background = 1
          }
        else
          { if ( ShowLeague == 1 )
              { document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + GameClass + "'> " + League + " </DIV></TD>" )
              }
            document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + GameClass + "'> " + HomeTeam + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + GameClass + "'> " + AwayTeam + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + GameClass + "'> " + Ground + " </DIV></TD>" )
            document.write( "    <TD Width=140 Align=Left BGcolor=" + SecondBG + "><DIV Class='" + GameClass + "'> " + When + " </DIV></TD>" )
            background = 0
          }
        document.write( "  </TR>" )
      }

    function Player( HomeAway, Shirt, Player )
      {
       document.write( "  <TR>" )
        if ( background == 0 )
          { document.write( "    <TD Width=50 Align=Center BGcolor=" + FirstBG + "><P Class='" + TeamClass + "'> " + "[" + Shirt + "]</TD>" )
            document.write( "    <TD Width=210 Align=Left BGcolor=" + FirstBG + "><P Class='" + TeamClass + "'> " + Player + " </TD>" )
            background = 1
          }
        else
          { document.write( "    <TD Width=50 Align=Center BGcolor=" + SecondBG + "><P Class='" + TeamClass + "'> " + "[" + Shirt + "]</TD>" )
            document.write( "    <TD Width=210 Align=Left BGcolor=" + SecondBG + "><P Class='" + TeamClass + "'> " + Player + " </TD>" )
            background = 0
          }
        document.write( "  </TR>" )
      }

    function Finish()
      {
        document.write( "</Table>" )
      }

