﻿function SwapImage(objectID, imageSource)
{
	imageObject = document.getElementById(objectID);
	imageObject.src = imageSource;
}

function ShowRandom(imgObjectName, imageLocations)
{
	var myImages = document.getElementsByName(imgObjectName);
	if (myImages.length == 1) {
		myImages[0].src = imageLocations[Math.floor(Math.random()*(imageLocations.length))];;
	}
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function ShowHideLine(ChannelToShow) { if (document.getElementById("answer" + ChannelToShow).style.display == "inline") { document.getElementById("answer" + ChannelToShow).style.display = "none"; document.getElementById("logo").style.display = "inline"; }else { document.getElementById("answer" + ChannelToShow).style.display = "inline"; document.getElementById("logo").style.display = "none"; }}