function changeColor(par,v)
{
	var type = 0;

	if (par.match(/-1$/)!=null)
		type = 1;


	obj = document.getElementById(par);
	if (obj!=null&&obj!=undefined)
	{
		if (v)
		{
			if (type == 1)
				obj.style.backgroundColor = "#c71922";
			else
				obj.style.backgroundColor = "#666666";
		}	
		else
		{
			if (type == 1)
				obj.style.backgroundColor = "#fe0100";
			else
				obj.style.backgroundColor = "#dddddd";				
		}
	}
	
}

	
