/*=============================================================================
TITLE:			Standard Utility Functions
VERSION:		2005.09.07
AUTHOR: 		NetMediaOne - www.netmediaone.com
=============================================================================*/

// xGetElementById, Copyright 2001-2005 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xGetElementById(e)
{
  if(typeof(e)!='string') return e;
  if(document.getElementById) e=document.getElementById(e);
  else if(document.all) e=document.all[e];
  else e=null;
  return e;
}

function imgOn(imgID)
{
	xGetElementById(imgID).src = "images/" + imgID + "_on.gif";
}

function imgOff(imgID)
{
	xGetElementById(imgID).src = "images/" + imgID + "_off.gif";
}

function ttt_open_printwindow(articleNum)
{
	window.open("http://www.thoroughbredtimes.com/todaysnews/newsview_print.asp?recno="+articleNum, "newwin", "width=600,height=400,scrollbars=yes");
}