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

sb_data = new Array (
   "1/~/~286/~-6/~286/~166221/~Georgia Hall/~ENG/~N/~Ferndown Golf Club/~68/~73/~73/~72/~68 73 73 72/~/~",
   "2/~/~293/~+1/~293/~LAW135/~Bronte Law/~ENG/~N/~Bramhall Golf Club/~72/~73/~75/~73/~72 73 75 73/~/~",
   "3/~/~297/~+5/~297/~HAR139/~Emma Harris/~ENG/~N/~Peel Ladies Golf Club/~74/~72/~79/~72/~74 72 79 72/~/~",
   "4/~/~302/~+10/~302/~915010/~Ellie Goodall/~ENG/~N/~Selby Golf Club/~77/~74/~75/~76/~77 74 75 76/~/~",
   "5/~/~309/~+17/~309/~WIN114/~Olivia Winning/~ENG/~N/~Rotherham Golf Club/~77/~78/~79/~75/~77 78 79 75/~/~",
   "6/~/~310/~+18/~310/~HOR860/~Rebecca Horner/~ENG/~N/~Woodham Golf & Country Club/~78/~74/~80/~78/~78 74 80 78/~/~",
   "7/~/~311/~+19/~311/~077075/~Kyra Horlock/~ENG/~N/~Broadstone Golf Club/~76/~78/~80/~77/~76 78 80 77/~/~",
   "8/~/~313/~+21/~313/~COW187/~Olivia Cowan/~ENG/~N/~Ormskirk Golf Club/~81/~82/~76/~74/~81 82 76 74/~/~",
   "9/~/~314/~+22/~314/~913007/~Gabriella Cowley/~ENG/~N/~West Essex Golf Club/~84/~77/~76/~77/~84 77 76 77/~/~",
   "10/~/~316/~+24/~316/~RAT156/~Amber Ratcliffe/~ENG/~N/~Royal Cromer Golf Club/~79/~79/~76/~82/~79 79 76 82/~/~",
   "11/~/~317/~+25/~317/~MEE126/~Samantha Meese/~ENG/~N/~Enville Golf Club/~81/~77/~80/~79/~81 77 80 79/~/~",
   "12/~/~317/~+25/~317/~915028/~Rochelle Morris/~ENG/~N/~Crosland Heath Golf Club/~77/~80/~80/~80/~77 80 80 80/~/~",
   "13/~/~319/~+27/~319/~KEE141/~Sophie Keech/~ENG/~N/~Lyme Regis Golf Club/~78/~87/~77/~77/~78 87 77 77/~/~",
   "14/~/~319/~+27/~319/~FLY001/~Shannon Flynn/~ENG/~N/~Burhill Golf Club/~78/~79/~83/~79/~78 79 83 79/~/~",
   "15/~/~319/~+27/~319/~913015/~Aimee Ponte/~ENG/~N/~Royal Guernsey Golf Club/~75/~82/~79/~83/~75 82 79 83/~/~",
   "16/~/~320/~+28/~320/~DIM001/~Annabel Dimmock/~ENG/~N/~Beaconsfield Golf Club/~78/~80/~85/~77/~78 80 85 77/~/~",
   "17/~/~320/~+28/~320/~166233/~Inci Mehmet/~ENG/~N/~Wentworth Golf Club/~78/~80/~79/~83/~78 80 79 83/~/~",
   "18/~/~321/~+29/~321/~DOW124/~Jade Downes/~ENG/~N/~Boothferry Golf Club/~82/~75/~85/~79/~82 75 85 79/~/~",
   "19/~/~322/~+30/~322/~915014/~Nicola Haynes/~ENG/~N/~Gosforth Park Ladies' GC/~80/~77/~85/~80/~80 77 85 80/~/~",
   "20/~/~323/~+31/~323/~915030/~Dulcie Sverdloff/~ENG/~N/~Thorpe Hall Ladies' Golf Club/~86/~79/~79/~79/~86 79 79 79/~/~",
   "21/~/~324/~+32/~324/~913018/~Sana Tufail/~ENG/~N/~Woking Ladies' Golf Club/~77/~87/~81/~79/~77 87 81 79/~/~",
   "22/~/~325/~+33/~325/~MOR005/~Holly Morgan/~ENG/~N/~Lees Hall Golf Club/~76/~86/~80/~83/~76 86 80 83/~/~",
   "23/~/~325/~+33/~325/~GRE138/~Ashleigh Greenham/~ENG/~N/~West Essex Golf Club/~81/~76/~84/~84/~81 76 84 84/~/~",
   "24/~/~326/~+34/~326/~166231/~Paige Kemp/~ENG/~N/~Boyce Hill Golf & Country Club/~78/~80/~80/~88/~78 80 80 88/~/~",
   "25/~/~327/~+35/~327/~166228/~Courtney Milburn/~ENG/~N/~Heysham Golf Club/~82/~84/~82/~79/~82 84 82 79/~/~",
   "26/~/~329/~+37/~329/~TAY912/~Charlotte Taylor/~ENG/~N/~Northants County Golf Club/~84/~81/~86/~78/~84 81 86 78/~/~",
   "27/~/~329/~+37/~329/~915035/~Aimee Wilson/~ENG/~N/~Mickleover Golf Club/~81/~78/~89/~81/~81 78 89 81/~/~",
   "28/~/~329/~+37/~329/~913017/~Emily Royer/~ENG/~N/~Chart Hills Golf Club/~81/~80/~87/~81/~81 80 87 81/~/~",
   "29/~/~329/~+37/~329/~915024/~Charlotte Leathem/~ENG/~N/~Styal Golf Club/~85/~77/~84/~83/~85 77 84 83/~/~",
   "30/~/~329/~+37/~329/~915002/~Hope Beland/~ENG/~N/~Royal Eastbourne Golf Club/~81/~78/~86/~84/~81 78 86 84/~/~",
   "31/~/~329/~+37/~329/~CAL128/~Nicola Callander/~ENG/~N/~Mill Green Golf Club/~76/~82/~87/~84/~76 82 87 84/~/~",
   "32/~/~331/~+39/~331/~913021/~Ellie Lawrence/~ENG/~N/~Stourbridge Golf Club/~82/~79/~86/~84/~82 79 86 84/~/~",
   "33/~/~334/~+42/~334/~166230/~Charlotte Hamilton/~ENG/~N/~Cleckheaton & District GC/~82/~83/~88/~81/~82 83 88 81/~/~",
   "34/~/~334/~+42/~334/~TAY995/~Amy Taylor/~ENG/~N/~Hinckley Golf Club/~76/~85/~87/~86/~76 85 87 86/~/~",
   "35/~/~334/~+42/~334/~AND990/~Grace Anderson/~ENG/~N/~Morpeth Golf Club/~86/~80/~80/~88/~86 80 80 88/~/~",
   "36/~/~337/~+45/~337/~913011/~Charlotte Lucas/~ENG/~N/~High Post Golf Club/~82/~84/~89/~82/~82 84 89 82/~/~",
   "37/~/~340/~+48/~340/~VAR147/~Bethany Varnham-Fisher/~ENG/~N/~Lingdale Golf Club/~82/~76/~92/~90/~82 76 92 90/~/~",
   "38/~/~344/~+52/~344/~166226/~Holly Standing/~ENG/~N/~Faversham Golf Club/~78/~86/~93/~87/~78 86 93 87/~/~",
   "EOD/~");
   --sb_data.length;
   sb_tourn.data_entries=sb_data.length;

function sb_get_data_object(index)
{
   var tm_eo = new Object;
   var tm_ta = sb_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);
}
   sb_tourn.incl_score=true;
   sb_tourn.incl_vspar=true;
   sb_tourn.incl_holes=false;
   sb_tourn.std_columns=4;
var sb_ticlinestyle="";
var sb_ticsubwin="";
var sb_cellspacing=false;

// Scoreboard Table Generation

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

function sb_call_sb_report()
{
  var selopt = document.getElementById("sb_options").selectedIndex;
  var option_data = sb_tourn.report_options[selopt].split(sb_tourn.array_delimiter);
  var cgiurl = option_data[1];
  sb_open_tic_window();
  sb_ticsubwin.location = cgiurl;
}

function sb_tour_website()
{
  sb_open_tic_window();
  sb_ticsubwin.location = sb_tourn.tour_website;
}

function sb_tour_tic()
{
  sb_open_tic_window();
  sb_ticsubwin.location = sb_tourn.tic_url;
}

function sb_full_scoreboard()
{
  sb_open_tic_window();
  sb_ticsubwin.location = sb_tourn.full_scoreboard_url;
}

function sb_get_sb_position_strokeplay(index)
{
  var p = sb_get_data_object(index);
  var nbsp = ((sb_cellspacing) ? "" : "&nbsp;");
  if (sb_tourn.group_ties)
  {
     var newpos = false;
     if (p.pos != sb_lastpos)
     {
        newpos = true;
        var tiecount = 0;
        var i=index;
        var p2 = p;
        while ((i<sb_tourn.data_entries) && (p2.pos == p.pos))
        {
           ++tiecount; ++i;
           if (i<sb_tourn.data_entries)
              var p2 = sb_get_data_object(i);
        }
        sb_lastpos = p.pos;
     }
  }
  else
  {
     var newpos = true;
     var tiecount = 1;
  }
  if (p.pos == "CUT")
     return("");
  if (newpos)
     sb_ticlinestyle = ((sb_ticlinestyle=="a")?"b":"a");
  var nwrap = ((sb_tourn.name_wrap) ? "" : " nowrap");
  var sline = "";
  sline += "<TR style='" + sb_tourn["css_line" + sb_ticlinestyle] + "'>";
  if (newpos)
  {
     sline += "<TD style='" + sb_tourn["css_line"] + "text-align:left;' rowspan=" + tiecount + " nowrap>" + p.pos + p.tied + nbsp + "</TD>";
     if (sb_tourn.scores_type == "P")
         p.score += "<SMALL>pts</SMALL>";
     if (sb_tourn.incl_score)
         sline += "<TD style='" + sb_tourn["css_line"] + "text-align:center;' rowspan=" + tiecount + " nowrap>" + ((p.score == "") ? "&nbsp;" : p.score) + "</TD>";
     if (sb_tourn.scores_type == "P")
         p.vspar = "";
     if (sb_tourn.incl_vspar)
         sline += "<TD style='" + sb_tourn["css_line"] + "text-align:center;' rowspan=" + tiecount + " nowrap>" + ((p.vspar == "") ? "&nbsp;" : p.vspar) + "</TD>";
  }
  sline += "<TD style='" + sb_tourn["css_line"] + "text-align:left;" + ((sb_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 (sb_tourn.incl_holes)
     sline += "<TD style='" + sb_tourn["css_line"] + "text-align:center;' nowrap>" + p.holes + "</TD>";
  sline += "</TR>";
  return(sline);
}

function sb_get_sb_position_matchplay(index)
{
  var p = sb_get_data_object(index);
  var noscores = ((p.holes == "0") && (p.status_1 != "W") && (p.status_2 != "W"));
  sb_ticlinestyle = ((sb_ticlinestyle=="a")?"b":"a");
  var nwrap = ((sb_tourn.name_wrap) ? "" : " nowrap");
  var sline = "";
  sline += "<TR style='" + sb_tourn["css_line" + sb_ticlinestyle] + "'>";
  sline += "<TD style='" + sb_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='" + sb_tourn["css_line"] + "text-align:center;" + fweight + "'" + ((noscores) ? " rowspan=2" : "") + " nowrap>" + p.full_score_1 + "</TD>";
  sline += "<TD style='" + sb_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='" + sb_tourn["css_line"] + "text-align:center;' rowspan=2 nowrap>&nbsp;" + p.holes + "&nbsp;</TD>";
  sline += "</TR>";
  sline += "<TR style='" + sb_tourn["css_line" + sb_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='" + sb_tourn["css_line"] + "text-align:center;" + fweight + "' nowrap>" + p.full_score_2 + "</TD>";
  sline += "<TD style='" + sb_tourn["css_line"] + "text-align:left;"   + fweight + "'" + nwrap + ">" + p.name_2   + "</TD>";
  sline += "</TR>";
  return(sline);
}

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

function sb_get_scoreboard()
{
  sb_ticlinestyle = "";
  sb_lastpos = "";
  sb_cellspacing=sb_tourn.group_ties;
  var cspan = sb_tourn.std_columns;
  var dhtml = "";
  if (sb_tourn.autosize)
     dhtml += "<DIV style='width:100px;'>" +
              "<TABLE border=0 cellspacing=" + ((sb_cellspacing) ? "1" : "0") + " cellpadding=0 style='" + sb_tourn["css_table"] + "'>" +
              "<TR><TD colspan=" + cspan + ">"
  else
     dhtml += "<DIV style='" + sb_tourn["css_table"] + "margin:auto;text-align:center;'>";
  dhtml += "<TABLE border=0 cellspacing=0 cellpadding=0 style='margin:auto;" + ((sb_tourn.autosize) ? "width:100%;" : "") + "'>" +
           "<TR>";
  if (sb_tourn.logo_pos == "T")
     dhtml += sb_add_logo() + "</TR><TR>"
  else
  if (sb_tourn.logo_pos == "L")
     dhtml += sb_add_logo();
  dhtml += "<TD style='text-align:center;margin:auto;'>";
  dhtml += "<DIV style='" + sb_tourn["css_title"] + "text-align:center;font-weight:bold;padding:1px;'>" +
           sb_tourn.short_name + "</DIV>";
  var cds = sb_tourn.course_dates.split("<BR>");
  var cdj = ((cds.length == 2) ? "<NOBR>" + cds[0] + "</NOBR> <NOBR>" + cds[1] + "</NOBR>" : cds[0]);
  if (sb_tourn.autosize)
     cdj = "<NOBR>" + sb_tourn.course_dates + "</NOBR>";
  dhtml += "<DIV style='" + sb_tourn["css_head"] + "text-align:center;padding:1px;'>" + cdj + "</DIV>";
  dhtml += "</TD>";
  if (sb_tourn.logo_pos == "R")
     dhtml += sb_add_logo();
  dhtml += "</TR></TABLE>";
  dhtml += "<DIV style='" + sb_tourn["css_main"] + "text-align:center;font-weight:bold;padding:1px;clear:both;'>" +
           sb_tourn.round_head + "</DIV>";
  dhtml += "<DIV style='" + sb_tourn["css_main"] + ((sb_tourn.scroll_height != 0) ? "height:" + sb_tourn.scroll_height + "px;overflow:auto;" : "") + "'>";
  if (sb_tourn.autosize)
      dhtml += "</DIV></TD></TR>"
  else
      dhtml += "<TABLE border=0 cellspacing=" + ((sb_cellspacing) ? "1" : "0") + " cellpadding=1 style='margin:auto;text-align:center;'>";
  if (sb_tourn.data_entries != 0)
  {
      for (var i=0; i<sb_tourn.data_entries; i++)
      {
         if (sb_tourn.scores_type == "M")
             dhtml += sb_get_sb_position_matchplay(i)
         else
             dhtml += sb_get_sb_position_strokeplay(i);
      }
  }
  if (sb_tourn.licence_error)
     dhtml += "<TR><TD style='" + sb_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 (sb_tourn.data_entries == 0)
     dhtml += "<TR><TD style='" + sb_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 (sb_tourn.autosize)
      dhtml += "<TR><TD colspan=" + cspan + ">"
  else
      dhtml += "</TABLE></DIV>";
  dhtml += "<DIV style='" + sb_tourn["css_main"] + "text-align:center;font-weight:normal;padding:2px;'>";
  if (typeof sb_tourn.report_options != "undefined")
  {
     dhtml += "<DIV style='text-align:center;'><NOBR>" +
              "<SELECT id=sb_options style='" + sb_tourn["css_select"] + "'>";
     for (var i=0; i<sb_tourn.report_options.length; i++)
     {
         var option_data = sb_tourn.report_options[i].split(sb_tourn.array_delimiter);
         dhtml += "<OPTION" + ((i == sb_tourn.report_options_default) ? " selected" : "") + ">";
         dhtml += option_data[0] + "</OPTION>";
     }
     dhtml += "</SELECT>";
     dhtml += "&nbsp;&nbsp;" +
              "<BUTTON style='" + sb_tourn["css_select"] + "' onclick='sb_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:sb_tour_tic();' " +
              "style='" + sb_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 (sb_tourn.full_scoreboard_url != "")
         dhtml += "<DIV><A href='javascript:sb_full_scoreboard();' " +
                  "style='" + sb_tourn["css_main"] + "text-decoration:none;padding:1px;' " +
                  "title='" + ((sb_tourn.live_scoring == "Y") ? "Open the live scoring monitor" : "View the full detailed scoreboard") + "'>" +
                  ((sb_tourn.live_scoring == "Y") ? "Live&nbsp;Scoring" : "Full&nbsp;Scoreboard") + "&#187;</A></DIV>";
     if (sb_tourn.logo_pos != "")
         dhtml += "<DIV><A href='javascript:sb_tour_tic();' " +
                  "style='" + sb_tourn["css_main"] + "text-decoration:none;padding:1px;' " +
                  "title='Visit the " + sb_tourn.tour_name + " Information Centre for a full service of scores and statistics'>" +
                  "Information&nbsp;Centre&#187;</A></DIV>";
  }
  dhtml += "</DIV>";
  if (sb_tourn.autosize)
     dhtml += "</TD></TR></TABLE>"
  dhtml += "</DIV>";
  return(dhtml);
}
