function setPointer(theRow, thePointerColor, theNormalBgColor)
{
	var theCells = null;
	if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
		return false;
	}
	if (typeof(document.getElementsByTagName) != 'undefined') {
		theCells = theRow.getElementsByTagName('td');
	}
	else if (typeof(theRow.cells) != 'undefined') {
		theCells = theRow.cells;
	}
	else {
		return false;
	}
	var rowCellsCnt  = theCells.length;
	var currentColor = null;
	var newColor     = null;
	if (typeof(window.opera) == 'undefined'&& typeof(theCells[0].getAttribute) != 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') {
		currentColor = theCells[0].getAttribute('bgcolor');
		newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase())? theNormalBgColor: thePointerColor;
		for (var c = 0; c < rowCellsCnt; c++) {
			theCells[c].setAttribute('bgcolor', newColor, 0);
		} // end for}else {currentColor = theCells[0].style.backgroundColor;newColor = (currentColor.toLowerCase() == thePointerColor.toLowerCase())? theNormalBgColor: thePointerColor;for (var c = 0; c < rowCellsCnt; c++) {theCells[c].style.backgroundColor = newColor;}
	}
	return true;
}

function agr_podswietlTlo(id1, id2, id3, stan){
	var pole_1 = document.getElementById(id1);
	var pole_2 = document.getElementById(id2);
	var pole_3 = document.getElementById(id3);
	pole_1.className = 'kolumna_'+stan;
	pole_2.className = 'kolumna_'+stan;
	pole_3.className = 'kolumna_'+stan;
}