function changeFontSize(inc){
	var p = document.getElementsByTagName('p');
	for(n=0; n<p.length; n++) {
		if(p[n].style.fontSize) {
			if (p[n].style.fontSize == 'small' || p[n].style.fontSize == 'medium' || p[n].style.fontSize == 'large'){
				p[n].style.fontSize = traducirFontSize(p[n].style.fontSize);
			}
			var size = parseInt(p[n].style.fontSize.replace("px", ""));
		} 
		else{
			var size = 12;
		}
		p[n].style.fontSize = size+inc + 'px';
	}
	
	var spanTag = document.getElementsByTagName('span');
	for(n=0; n<spanTag.length; n++) {
		if(spanTag[n].style.fontSize) {
			if (spanTag[n].style.fontSize == 'small' || spanTag[n].style.fontSize == 'medium' || spanTag[n].style.fontSize == 'large'){
				spanTag[n].style.fontSize = traducirFontSize(spanTag[n].style.fontSize);
			}
			var size = parseInt(spanTag[n].style.fontSize.replace("px", ""));
		} 
		else {
			var size = 12;
		}
		spanTag[n].style.fontSize = size+inc + 'px';
	}
}

function traducirFontSize(fsize){
	if(fsize == 'small'){
		return '10px';
	}
	else{
		if(fsize == 'medium'){
			return '12px';
		}
		else{
			return '14px';
		}
	}
}
