
function doSearch()
{
var searchString= document.getElementsByName('criteria')[0].value;

window.location='sitesearch.jsp?SubmitFlag=Y&Criteria=' + searchString;
}

function writeRandomQuote()
{
var quotes = new Array();
var credits = new Array();
var colors = new Array();

quotes[0] = "It is important to keep young people engaged in as many sports as possible.";
credits[0] = "<strong>Joan Benoit Samuelson</strong>,<br>Nordic Coach,<br>Freeport Middle School;<br>Olympic Gold Medalist";
colors[0] = "#018AD3"
quotes[1] = "Training coaches more like we train teachers could have a huge impact.";
credits[1] = "<strong>Scott Atherley</strong>,<br>Head Coach,<br>Women's Soccer,<br>University of Maine";
colors[1] = "#0173B3"
quotes[2] = "Ethical problems in coaching that are now a center story in college and professional sports also exist at the secondary level, perhaps even begin there.";
credits[2] = "<strong>Gary Thorne</strong>,<br>ESPN and ABC Sportscaster<BR><BR><BR>";
colors[2] = "#4B7225"
quotes[3] = "One sport is one-dimensional; athletic creativity comes from learning a variety of sports.";
credits[3] = "<strong>Terry Kix</strong>,<br>Former Head Coach,<br>Women's Field Hockey,<br>University of Maine";
colors[3] = "#018AD3"
quotes[4] = "Parents represent the best and darkest sides of sports.";
credits[4] = "<strong>Richard Card</strong>,<br>Director of Operations<br>Community Concepts<BR><BR>";
colors[4] = "#6C9F33"
quotes[5] = "Parents need to accept that kids are going to have fun in school sports and maybe, if they are lucky, play in college.";
credits[5] = "<strong>Maine Student-Athlete</strong><BR><BR><BR>";
colors[5] = "#003263"
quotes[6] = "When I play sports I seem more motivated to do homework.";
credits[6] = "<strong>Maine Student-Athlete</strong><BR><BR><BR>";
colors[6] = "#659630"
quotes[7] = "Unfortunately, we measure the value of a coach by wins and losses, not by being a mentor, teacher and leader.";
credits[7] = "<strong>Jack Cosgrove</strong>,<br>Head Coach, Football<br>University of Maine<BR>";
colors[7] = "#015887"
quotes[8] = "Student-athletes learn how to handle adversities and successes of life through sport.";
credits[8] = "<strong>Norm Gagne</strong>,<br>Hockey Coach,<br>Lewiston High School<BR><BR>";
colors[8] = "#39551C"
quotes[9] = "I am a huge believer in the value of athletics as a teaching experience. Sports are a real-life experience with an outcome.";
credits[9] = "<strong>John Wolfgram</strong>,<br>Teacher and Football Coach<br> Cheverus High School<BR>";
colors[9] = "#0286CC"

var rand = Math.round(Math.random() * (quotes.length - 1));

quoteString ="<table width=\"100%\" height=\"80\" bgcolor=\"" + colors[rand] + "\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">";
quoteString +="<tr><td width=\"5%\" height=\"30\"></td>";
quoteString +="<td width=\"45%\" height=\"30\" valign=\"middle\" align=\"left\">";
quoteString +="<em><strong>\"" + quotes[rand] + "\"</em></strong></font></td>";
quoteString +="<td width=\"45%\" height=\"30\" valign=\"bottom\" align=\"right\">"; 
quoteString +=credits[rand] + "</td><td height=\"30\"width=\"5%\">";
quoteString +="</td></tr></table>";

if (navigator.appName.indexOf("Netscape") < 0)
{
document.all.item('Quote').bgColor = colors[rand];
document.all.item('Quote').innerHTML = quoteString;
}
else
{
document.getElementsByName('Quote')[0].bgColor = colors[rand];
document.getElementsByName('Quote')[0].innerHTML = quoteString;
}

setTimeout("writeRandomQuote()", 5000);

}

function swapColor(item, bg, fg)
{
item.bgColor = bg;
}
function openWindow(url, height, width) {
   var remote = open(url,"_blank","toolbar=no,width=" + width + ",height=" + height + ",directories=no,status=no,scrollbars=yes,resize=no,menubar=no", false);        remote.focus()
}
