/**
* zoomText
* @param {String} targetId
* @param {String} action  
*/
function zoomText(targetId, action) { 	
	// Inicializaciones
	var target = document.getElementById(targetId);
	if (target.style.fontSize == '') {
		target.style.fontSize = '100%';
	}

	var currentSize = parseInt(target.style.fontSize); // Valor actual del tamanno del texto
	var inc = 10; // Salto de tamanno del texto
	var incCount = 3; // Numero de incrementos en el mismo sentido permitidos desde el tamanno original

	if (action == 'reset') {
		currentSize = 100;
	}
	if (action == 'increase') {
		if (currentSize < 100 + inc*incCount) {
			currentSize += inc;
		}
	}
	if (action == 'reduce') {
		if (currentSize > 100 - inc*incCount) {
			currentSize -= inc;
		}
	}

	target.style.fontSize = String(currentSize) + '%'; 	
}
