/* funzioni per controllo dei fonts */

/*
	ingrandisce/riduci dimensioni caratteri
	rFld: id tag da controllare
	amount = +1, -1
*/
function fontResize (rFld, amount) {
	if (document.getElementById(rFld)) {
		var resizable = document.getElementById(rFld);
		var curSize = parseInt(resizable.style.fontSize);
		if (!curSize) { curSize = 11; } // default a 11 per evitare valori vuoti
		if (amount > 0) { curSize++; }
		else if (amount < 0) { curSize--; }
		resizable.style.fontSize = curSize + 'px';
	}
	return;
}
