
var DOM2=document.getElementById
var ie4=document.all&&!document.getElementById
var flashColor = "#cc0000"
//var clearColor = "#5A7AB8"
var clearColor = "#ffffff"
var flashTimes = 5

function flashBox(box,cnt)
{
	if (!DOM2 && !ie4) return;
	thisCNT = eval(cnt);
	if (thisCNT >= flashTimes) return;
	b = box;
	thisBox = DOM2 ? document.getElementById(box) : eval(box);
	clearColor = thisBox.style.backgroundColor;
	thisBox.style.backgroundColor=flashColor;
	thisCNT++;
	setTimeout("clearBox(b,thisCNT)",50);
}

function clearBox(box,cnt)
{
	if (!DOM2 && !ie4) return;
	thisCNT = eval(cnt);
	b = box;
	thisBox = DOM2 ? document.getElementById(box) : eval(box);
	thisBox.style.backgroundColor=clearColor;
	if (thisCNT <= flashTimes) setTimeout("flashBox(b,thisCNT)",50);
}