function mouseover_image(sImageID, oNewImage)
{
	if (document.getElementById && document.getElementById(sImageID)) document.getElementById(sImageID).src = oNewImage.src;
}

/**
 * Stoolball.org.uk namespace
 */
var Stoolball = {};
Stoolball.DateControl = {
	/**
	 * Help user to complete a blank date, and move focus to next control
	 * 
	 * Note: need to hook up to keydown and keyup to support keyboard in all browsers,
	 * click to support mouse in most browsers, and change to stop click breaking it in
	 * Webkit. Still doesn't work with mouse in Webkit.
	 */
	BlankHourDisablesTime : function(e)
	{
		var isBlank = (this.options[this.selectedIndex].value == '');
		var datePrefix = this.id.substr(0, this.id.length - 4);
		var minuteList = document.getElementById(datePrefix + 'minute');
		var ampmList = document.getElementById(datePrefix + 'ampm');
		if (minuteList) minuteList.disabled = isBlank;
		if (ampmList) ampmList.disabled = isBlank;
	}
}