window.status="Welcome to the AYSO Region 285 Top Gun Tournament Website";

// index page (home)
var sWelcomeToMiraMesa = "<b>Welcome to the Mira Mesa<br>Top Gun Tournament Website</b>"

// index page Intro
var sHomeIntro1 = "<img src='images/aysologo.gif' border='0' alt='0' style='float:right'>We hope you enjoy your visit to our site. We have tried to collect and organize all the information you may need to make your visit to the tournament and the community of Mira Mesa both enjoyable and memorable."
var sHomeIntro2 = "The 'Top Gun News and Announcements' display content is updated frequently, so make sure to check this page often for changes and updates prior to leaving for the tournament."
//sHomeIntro2 += "<br><br><font class='hilightyellow'><b>Referee’s if you would like to referee more games.  Please send us an e-mail</b></font><br><a href='mailto:topgunRefAdmin@ayso285.org?Subject=Referee more games' onfocus='this.blur()'><img src='images/mailicon.gif' width='14' height='11' border='0' alt='Send email to Top Gun Ref Admin'>&nbsp;Top Gun Referee Administrator</a>"
//sHomeIntro2 += "<br><br><font class='hilightyellow'><b>Referee’s if your are interested in helping with Semi and Finals on Monday<br> Please send us an e-mail</b></font><br><a href='mailto:topgunRefAdmin@ayso285.org?Subject=Monday Games' onfocus='this.blur()'><img src='images/mailicon.gif' width='14' height='11' border='0' alt='Send email to Top Gun Ref Admin'>&nbsp;Top Gun Referee Administrator</a>"

var sDivisionsFull = ""
//var sDivisionsFull = "<font class='colorred'><b>All divisions are full except:  </b></font><font class='hilightyellow'><b>BU19</b></font>"

var sTournamentDates=""
//sTournamentDates = "Please check the <b>Application status</b> page for number of standbys in divisions.  If your team is in one of these divisions and you have not received an e-mail of our current status please send an e-mail to &nbsp;<a href='mailto:TopGunReg@ayso285.org?Subject=TopGun Application Status' onfocus='this.blur()'><img src='images/mailicon.gif' width='14' height='11' border='0' alt='Send email to the Top Gun Registrar'>&nbsp;Top Gun Registrar</a>"
sTournamentDates = "2010 Top Gun tournament play dates:<b>&nbsp;&nbsp;Memorial Weekend May 29th,30th &amp; 31st.</b><br><br>"
//sTournamentDates += "<font class='hilightyellow'><b>TopGun 2010 Tournament Application are now being accepted</b></font><br>"
//sTournamentDates += "<font class='hilightyellow'><b>Registration period is now closed in all divisions.<br>Waiting Lists are being maintained in the event of last-minute drops so please contact us if you would like to join the Waiting List.<br><br>Accepted teams & the Waiting List will be notified by email and listed on the Application Status page on or before March 24th.</b></font>"

// Application page ap001.php
var sApply4Application=""
sApply4Application = "The 'Top Gun Tournament Application Package' contains all the information shown on this page: <b>(Application information and the Tournament Rules of Play)</b>."

var sApplicationStatus=""
//sApplicationStatus += "<font class='hilightyellow'><b>TopGun 2010 Tournament Application are now being accepted</b></font><br><br>"
sApplicationStatus += "<font class='hdr01'>A complete application contains:</font><br>"
sApplicationStatus += "<img src='images/cmark.gif' height='15' width='15' border='0' alt='cmark'>&nbsp;<b>Team Application Form</b><br>"
sApplicationStatus += "<img src='images/cmark.gif' height='15' width='15' border='0' alt='cmark'>&nbsp;<b>Referee Crew Info Form</b><br>"
sApplicationStatus += "<img src='images/cmark.gif' height='15' width='15' border='0' alt='cmark'>&nbsp;<b>Team Roster</b><br>"
sApplicationStatus += "<img src='images/cmark.gif' height='15' width='15' border='0' alt='cmark'>&nbsp;<b>Regional Check for the total amount of the Application Fee plus Referee Deposit.</b><br>"
sApplicationStatus += "<img src='images/cmark.gif' height='15' width='15' border='0' alt='cmark'>&nbsp;<b>Note: Personal checks cannot be accepted.</b></font>"

var sUpLoadApplication=""
sUpLoadApplication =  "<img src='images/cmark.gif' height='15' width='15' border='0' alt='cmark'>&nbsp;<font class='hilightyellow'><b>Please fill out all forms from your computer.</b></font><br>"
sUpLoadApplication += "<img src='images/cmark.gif' height='15' width='15' border='0' alt='cmark'>&nbsp;<font class='hilightyellow'><b>Print the forms and mail them to the address below.</b></font><br><br>"
sUpLoadApplication += "<b>Top Gun Tournament Complete Application package:</b><br><br>"
sUpLoadApplication += "<img src='images/zipicon.gif' height='16' width='16' alt='PDF Format' border='0' valign='bottom' >&nbsp;<a href='downloads/TGFullApplicationPacket2008.zip' title='ZIP Format - Right mouse click to save'>&nbsp;Top Gun 2010 Tournament Application Package (All Forms)</a><br></font>"

var sStartApplication=""

var sResumeApplication=""

var sCheckSchedule=""
sCheckSchedule += "<a href='http://www.t7sports.com:8080/2005/b100846.htm' title='Check Schedules'><img src='images/clickto.gif' height='14' width='23' border='0' alt=''>  Check Schedules...</a>"

var sCheckScores=""
sCheckScores += "<a href='http://www.t7sports.com:8080/2005/b100846.htm' title='Check Scores'><img src='images/clickto.gif' height='14' width='23' border='0' alt=''>  Check Scores...</a>"

var sResetScores=""
sResetScores += "<a href='http://www.eyouthsportsusa.com/cgi-win/onetime.exe?sT100846' title='Reset Scores'><img src='images/clickto.gif' height='14' width='23' border='0' alt=''>  Reset Schedules and Scores pages..</a>"

var sIndividualFiles=""
sIndividualFiles += "<b>Individual downloads.<br>Note:</b> These file are contained within the Tournament Application Package ZIP file above"

var sDownLoadTeamApp=""
sDownLoadTeamApp += "<font class='hilightyellow'><b>To save files Right mouse click select 'Save Target As'</b></font><br><br><a href='downloads/TGTeamApp2008.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Team Application Package...</a>"

var sDownLoadRules=""
sDownLoadRules += "<a href='downloads/TGRules2008.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Tournament Information and Rules...</a>"

var sTeamRoster=""
sTeamRoster += "<a href='downloads/TGTeamRoster2008.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Team Roster...</a>"

var sRefereeCrewForm=""
sRefereeCrewForm += "<a href='downloads/TGRefereeCrewForm2008.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Referee Crew Form...</a>"

var sRefereePlan=""
sRefereePlan += "<a href='downloads/TGRefereePlan2008.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Referee Plan Form...</a>"

var sRefundPolicy=""
sRefundPolicy += "<a href='downloads/TGRefundPolicy2008.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Refund Policy...</a>"

var sU16_19TimeChart=""
sU16_19TimeChart += "<a href='downloads/TGU16_19_PlayingTimeChart.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;U16 &amp; U19 Playing Time Chart...</a>"

var sOutSidePlayerForm=""
sOutSidePlayerForm += "<a href='downloads/TGOutsidePlayerForm.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Outside Player Form...</a>"
sOutSidePlayerForm += "<b>&nbsp;see Tournament Rule #5 on guest &amp; outside players.</b>"

var sApplicationNotes =""
sApplicationNotes = "<font class='hilightyellow'><b>Note: Personal checks cannot be accepted.</b></font><br><br>"
sApplicationNotes += "<font class='content0'><b>Mail all completed forms and the check to the Tournament Registrar at<br>????????Address , San Diego, CA 92126.</b><br><br>"
sApplicationNotes += "<font class='content0'><b>March 17, 2010</b> - End of tournament application period.<br>"
sApplicationNotes += "<b>April 26, 2010</b> - Notification of team withdrawal for full refund to be returned, unless a replacement is found.<br>"
sApplicationNotes += "<b>May 5, 2010</b> - Final day for changes to Team Roster.</font>"
 
// Application Stauts page
//var sGirlsApplicationStatus = "<a href='downloads/TGGirlsApplicationStatus.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Girls Team Application status...</a> updated: 03/25/07"
var sBoysApplicationStatus =  "<a href='downloads/TGTeamsApplicationStatus.pdf' title='PDF Format - Right mouse click to save'><img src='images/pdficon.gif' height='16' width='16' alt='PDF Format' border='0'>&nbsp;Girls &amp; Boys Team Application status...</a> updated: 05/08/07"
sBoysApplicationStatus += "<br><br><font class='hilightyellow'><b>To save files, Right mouse click select 'Save Target As'</b></font>"

var sCheckInLocation = ""
//sCheckInLocation += "<font class='hilightyellow'><b>Friday Night Checkin on Friday, May 29th will be at the QUALTITY SUITES</b></font><br>"
//sCheckInLocation += "<img src='images/clickto.gif' height='14' width='23' border='0' alt=''>&nbsp;<a href='in001.php'>Hotel Information...</a><br>"


// Field conditions. display in own box
var sFields = "<img src=images/smile.gif border=0 alt='smile'>&nbsp;The current playing conditions for Top Gun fields will be displayed here during the tournament.<br>[Updated: <font color='#cc0000'>02/20/03</font> 10:25]"
//var sFields = "<img src=images/smile.gif border=0 alt='smile'>&nbsp;All permitted Mira Mesa fields are open for use.<br><br><a href='http://weather.yahoo.com/forecast/USCA0983_f.html' target='blank'><img src='images/clickto.gif' height='14' width='23' border='0' alt=''><font color='#0000ff'>&nbsp;Weather Forecast for MCAS Miramar</font></a>"
//var sFields = "<br><b><font class='content0' align='center'><font color='#cc0000' align='center'>All MIRA MESA FIELDS are closed (1/29/05)!!!</font><br>View the home page for details<br>***</b></font><br><a href='http://weather.yahoo.com/forecast/USCA0983_f.html' target='blank'><img src='images/clickto.gif' height='14' width='23' border='0' alt=''><font color='#0000ff'>&nbsp;Weather Forecast for MCAS Miramar</font></a></b><br>&nbsp;"

// field game conditions
//var sDisclamer = "Games will be played as scheduled, unless cancelled<br>as a result of inclement weather or poor field conditions"
var sDisclamer = "Games could be cancelled because of the following reasons:<br>Inclement weather or poor field conditions"

// Top Gun Announcements
var sTGAnnounce = "<a href='tg285011.html'><img src='images/intlink.gif' border='0' alt='' style='float:left'><font color='#0000ff'>Letter from the Top Gun Tournament Director</font></a>"

// Home page news
var sNews = "<b>&nbsp;</b>"

// Pool play
var sPoolPlay = "<b>All U10 pool games are 50 minutes (two 20min halfs, plus a 5min halftime).<br>Finals will be full length games</b>"

var sPointsAwardedNormal = "How Points are Awarded (Normal region games)"
var sPointsAwardedPlayoff = "How Points are Awarded (Playoff games)"
var sPoolPlayPts = "<li class='normred'><b>Win</b>. 3 points awarded</li>"+
						"<li class='normred'><b>Loss</b>. 0 points awarded</li>"+
						"<li class='normred'><b>Tie</b>. 1 points awarded</li>"+
						"<li class='normred'><b>A maximum of 3 points can be earned for a single match.</b></li>"

// from tgappscode.js
var grps = new Array("BU10","BU12","BU14","BU16","BU19","GU10","GU12","GU14","GU16","GU19");
var grpName = new Array("U10 Boys","U12 Boys","U14 Boys","U16 Boys","U19 Boys","U10 Girls","U12 Girls","U14 Girls","U16 Girl","U19 Girls");

// from tgfieldschedule.js
var mDayID = new Array("05/29/10","05/30/10","05/31/10");
var pField = new Array("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18");
var pFldDesc = new Array(
"Hourglass Park",
"Hourglass Park",
"Hourglass Park",
"Hourglass Park",
"Wangenheim Middle School",
"Wangenheim Middle School",
"Walker Elementary School",
"Walker Elementary School",
"Westview Park",
"Westview Park",
"Mira Mesa Recreation Center",
"Mira Mesa Recreation Center",
"Mira Mesa High School",
"Mira Mesa High School",
"Challenger Middle School",
"Challenger Middle School",
"TBD",
"TBD");
//"Ellen Browning Scripps Elementary School",
//"Canyonside Park");

// from tgrefschedule.js
//"1BA1","1BA2","1BA3","1BA4","1BA5","1BB1","1BB2","1BB3","1BB4","1BB5",
var sTeamID = new Array(
"1BA1","1BA2","1BA3","1BB1","1BB2","1BB3","1BC1","1BC2","1BC3",
"1GA1","1GA2","1GA3","1GA4","1GA5","1GB1","1GB2","1GB3","1GB4","1GB5",
"2BA1","2BA2","2BA3","2BA4","2BA5","2BB1","2BB2","2BB3","2BB4","2BB5",
"2GA1","2GA2","2GA3","2GA4","2GA5","2GB1","2GB2","2GB3","2GB4","2GB5",
"3BA1","3BA2","3BA3","3BA4","3BA5","3BB1","3BB2","3BB3","3BB4","3BB5",
"3BC1","3BC2","3BC3","3BC4","3BC5","3BD1","3BD2","3BD3","3BD4","3BD5",
"3GA1","3GA2","3GA3","3GA4","3GA5","3GB1","3GB2","3GB3","3GB4","3GB5",
"3GC1","3GC2","3GC3","3GC4","3GC5","3GD1","3GD2","3GD3","3GD4","3GD5",
"4BA1","4BA2","4BA3","4BA4","4BA5","4BB1","4BB2","4BB3","4BB4","4BB5",
"4BC1","4BC2","4BC3","4BC4","4BC5","4BD1","4BD2","4BD3","4BD4","4BD5",
"4GA1","4GA2","4GA3","4GA4","4GA5","4GB1","4GB2","4GB3","4GB4","4GB5",
"4GC1","4GC2","4GC3","4GC4","4GC5","4GD1","4GD2","4GD3","4GD4","4GD5",
"5BA1","5BA2","5BA3","5BA4","5BA5","5BB1","5BB2","5BB3","5BB4","5BB5",
"5BC1","5BC2","5BC3","5BC4","5BC5","5BD1","5BD2","5BD3","5BD4","5BD5",
"5GA1","5GA2","5GA3","5GA4","5GA5","5GB1","5GB2","5GB3","5GB4","5GB5",
"5GC1","5GC2","5GC3","5GC4","5GC5","5GD1","5GD2","5GD3","5GD4","5GD5",
"LBX1","7XA1","7XA2","7XA3","7XA4","7XA5","7XA6","7XA7","7XA8","7XA9","7XB1",
"7XB2","7XB3","7XB4","7XB5","7XB6","7XB7","7XB8","7XB9","7XC1","7XC2");

// from tgschedule.js
var grpID = new Array( "BU10","BU12","BU14","BU16","BU19","GU10","GU12","GU14","GU16","GU19");

var BU10tm = new Array("5BA1","5BA2","5BA3","5BA4","5BA5","5BB1","5BB2","5BB3","5BB4","5BB5","5BC1","5BC2","5BC3","5BC4","5BC5","5BD1","5BD2","5BD3","5BD4","5BD5");
var GU10tm = new Array("5GA1","5GA2","5GA3","5GA4","5GA5","5GB1","5GB2","5GB3","5GB4","5GB5","5GC1","5GC2","5GC3","5GC4","5GC5","5GD1","5GD2","5GD3","5GD4","5GD5");
var BU12tm = new Array("4BA1","4BA2","4BA3","4BA4","4BA5","4BB1","4BB2","4BB3","4BB4","4BB5","4BC1","4BC2","4BC3","4BC4","4BC5","4BD1","4BD2","4BD3","4BD4","4BD5");
var GU12tm = new Array("4GA1","4GA2","4GA3","4GA4","4GA5","4GB1","4GB2","4GB3","4GB4","4GB5","4GC1","4GC2","4GC3","4GC4","4GC5","4GD1","4GD2","4GD3","4GD4","4GD5");
var BU14tm = new Array("3BA1","3BA2","3BA3","3BA4","3BA5","3BB1","3BB2","3BB3","3BB4","3BB5","3BC1","3BC2","3BC3","3BC4","3BC5","3BD1","3BD2","3BD3","3BD4","3BD5");
var GU14tm = new Array("3GA1","3GA2","3GA3","3GA4","3GA5","3GB1","3GB2","3GB3","3GB4","3GB5","3GC1","3GC2","3GC3","3GC4","3GC5","3GD1","3GD2","3GD3","3GD4","3GD5");
var BU16tm = new Array("2BA1","2BA2","2BA3","2BA4","2BA5","2BB1","2BB2","2BB3","2BB4","2BB5","*","*","*","*","*","*","*","*","*","*");
var GU16tm = new Array("2GA1","2GA2","2GA3","2GA4","2GA5","2GB1","2GB2","2GB3","2GB4","2GB5","*","*","*","*","*","*","*","*","*","*");
var BU19tm = new Array("1BA1","1BA2","1BA3","1BB1","1BB2","1BB3","1BC1","1BC2","1BC3",   "*","*","*","*","*","*","*","*","*","*","*");
var GU19tm = new Array("1GA1","1GA2","1GA3","1GA4","1GA5","1GB1","1GB2","1GB3","1GB4","1GB5","*","*","*","*","*","*","*","*","*","*");

// to get the team Region and Coach Name you must sort each each division by Team ID.
// once each devision has been sorted by teamID than you can copy Region and coach to the correct devision array below.
// After all arrays have been filled in resort each division by Sequence to place back into the 1-20 alignment.
// Use the Referee file

// team region
var U10rg = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team coach names
var U10hc = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team names
var U12rg = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team coach names
var U12hc = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team names
var U14rg = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team coach names
var U14hc = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team names
var U16rg = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team coach names
var U16hc = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team names
var U19rg = new Array(
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*",
	"*","*","*","*","*");

// team coach names
var U19hc = new Array(
"*","*","*","*","*",
"*","*","*","*","*",
"*","*","*","*","*",
"*","*","*","*","*",
"*","*","*","*","*",
"*","*","*","*","*",
"*","*","*","*","*",
"*","*","*","*","*");




function updateStatus() 
{
	window.status="Welcome to AYSO Region 285"
}

function updateNewsEvents() 
{
	document.getElementById("generalNews").innerHTML=sNews
}

function updateApplicationStatus() 
{
//	document.getElementById("girls_application_status").innerHTML=sGirlsApplicationStatus
	document.getElementById("boys_application_status").innerHTML=sBoysApplicationStatus
}

function updateAP001Page()
{
	document.getElementById("tournamentDates").innerHTML=sTournamentDates
	document.getElementById("apply4application").innerHTML=sApply4Application
	document.getElementById("applicationstatus").innerHTML=sApplicationStatus
	document.getElementById("applicationstatus2").innerHTML=sApplicationStatus
	document.getElementById("uploadAppRules").innerHTML=sUpLoadApplication
//	document.getElementById("checkSchedule").innerHTML=sCheckSchedule
//	document.getElementById("checkScores").innerHTML=sCheckScores
//	document.getElementById("resetScores").innerHTML=sResetScores
//	document.getElementById("startApplication").innerHTML=sStartApplication
//	document.getElementById("resumeApplication").innerHTML=sResumeApplication

	document.getElementById("individualFiles").innerHTML=sIndividualFiles
	document.getElementById("teamApplication").innerHTML=sDownLoadTeamApp
	document.getElementById("teamRoster").innerHTML=sTeamRoster
	document.getElementById("refApplication").innerHTML=sRefereeCrewForm
	document.getElementById("downLoadRules").innerHTML=sDownLoadRules
	document.getElementById("downLoadRules2").innerHTML=sDownLoadRules
	document.getElementById("refereePlan").innerHTML=sRefereePlan
	document.getElementById("refundPolicy").innerHTML=sRefundPolicy
	document.getElementById("outSidePlayerForm").innerHTML=sOutSidePlayerForm
	document.getElementById("playerTimeChart").innerHTML=sU16_19TimeChart
	document.getElementById("applicationNotes").innerHTML=sApplicationNotes
}

function updateRL001Page()
{
	document.getElementById("downLoadRules").innerHTML=sDownLoadRules
}

function updateHomePageEvents()
{
	document.getElementById("welcome2miramesa").innerHTML=sWelcomeToMiraMesa
	document.getElementById("homeintro1").innerHTML=sHomeIntro1
	document.getElementById("homeintro2").innerHTML=sHomeIntro2
	document.getElementById("divisionsfull").innerHTML=sDivisionsFull
	document.getElementById("checkInLocation").innerHTML=sCheckInLocation
	document.getElementById("tournamentDates").innerHTML=sTournamentDates
}


//function updateStats()  
//{
//	//document.getElementById("sitestats").innerHTML=sStats;
//	document.getElementById("fieldcon").innerHTML=sFields;
//	document.getElementById("news").innerHTML=sNews;
//}

function updateCoachTrngNews() 
{
	document.getElementById("coachTNews1").innerHTML=sCTrng1;
	document.getElementById("coachTNews2").innerHTML=sCTrng2;
}

function updateRefTrngNews() 
{
	document.getElementById("refTNews1").innerHTML=sRTrng1;
	document.getElementById("refTNews2").innerHTML=sRTrng2;
	document.getElementById("refTNews3").innerHTML=sRTrng3;
}

function updateFieldConditions() 
{
	document.getElementById("fieldcon").innerHTML=sFields;
}

function updateTGAnnouncements() {
	document.getElementById("tgAnnounce").innerHTML=sTGAnnounce;
}

function updateGameCondition()
{
	document.getElementById("gameCon").innerHTML=sDisclamer;
}

function updateGamePointsInfo()
{
	document.getElementById("gamePoints").innerHTML=sPlayOffsPts;
	document.getElementById("pointsAwarded").innerHTML=sPointsAwardedPlayoff;
}




function writeHeaderDate() 
{
	var days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	var months = new Array("January","February","March","April","May","June","July","August","September","October","November","December")

	today = new Date(); day = days[today.getDay()]
	month = months[today.getMonth()]
    date = today.getDate()
    year = today.getYear();

	if (year < 2000) 
	{
		year = year + 1900;
	}
    document.write ("<font class=\"date\">&nbsp; "+ day + ", " + month + " " + date + ", " + year + "&nbsp;&nbsp;</font>")
}

var winprint

function writeToWindow() 
{
	// assemble content for new window
	var sWinHTML = document.getElementById("contentstart").innerHTML;
	winprint.document.write('<html><head><link rel=stylesheet type=text/css href=printcss.css></head><body><tr><td>');
	winprint.document.write(sWinHTML);
	winprint.document.write('</td></tr></body></html>');
	winprint.document.close();
}

function PrintThisPage() 
{
	if (!winprint || winprint.closed) 
	{
		var sOption = "toolbar=yes,location=no,directories=yes,menubar=yes,";
		sOption += "scrollbars=yes,width=750,height=500,left=100,top=25";
		winprint = window.open("","",sOption)
		if (!winprint.opener) 
		{
			winprint.opener = window
		}
		// force small delay for IE to catch up
		setTimeout("writeToWindow()", 50)
	}
	else 
	{
		// windows already open; bring to front
		winprint.focus()
	}
}

function printWindow()
{
   bV = parseInt(navigator.appVersion);
   if (bV >= 4) window.print();
}

function nph_open_window(url, name, feature)
{
    window.open(url, name, feature);
}
