var xx=0

function changeColor(y) {

	if (document.all) {
	if (f1.style.color == "red") {f1.style.color="white"}
	if (f2.style.color == "red") {f2.style.color="white"}
	if (f3.style.color == "red") {f3.style.color="white"}
	if (f4.style.color == "red") {f4.style.color="white"}
	if (f5.style.color == "red") {f5.style.color="white"}
	if (f6.style.color == "red") {f6.style.color="white"}
	if (f7.style.color == "red") {f7.style.color="white"}
	if (f8.style.color == "red") {f8.style.color="white"}
	if (f9.style.color == "red") {f9.style.color="white"}
	if (f10.style.color == "red") {f10.style.color="white"}
	if (f11.style.color == "red") {f11.style.color="white"}
	if (f12.style.color == "red") {f12.style.color="white"}
	xx=0
	if (y == "f1") {f1.style.color = "red"}
	if (y == "f2") {f2.style.color = "red"}
	if (y == "f3") {f3.style.color = "red"}
	if (y == "f4") {f4.style.color = "red"}
	if (y == "f5") {f5.style.color = "red"}
	if (y == "f6") {f6.style.color = "red"}
	if (y == "f7") {f7.style.color = "red"}
	if (y == "f8") {f8.style.color = "red"}
	if (y == "f9") {f9.style.color = "red"}
	if (y == "f10") {f10.style.color = "red"}
	if (y == "f11") {f11.style.color = "red"}
	if (y == "f12") {f12.style.color = "red"}
	
	} 
	else {		
		x = new Object()
		
		x = document.getElementById('f1'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f2'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f3'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f4'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f5'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f6'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f7'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f8'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f9'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f10'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f11'); if (x.style.color == "red") {x.style.color="white"}
		x = document.getElementById('f12'); if (x.style.color == "red") {x.style.color="white"}
		xx=0
		z= document.getElementById(y); 
		z.style.color = "red"
		
		xx=0
		}

}