function DisplayMainPicture()
{
	imagesText = new Array(5);

	imagesText[0] = "Action shot 1 from 2004 Antrim Junior Championship Final";
	imagesText[1] = "Action shot 2 from 2004 Antrim Junior Championship Final";
	imagesText[2] = "Action shot 3 from 2004 Antrim Junior Championship Final";
	imagesText[3] = "Action shot 4 from 2004 Antrim Junior Championship Final";
	imagesText[4] = "Action shot 5 from 2004 Antrim Junior Championship Final";
	
	index = Math.floor(Math.random() * imagesText.length);

	if (index < 10)
	{
	    strIndex = "0" + index
	}
	else
	{
	    strIndex = index
	}

	strImgSrc = "<a href=\"/gallery/\"><img alt=\"Visit the gallery section\" src=\"/_mainpics/mainpic_" + strIndex  + ".jpg\" border=\"0\" height=\"326\" width=\"490\" class=\"ImageFrame\" \></a>";

	document.write(strImgSrc);
	document.write("<br>");
	document.write(imagesText[index]);
}

/** ----------------------------------------------------------------------
  * openWindow
  *
  * Remarks:
  * Spawns a new browser window, and opens the file found identified by
  * URL in the new window.
  *
  * parameters: url - the URL of the file to open in the new window
  * returns: None
  *
  * Created:    23 Jan 2003
  * Author:     Kevin Corr
  * ----------------------------------------------------------------------
  */
function openWindow(url)
{
	window.open(url,"","height=435,width=630,left=140,top=40,screenX=140,screenY=40,scrollbars=1'");
}

/** ----------------------------------------------------------------------
  * Function to efficiently fix elements that are not filled. 
  * ----------------------------------------------------------------------
  */
function fixElement(element, message)
{
	alert(message);
	element.focus();
}

/** ----------------------------------------------------------------------
 * isContactFormReady:
 *  1. checks elements
 *  2. sends mail.
 * ---------------------------------------------------------------------- 
 */
function isContactFormReady(form)
{
	var passed = false;
	

	if (form.name.value == "")
	{
		fixElement(form.name, "Please include your name.");
	}
	else if ((form.email.value == "") && (form.phone.value == ""))
	{
		fixElement(form.email, "Please include your email address or phone number.");
	}
	else if (form.query.value == "")
	{
		fixElement(form.query, "Please inlcude your message.");
	}
	else
	{
		passed = true;
	}
	return passed;
}

/** ----------------------------------------------------------------------
 * isGBSignReady:
 *  1. checks elements
 *  2. submits form.
 * ---------------------------------------------------------------------- 
 */
function isGBSignReady(form)
  {
     var passed = false;
     if (form.Fname.value == "")
     {
        fixElement(form.Fname, "Please inlcude your first name.");
     }
     else if (form.Sname.value == "")
     {
        fixElement(form.Sname, "Please include your surname.");
     }
     else if (form.Location.value == "")
     {
        fixElement(form.Location, "Please include your location.");
     }
     else if (form.comment.value == "")
     {
        fixElement(form.comment, "Please inlcude a comment.");
     }
     else
     {
        getInfo(form);
        passed = true;
     }
     return passed;
  }
  
/** ----------------------------------------------------------------------
 * isForumFormReady:
 *  1. checks elements
 *  2. submits form.
 * ---------------------------------------------------------------------- 
 */  
   function isForumFormReady(form)
   {
   var passed = false;
       if (form.name.value == "")
       {
          fixElement(form.name, "Please inlcude a name.");
       }
       else if (form.subject.value == "")
       {
          fixElement(form.subject, "Please include a subject.");
       }
       else if (form.message.value == "")
       {
          fixElement(form.message, "Please include a message.");
       }
       else
       {
          passed = true;
       }
   return passed;
   }


function goToTeam(aObj)
{
	if ("" != aObj.value)
	{
	  window.location = aObj.value;
	}
}