sa_tourn = new Object;
   sa_tourn.build_count=138557;
   sa_tourn.scores_avail="Y";
   sa_tourn.full_name="English Girls Close Amateur Championship 2010";
   sa_tourn.short_name="English Girls Close Amateur";
   sa_tourn.code="EG10";
   sa_tourn.scores_type="G";
   sa_tourn.course_dates="Seacroft Golf Club<BR>27th - 29th July 2010";
   sa_tourn.round_head="Final Scoreboard";
   sa_tourn.rounds_played=4;
   sa_tourn.full_scoreboard_url="http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~params=PG0SSC999~season=2010";
   sa_tourn.tic_url="http://info.englishladiesgolf.org/tic/tmtic.cgi?season=2010";
   sa_tourn.tour_name="ENGLISH WOMEN'S GOLF ASSOCIATION";
   sa_tourn.tour_website="http://www.englishwomensgolf.org";
   sa_tourn.tour_logo="";
   sa_tourn.logo_pos="";
   sa_tourn.event_sponsor_name="Firstpointusa";
   sa_tourn.event_sponsor_website="www.firstpointusa.com";
   sa_tourn.sponsor_indicator_logo="";
   sa_tourn.represents_heading="Represents";
   sa_tourn.software_provider_name="Tour Management Software from OCS Sport";
   sa_tourn.software_provider_website="http://www.ocs-sport.com";
   sa_tourn.webmaster_email="elgaadmin@ocs-sport.com";
   sa_tourn.live_scoring="N";
   sa_tourn.group_ties=false;
   sa_tourn.scroll_height=132;
   sa_tourn.max_width=true;
   sa_tourn.autosize=false;
   sa_tourn.name_wrap=false;
   sa_tourn.matchplay_format="N";
   sa_tourn.matchplay_team_format="N";
   sa_tourn.std_columns=1;
   sa_tourn.array_delimiter="/~";
   sa_tourn.cgi_base="http://info.englishladiesgolf.org/tic/";
   sa_tourn.data_entries=0;
   sa_tourn.error_found=false;
   sa_tourn.referring_page="";
   sa_tourn.referring_match="http://www.englishladiesgolf.org";
   sa_tourn.licencee_ref="ELG0040307";
   sa_tourn.licencee="English Ladies Golf Association";
   sa_tourn.licence_error=false;
   sa_tourn.report_options=new Array;
       sa_tourn.report_options[0]="Tournament Entries/~http://info.englishladiesgolf.org/tic/tmentry.cgi?tourn=EG10~season=2010~alphaorder~exemptorder~/~";
       sa_tourn.report_options[1]="Round 1 Draw/~http://info.englishladiesgolf.org/tic/tmdraw.cgi?tourn=EG10~season=2010~round=1~/~";
       sa_tourn.report_options[2]="Round 1 Scores Only/~http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~season=2010~params=P*1SRC~/~";
       sa_tourn.report_options[3]="Round 2 Draw/~http://info.englishladiesgolf.org/tic/tmdraw.cgi?tourn=EG10~season=2010~round=2~/~";
       sa_tourn.report_options[4]="Round 2 Scores Only/~http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~season=2010~params=P*2SRC~/~";
       sa_tourn.report_options[5]="Round 2 Scoreboard/~http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~season=2010~params=P*2ESC~/~";
       sa_tourn.report_options[6]="Round 3 Draw/~http://info.englishladiesgolf.org/tic/tmdraw.cgi?tourn=EG10~season=2010~round=3~/~";
       sa_tourn.report_options[7]="Round 3 Scores Only/~http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~season=2010~params=P*3SRC~/~";
       sa_tourn.report_options[8]="Round 3 Scoreboard/~http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~season=2010~params=P*3ESC~/~";
       sa_tourn.report_options[9]="Round 4 Draw/~http://info.englishladiesgolf.org/tic/tmdraw.cgi?tourn=EG10~season=2010~round=4~/~";
       sa_tourn.report_options[10]="Round 4 Scores Only/~http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~season=2010~params=P*4SRC~/~";
       sa_tourn.report_options[11]="Round 4 Scoreboard/~http://info.englishladiesgolf.org/tic/tmscores.cgi?tourn=EG10~season=2010~params=P*4ESC~/~";
       sa_tourn.report_options[12]="Final Result (Gross)/~http://info.englishladiesgolf.org/tic/tmresult.cgi?tourn=EG10~season=2010~result=GF~/~";
       sa_tourn.report_options[13]="Scoring Statistics/~http://info.englishladiesgolf.org/tic/tmstats.cgi?tourn=EG10~season=2010~/~";
       sa_tourn.report_options[14]="Course Statistics/~http://info.englishladiesgolf.org/tic/tmcrsts.cgi?tourn=EG10~season=2010~/~";
   sa_tourn.report_options_default=12;
   sa_tourn.css_table="font-family:verdana,tahoma,arial,sans-serif;color:black;background-color:#F8AC68;";
   sa_tourn.css_head="font-family:verdana,tahoma,arial,sans-serif;font-size:9pt;color:blue;";
   sa_tourn.css_main="font-family:verdana,tahoma,arial,sans-serif;font-size:9pt;color:black;background-color:beige;";
   sa_tourn.css_title="font-family:verdana,tahoma,arial,sans-serif;font-size:11pt;color:darkblue;";
   sa_tourn.css_line="font-family:verdana,tahoma,arial,sans-serif;font-size:7.5pt;padding-left:1px;padding-right:1px;";
   sa_tourn.css_linea="font-family:verdana,tahoma,arial,sans-serif;color:black;background-color:#FBD4B1;";
   sa_tourn.css_lineb="font-family:verdana,tahoma,arial,sans-serif;color:black;background-color:#F8AC68;";
   sa_tourn.css_select="font-family:verdana,tahoma,arial,sans-serif;font-size:7.5pt;color:black;background-color:#FBD4B1;";

sa_data = new Array (
   "1/~/~285/~-7/~285/~MAL192/~Elizabeth Mallett/~ENG/~N/~Sutton Coldfield Ladies/~74/~72/~70/~69/~74 72 70 69/~/~",
   "2/~/~286/~-6/~286/~TAY800/~Lauren Taylor/~ENG/~N/~Woburn Golf & Country Club/~67/~73/~73/~73/~67 73 73 73/~/~",
   "3/~/~288/~-4/~288/~PET002/~Alexandra Peters/~ENG/~N/~Notts Ladies Golf Club/~76/~71/~71/~70/~76 71 71 70/~/~",
   "4/~/~288/~-4/~288/~BAE001/~Heidi Baek/~ENG/~N/~Felixstowe Ferry Golf Club/~69/~71/~74/~74/~69 71 74 74/~/~",
   "5/~/~295/~+3/~295/~TAY106/~Emily Taylor/~ENG/~N/~Royal Lytham & St. Annes/~75/~73/~73/~74/~75 73 73 74/~/~",
   "6/~/~296/~+4/~296/~TOW001/~Brogan Townend/~ENG/~N/~Pleasington Golf Club/~81/~71/~73/~71/~81 71 73 71/~/~",
   "7/~/~301/~+9/~301/~THO188/~Charlotte Thompson/~ENG/~N/~Channels Golf Club/~75/~73/~78/~75/~75 73 78 75/~/~",
   "8/~/~302/~+10/~302/~THO183/~Charlotte Thomas/~ENG/~N/~Singapore Island Country Club/~78/~75/~78/~71/~78 75 78 71/~/~",
   "9/~/~305/~+13/~305/~CHI176/~Michaela Chivers/~ENG/~N/~Farrington Golf Club/~78/~78/~77/~72/~78 78 77 72/~/~",
   "10/~/~305/~+13/~305/~TUR129/~Hannah Turland/~ENG/~N/~Tidworth Garrison Golf Club/~76/~77/~76/~76/~76 77 76 76/~/~",
   "11/~/~305/~+13/~305/~GAR741/~Megan Garland/~ENG/~N/~The Oaks Golf Club/~77/~77/~73/~78/~77 77 73 78/~/~",
   "12/~/~306/~+14/~306/~MUN146/~Georgina Mundy/~ENG/~N/~Dunwood Manor Golf Club/~72/~75/~81/~78/~72 75 81 78/~/~",
   "13/~/~307/~+15/~307/~HEE001/~Rebecca Heeles/~ENG/~N/~Royal Norwich Golf Club/~77/~78/~79/~73/~77 78 79 73/~/~",
   "14/~/~308/~+16/~308/~DAV138/~Bronwyn Davies/~ENG/~N/~Trentham Golf Club/~82/~77/~73/~76/~82 77 73 76/~/~",
   "15/~/~309/~+17/~309/~MAC142/~Meghan MacLaren/~ENG/~N/~Wellingborough Golf Club/~73/~74/~78/~84/~73 74 78 84/~/~",
   "16/~/~310/~+18/~310/~GAR740/~Bethany Garton/~ENG/~N/~Royal Lytham & St. Annes/~79/~77/~81/~73/~79 77 81 73/~/~",
   "17/~/~310/~+18/~310/~EVA159/~Lucy Evans/~ENG/~N/~Wrekin Golf Club/~75/~80/~81/~74/~75 80 81 74/~/~",
   "18/~/~310/~+18/~310/~SMI109/~Sarah Smith/~ENG/~N/~Links Golf Club/~81/~75/~74/~80/~81 75 74 80/~/~",
   "19/~/~311/~+19/~311/~GOD109/~Sophie Godley/~ENG/~N/~Lindrick Golf Club/~80/~79/~79/~73/~80 79 79 73/~/~",
   "20/~/~311/~+19/~311/~SMA184/~Shelby Smart/~ENG/~N/~Knowle Golf Club/~79/~77/~80/~75/~79 77 80 75/~/~",
   "21/~/~312/~+20/~312/~WAL831/~Lucie Walker/~ENG/~N/~Ormskirk Golf Club/~79/~76/~80/~77/~79 76 80 77/~/~",
   "22/~/~312/~+20/~312/~LAK859/~Abigail Laker/~ENG/~N/~Burford Golf Club/~77/~76/~81/~78/~77 76 81 78/~/~",
   "23/~/~314/~+22/~314/~BRA670/~Jessica Bradley/~ENG/~N/~Tiverton Golf Club/~79/~79/~77/~79/~79 79 77 79/~/~",
   "24/~/~315/~+23/~315/~KEN180/~Daisy-May Kenny/~ENG/~N/~Cuddington Golf Club/~76/~84/~77/~78/~76 84 77 78/~/~",
   "25/~/~315/~+23/~315/~MYL144/~Sophie Myles/~ENG/~N/~Ilkley Golf Club/~82/~77/~77/~79/~82 77 77 79/~/~",
   "26/~/~315/~+23/~315/~NEW164/~Emma Newlove/~ENG/~N/~Notts Ladies Golf Club/~76/~83/~77/~79/~76 83 77 79/~/~",
   "27/~/~316/~+24/~316/~MCM002/~Melissa McMahon/~ENG/~N/~Yeovil Golf Club/~78/~82/~81/~75/~78 82 81 75/~/~",
   "28/~/~316/~+24/~316/~915008/~Nicole Hamilton/~ENG/~N/~Dartford Golf Club/~79/~78/~80/~79/~79 78 80 79/~/~",
   "29/~/~318/~+26/~318/~761815/~Hannah McLoughlin/~ENG/~N/~Sutton Coldfield Ladies GC/~82/~77/~80/~79/~82 77 80 79/~/~",
   "30/~/~319/~+27/~319/~GRE118/~Jessica Gregory/~ENG/~N/~Sittingbourne & Milton Regis G/~77/~84/~79/~79/~77 84 79 79/~/~",
   "31/~/~320/~+28/~320/~RIC173/~Elizabeth Richards/~ENG/~N/~Kidderminster Golf Club/~78/~81/~84/~77/~78 81 84 77/~/~",
   "32/~/~320/~+28/~320/~ESM189/~Blaize Esmond/~ENG/~N/~Aldeburgh Golf Club/~78/~82/~81/~79/~78 82 81 79/~/~",
   "33/~/~321/~+29/~321/~DAW803/~Sophie Daws/~ENG/~N/~Littlestone Golf Club/~80/~76/~86/~79/~80 76 86 79/~/~",
   "34/~/~321/~+29/~321/~BUR101/~Brittany Burton/~ENG/~N/~Sittingbourne & Milton Regis G/~82/~77/~81/~81/~82 77 81 81/~/~",
   "35/~/~323/~+31/~323/~CAR982/~Evie Carter/~ENG/~N/~Breedon Priory Golf Club/~76/~81/~82/~84/~76 81 82 84/~/~",
   "36/~/~324/~+32/~324/~HAL119/~Steph Hall/~ENG/~N/~Lindrick Golf Club/~81/~79/~80/~84/~81 79 80 84/~/~",
   "37/~/~324/~+32/~324/~HIN001/~Charlotte Hindmoor/~ENG/~N/~Cleveland Golf Club/~77/~80/~78/~89/~77 80 78 89/~/~",
   "38/~/~325/~+33/~325/~CAR844/~Emma Carberry/~ENG/~N/~Highwoods (Bexhill) Golf Club/~82/~76/~84/~83/~82 76 84 83/~/~",
   "39/~/~326/~+34/~326/~002083/~Florence King/~ENG/~N/~Forest Hill Golf Club/~79/~81/~87/~79/~79 81 87 79/~/~",
   "40/~/~329/~+37/~329/~BAL192/~Leanne Ball/~ENG/~N/~Aston Wood Golf Club/~83/~78/~83/~85/~83 78 83 85/~/~",
   "EOD/~");
   --sa_data.length;
   sa_tourn.data_entries=sa_data.length;

function sa_get_data_object(index)
{
   var tm_eo = new Object;
   var tm_ta = sa_data[index].split('/~');
   if (tm_ta.length > 0)
      tm_eo.pos=tm_ta[0];
   if (tm_ta.length > 1)
      tm_eo.tied=tm_ta[1];
   if (tm_ta.length > 2)
      tm_eo.score=tm_ta[2];
   if (tm_ta.length > 3)
      tm_eo.vspar=tm_ta[3];
   if (tm_ta.length > 4)
      tm_eo.d_score=tm_ta[4];
   if (tm_ta.length > 5)
      tm_eo.member_no=tm_ta[5];
   if (tm_ta.length > 6)
      tm_eo.name=tm_ta[6];
   if (tm_ta.length > 7)
      tm_eo.nationality=tm_ta[7];
   if (tm_ta.length > 8)
      tm_eo.sponsored=tm_ta[8];
   if (tm_ta.length > 9)
      tm_eo.represents=tm_ta[9];
   if (tm_ta.length > 10)
      tm_eo.score_R1=tm_ta[10];
   if (tm_ta.length > 11)
      tm_eo.score_R2=tm_ta[11];
   if (tm_ta.length > 12)
      tm_eo.score_R3=tm_ta[12];
   if (tm_ta.length > 13)
      tm_eo.score_R4=tm_ta[13];
   if (tm_ta.length > 14)
      tm_eo.rounds=tm_ta[14];
   if (tm_ta.length > 15)
      tm_eo.holes=tm_ta[15];
   return(tm_eo);
}
   sa_tourn.incl_score=true;
   sa_tourn.incl_vspar=true;
   sa_tourn.incl_holes=false;
   sa_tourn.std_columns=4;
var sa_ticlinestyle="";
var sa_ticsubwin="";
var sa_cellspacing=false;

// Scoreboard Table Generation

function sa_open_tic_window()
{
  if ((typeof sa_ticsubwin != "object") || (sa_ticsubwin.closed))
      sa_ticsubwin = window.open("", "TICLINKWIN",
                 "location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=400,", true)
  else
      sa_ticsubwin.focus();
}

function sa_call_sb_report()
{
  var selopt = document.getElementById("sa_options").selectedIndex;
  var option_data = sa_tourn.report_options[selopt].split(sa_tourn.array_delimiter);
  var cgiurl = option_data[1];
  sa_open_tic_window();
  sa_ticsubwin.location = cgiurl;
}

function sa_tour_website()
{
  sa_open_tic_window();
  sa_ticsubwin.location = sa_tourn.tour_website;
}

function sa_tour_tic()
{
  sa_open_tic_window();
  sa_ticsubwin.location = sa_tourn.tic_url;
}

function sa_full_scoreboard()
{
  sa_open_tic_window();
  sa_ticsubwin.location = sa_tourn.full_scoreboard_url;
}

function sa_get_sb_position_strokeplay(index)
{
  var p = sa_get_data_object(index);
  var nbsp = ((sa_cellspacing) ? "" : "&nbsp;");
  if (sa_tourn.group_ties)
  {
     var newpos = false;
     if (p.pos != sa_lastpos)
     {
        newpos = true;
        var tiecount = 0;
        var i=index;
        var p2 = p;
        while ((i<sa_tourn.data_entries) && (p2.pos == p.pos))
        {
           ++tiecount; ++i;
           if (i<sa_tourn.data_entries)
              var p2 = sa_get_data_object(i);
        }
        sa_lastpos = p.pos;
     }
  }
  else
  {
     var newpos = true;
     var tiecount = 1;
  }
  if (p.pos == "CUT")
     return("");
  if (newpos)
     sa_ticlinestyle = ((sa_ticlinestyle=="a")?"b":"a");
  var nwrap = ((sa_tourn.name_wrap) ? "" : " nowrap");
  var sline = "";
  sline += "<TR style='" + sa_tourn["css_line" + sa_ticlinestyle] + "'>";
  if (newpos)
  {
     sline += "<TD style='" + sa_tourn["css_line"] + "text-align:left;' rowspan=" + tiecount + " nowrap>" + p.pos + p.tied + nbsp + "</TD>";
     if (sa_tourn.scores_type == "P")
         p.score += "<SMALL>pts</SMALL>";
     if (sa_tourn.incl_score)
         sline += "<TD style='" + sa_tourn["css_line"] + "text-align:center;' rowspan=" + tiecount + " nowrap>" + ((p.score == "") ? "&nbsp;" : p.score) + "</TD>";
     if (sa_tourn.scores_type == "P")
         p.vspar = "";
     if (sa_tourn.incl_vspar)
         sline += "<TD style='" + sa_tourn["css_line"] + "text-align:center;' rowspan=" + tiecount + " nowrap>" + ((p.vspar == "") ? "&nbsp;" : p.vspar) + "</TD>";
  }
  sline += "<TD style='" + sa_tourn["css_line"] + "text-align:left;" + ((sa_tourn.max_width) ? "width:90%;" : "") + "'" + nwrap + ">" + nbsp + p.name + "</TD>";
  if ((p.holes  == "") || (p.holes == "0"))  p.holes  = "&nbsp;";
  if  (p.holes  == "18")                     p.holes  = "F";
  if (sa_tourn.incl_holes)
     sline += "<TD style='" + sa_tourn["css_line"] + "text-align:center;' nowrap>" + p.holes + "</TD>";
  sline += "</TR>";
  return(sline);
}

function sa_get_sb_position_matchplay(index)
{
  var p = sa_get_data_object(index);
  var noscores = ((p.holes == "0") && (p.status_1 != "W") && (p.status_2 != "W"));
  sa_ticlinestyle = ((sa_ticlinestyle=="a")?"b":"a");
  var nwrap = ((sa_tourn.name_wrap) ? "" : " nowrap");
  var sline = "";
  sline += "<TR style='" + sa_tourn["css_line" + sa_ticlinestyle] + "'>";
  sline += "<TD style='" + sa_tourn["css_line"] + "text-align:center;' rowspan=2 nowrap>&nbsp;" + p.match + "&nbsp;</TD>";
  if (p.status_1 == "L")  p.full_score_1 = "&nbsp;";
  if (p.status_1 == "D")  p.full_score_1 = "&nbsp;";
  if (noscores)
      p.full_score_1 = "[" + p.time + "]";
  if (p.status_1 == "H")
      noscores = true;
  var fweight = ((p.status_1 == "W") ? "font-weight:bold;" : "font-weight:normal;");
  sline += "<TD style='" + sa_tourn["css_line"] + "text-align:center;" + fweight + "'" + ((noscores) ? " rowspan=2" : "") + " nowrap>" + p.full_score_1 + "</TD>";
  sline += "<TD style='" + sa_tourn["css_line"] + "text-align:left;"   + fweight + "'" + nwrap + ">" + p.name_1   + "</TD>";
  if ((p.status_1 == "W") || (p.status_2 == "W"))
      p.holes = "F";
  if (p.holes == "0")
      p.holes = "";
  sline += "<TD style='" + sa_tourn["css_line"] + "text-align:center;' rowspan=2 nowrap>&nbsp;" + p.holes + "&nbsp;</TD>";
  sline += "</TR>";
  sline += "<TR style='" + sa_tourn["css_line" + sa_ticlinestyle] + "'>";
  if (p.status_2 == "L")  p.full_score_2 = "&nbsp;";
  if (p.status_2 == "D")  p.full_score_2 = "&nbsp;";
  var fweight = ((p.status_2 == "W") ? "font-weight:bold;" : "font-weight:normal;");
  if (!noscores)
      sline += "<TD style='" + sa_tourn["css_line"] + "text-align:center;" + fweight + "' nowrap>" + p.full_score_2 + "</TD>";
  sline += "<TD style='" + sa_tourn["css_line"] + "text-align:left;"   + fweight + "'" + nwrap + ">" + p.name_2   + "</TD>";
  sline += "</TR>";
  return(sline);
}

function sa_add_logo()
{
  var dhtml = "";
  if (sa_tourn.tour_logo == "")
       return(dhtml);
  dhtml += "<TD style='text-align:center;margin:auto;vertical-align:middle;'>" +
           "<IMG src='" + sa_tourn.tour_logo + "' style='cursor:pointer;text-align:center;' border=0 " +
           "title='" + sa_tourn.tour_name + " web site' " +
           "onclick='sa_tour_website();'>" +
           "</TD>";
  return(dhtml);
}

function sa_get_scoreboard()
{
  sa_ticlinestyle = "";
  sa_lastpos = "";
  sa_cellspacing=sa_tourn.group_ties;
  var cspan = sa_tourn.std_columns;
  var dhtml = "";
  if (sa_tourn.autosize)
     dhtml += "<DIV style='width:100px;'>" +
              "<TABLE border=0 cellspacing=" + ((sa_cellspacing) ? "1" : "0") + " cellpadding=0 style='" + sa_tourn["css_table"] + "'>" +
              "<TR><TD colspan=" + cspan + ">"
  else
     dhtml += "<DIV style='" + sa_tourn["css_table"] + "margin:auto;text-align:center;'>";
  dhtml += "<TABLE border=0 cellspacing=0 cellpadding=0 style='margin:auto;" + ((sa_tourn.autosize) ? "width:100%;" : "") + "'>" +
           "<TR>";
  if (sa_tourn.logo_pos == "T")
     dhtml += sa_add_logo() + "</TR><TR>"
  else
  if (sa_tourn.logo_pos == "L")
     dhtml += sa_add_logo();
  dhtml += "<TD style='text-align:center;margin:auto;'>";
  dhtml += "<DIV style='" + sa_tourn["css_title"] + "text-align:center;font-weight:bold;padding:1px;'>" +
           sa_tourn.short_name + "</DIV>";
  var cds = sa_tourn.course_dates.split("<BR>");
  var cdj = ((cds.length == 2) ? "<NOBR>" + cds[0] + "</NOBR> <NOBR>" + cds[1] + "</NOBR>" : cds[0]);
  if (sa_tourn.autosize)
     cdj = "<NOBR>" + sa_tourn.course_dates + "</NOBR>";
  dhtml += "<DIV style='" + sa_tourn["css_head"] + "text-align:center;padding:1px;'>" + cdj + "</DIV>";
  dhtml += "</TD>";
  if (sa_tourn.logo_pos == "R")
     dhtml += sa_add_logo();
  dhtml += "</TR></TABLE>";
  dhtml += "<DIV style='" + sa_tourn["css_main"] + "text-align:center;font-weight:bold;padding:1px;clear:both;'>" +
           sa_tourn.round_head + "</DIV>";
  dhtml += "<DIV style='" + sa_tourn["css_main"] + ((sa_tourn.scroll_height != 0) ? "height:" + sa_tourn.scroll_height + "px;overflow:auto;" : "") + "'>";
  if (sa_tourn.autosize)
      dhtml += "</DIV></TD></TR>"
  else
      dhtml += "<TABLE border=0 cellspacing=" + ((sa_cellspacing) ? "1" : "0") + " cellpadding=1 style='margin:auto;text-align:center;'>";
  if (sa_tourn.data_entries != 0)
  {
      for (var i=0; i<sa_tourn.data_entries; i++)
      {
         if (sa_tourn.scores_type == "M")
             dhtml += sa_get_sb_position_matchplay(i)
         else
             dhtml += sa_get_sb_position_strokeplay(i);
      }
  }
  if (sa_tourn.licence_error)
     dhtml += "<TR><TD style='" + sa_tourn["css_head"] + "text-align:center;' colspan=" + cspan + " nowrap>" +
              "<DIV style='font-size:120%;font-weight:bold;margin:5px;padding-top:20px;padding-bottom:20px;'>" +
              "UNLICENSED<BR>SERVICE" +
              "</DIV></TD></TR>"
  else
  if (sa_tourn.data_entries == 0)
     dhtml += "<TR><TD style='" + sa_tourn["css_head"] + "text-align:center;' colspan=" + cspan + " nowrap>" +
              "<DIV style='margin:5px;padding-top:20px;padding-bottom:20px;'>" +
              "No Scoreboard<BR>Currently<BR>Available" +
              "</DIV></TD></TR>";
  if (sa_tourn.autosize)
      dhtml += "<TR><TD colspan=" + cspan + ">"
  else
      dhtml += "</TABLE></DIV>";
  dhtml += "<DIV style='" + sa_tourn["css_main"] + "text-align:center;font-weight:normal;padding:2px;'>";
  if (typeof sa_tourn.report_options != "undefined")
  {
     dhtml += "<DIV style='text-align:center;'><NOBR>" +
              "<SELECT id=sa_options style='" + sa_tourn["css_select"] + "'>";
     for (var i=0; i<sa_tourn.report_options.length; i++)
     {
         var option_data = sa_tourn.report_options[i].split(sa_tourn.array_delimiter);
         dhtml += "<OPTION" + ((i == sa_tourn.report_options_default) ? " selected" : "") + ">";
         dhtml += option_data[0] + "</OPTION>";
     }
     dhtml += "</SELECT>";
     dhtml += "&nbsp;&nbsp;" +
              "<BUTTON style='" + sa_tourn["css_select"] + "' onclick='sa_call_sb_report();' " +
              "title='Open selected report in a new window'>Go&#187;</BUTTON>";
     dhtml += "</NOBR></DIV>";
     dhtml += "<DIV style='font-size:80%; padding:2px; text-align:center;'>" +
              "<A href='javascript:sa_tour_tic();' " +
              "style='" + sa_tourn["css_main"] + "text-decoration:none;padding:1px;' " +
              "title='The information centre provides a full service of tournament scores " +
              "and statistics, orders of merit and player records'>Information&nbsp;Centre&#187;</A>" +
              "</DIV>";
  }
  else
  {
     if (sa_tourn.full_scoreboard_url != "")
         dhtml += "<DIV><A href='javascript:sa_full_scoreboard();' " +
                  "style='" + sa_tourn["css_main"] + "text-decoration:none;padding:1px;' " +
                  "title='" + ((sa_tourn.live_scoring == "Y") ? "Open the live scoring monitor" : "View the full detailed scoreboard") + "'>" +
                  ((sa_tourn.live_scoring == "Y") ? "Live&nbsp;Scoring" : "Full&nbsp;Scoreboard") + "&#187;</A></DIV>";
     if (sa_tourn.logo_pos != "")
         dhtml += "<DIV><A href='javascript:sa_tour_tic();' " +
                  "style='" + sa_tourn["css_main"] + "text-decoration:none;padding:1px;' " +
                  "title='Visit the " + sa_tourn.tour_name + " Information Centre for a full service of scores and statistics'>" +
                  "Information&nbsp;Centre&#187;</A></DIV>";
  }
  dhtml += "</DIV>";
  if (sa_tourn.autosize)
     dhtml += "</TD></TR></TABLE>"
  dhtml += "</DIV>";
  return(dhtml);
}
