<!--
if (document.images)
{
   img1 = new Image();
   img2 = new Image();
   img3 = new Image();
   img4 = new Image();
   img5 = new Image();
   img6 = new Image();
   img7 = new Image();
   img8 = new Image();
   img1.src = "img/tb-hhome.gif";
   img2.src = "img/tb-hsched.gif"
   img3.src = "img/tb-hregister.gif"
   img4.src = "img/tb-hresults.gif"
   img5.src = "img/tb-hphotos.gif"
   img6.src = "img/tb-hpoints.gif"
   img7.src = "img/tb-hplaces.gif"
   img8.src = "img/tb-hlinks.gif"
}

var cleared = 0;

function clearField(field)
  { if (cleared != 1)
     { field.value = ""
       cleared = 1 }
    else
     { cleared = 0 } }

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function bcolor(bcol,d_name)
{
if (document.all)
	{ var thestyle= eval ('document.all.'+d_name+'.style');
	  thestyle.backgroundColor=bcol; }
}

function SwapIframe(nUrl,iNum) {
	var sUrl = "inc/tab"+nUrl+".html";

	document.images['imgresults'].src='img/box-results'+iNum+'.gif';

	if (document.all) {
		document.stageframe.location.replace(sUrl);
	} else if (document.getElementById) {
		document.getElementById('stageframe').src = sUrl;
	} else {
		document.stageframe.src = sUrl;
	}
}

function DisplayStatusMsg(msgStr) {
  status=msgStr;
  document.ReturnValue = true;
}

function changeResults() {
	stepint=setInterval('stepThrough()',15000);
}

function stepThrough() {
	if (iNum == 2)
		{ SwapIframe('other',3) }
	else if (iNum == 3)
		{ SwapIframe('kq',1) }
	else
		{ SwapIframe('revco',2) }
	iNum = iNum + 1
	if (iNum >= 4)
		{ iNum = 1 }
}

function randRange(lowVal,highVal) {
     return Math.floor(Math.random()*(highVal-lowVal+1))+lowVal;
}

//-->
