var white_orange = new Array("#FFF0C0", "#FFE080", "#FFD040", "#FFC000", "#FFD040", "#FFE080", "#FFF0C0", "#FFFFFF");

function SetBackgroundColor(elementId, color)
{
	var element = document.getElementById(elementId);
	if(element)
	{
		element.style.backgroundColor = color;
	}
}

function FlashBackground(elementId, colorlist, delay_ms, repeat)
{
	var time_ms = 0;
	var element = document.getElementById(elementId);
	if(element)
	{
		for(pass = 0; pass < repeat; pass++)
		{
			for(idx = 0; idx < colorlist.length; idx++)
			{
				time_ms += delay_ms;
				color = colorlist[idx];
				window.setTimeout('SetBackgroundColor("'+elementId+'", "'+color+'")', time_ms);
			}
		}
	}
}