function toggle(li){
	var ul = document.getElementById('lifiltre'+li);
	if (ul.style.display == 'none')
		ul.style.display = 'block';
	else
		ul.style.display = 'none';
}

function plus(el){
	document.getElementById(el).value = parseInt(document.getElementById(el).value)+1;
}

function moins(el){
	document.getElementById(el).value = parseInt(document.getElementById(el).value)-1 > 0 ? parseInt(document.getElementById(el).value)-1 : document.getElementById(el).value;
}

function displayHelp(obj, display){
  obj.style.display = display ;
}

function highlightCells(row, color){
	var cells = row.getElementsByTagName('td');
	for (var i=0; i<cells.length; i++)
		cells[i].style.backgroundColor = color;
}

function initHighlightCells(colorOn, colorOff){
	var cells = document.getElementsByTagName('td');
	for (var i=0; i<cells.length; i++){
		cells[i].onmouseover = function(){highlightCells(this.parentNode, colorOn);}
		cells[i].onmouseout = function(){highlightCells(this.parentNode, colorOff);}
	}
}