﻿offFlag = new Image(24,24);
offFlag.src = "images/whitedot.gif";
onFlag = new Image(24,24);
onFlag.src = "images/triangle.gif";

red = "#ff0000";
black = "#000000";

function setColor( tx, color )
{
	y = document.getElementById(tx);
	y.style.color = color;
	return true;
}

function flag1( n, f )
{
	y = document.getElementById( "flag" + n );
	y.src = f.src;
	return true;
}

function setFlag( n )
{
	flag1( n, onFlag );
	setColor( "box" + n, red );

	return true;
}

function clearFlag( n )
{
	flag1( n, offFlag );
	setColor( "box" + n, black );

	return true;
}


function setFlag2( n )
{
	flag1( n, onFlag );
	setColor( "boxu" + n, red );
	setColor( "boxl" + n, red );

	return true;
}

function clearFlag2( n )
{
	flag1( n, offFlag );
	setColor( "boxu" + n, black );
	setColor( "boxl" + n, black );

	return true;
}

