var numBlinks = 0;
var colorId = 0;
function blinkInd(controlId){
    if (document.getElementById(controlId)==null){return;}
    if (WinKilled==false){
		colorId=0;
        document.getElementById(controlId).style.backgroundColor = '';
		return;
    }
    if (colorId==0){
		colorId=1;
		document.getElementById(controlId).style.backgroundColor = 'red';
    }else{
        colorId=0;
        document.getElementById(controlId).style.backgroundColor = '';
    }
    numBlinks +=1;
	if (numBlinks < 12){
		blinkTimer(controlId);
    }
}
function blinkTimer(controlId){
     action = "blinkInd('" + controlId + "');";
	_blinkTimer = setTimeout(action,300);
}

