function setPointer(field, action, defaultColor, pointerColor, markColor)
{
	if (field.highlighted == true)
	{
		if (action == 'click')
		{
			field.style.backgroundColor=pointerColor;
			field.highlighted = false;
		}
	}
	else
	{
		if (action == 'over')
		{
			field.style.backgroundColor=pointerColor;
		}
		if (action == 'out')
		{
			field.style.backgroundColor=defaultColor;
		}
		if (action == 'click')
		{
			field.style.backgroundColor=markColor;
			field.highlighted = true;
		}
	}
}
