// BHB javascript written by J.Manser - RMG:Connect Dec '03


// print me javascript
function printPage(extraParams){
	var thisPage = window.location.href;
	var parts = thisPage.split("?");
	thisPage = parts[0];
//	alert(thisPage);
	var fullPath = "/ssi/functions/printMe.asp?page=" + thisPage + "&" + extraParams;
//	alert(fullPath);
	var fullParams = "fullscreen=no,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=no,directories=no,location=no,width=550,height=500";
	window.open(fullPath, "printWindow", fullParams);
}


// changes the bg color for links, used on TR's when called from a TD
function changeBG(what,color){
	what.parentNode.style.backgroundColor = color;
}
function unChangeBG(what,color){
	what.parentNode.style.backgroundColor = color;
}
function rollOver(obj,classname){
	obj.className = classname;
}

// go racing calendar functions
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var demoTxt = "<b>Friday 3rd October </b><br><br>This is a jump race meeting.<br>First Race: 14:20<br>Last Race: 17:05";
function rollCalendar(obj,classname){ // this is the rollover function
// this is a workaround to demonstrate functionality
if (obj.className == 'orangeCell'){showOutput(demoTxt);} // roll-on
if (classname == 'orangeCell'){showOutput('Rollover the Dates to see what kind of races are on that day.');}// roll-off, return to howTo msg
// end workaound, start actual rollover function.....
	obj.className=classname;
}
function showOutput(txt){
	d=document.getElementById('fixtureOutput');
	d.innerHTML = txt;
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ end calendar functions

//alert('js file loaded');
