function tamanoletra(opc) {
	var incremento = 0.05;
	if (opc == 2) {
		//Tamaņo de letra
		document.body.style.fontSize = "0.8em";
		document.cookie = "cbtam=0.8em";
	} else {
		tam = document.body.style.fontSize;
		if (tam == "") tam = "0.8em";
		pos = tam.indexOf("e");
		tam = parseFloat(tam.substring(0, pos));
		if (opc) tam = tam + incremento;
			else tam = tam - incremento;
		if ( tam < 1.05 && tam > 0.6) {
			document.cookie = "cbtam=" + tam + "em";
			document.body.style.fontSize = tam + "em";
		}
	}
}

function tamanoselect() {
	if (document.cookie.length > 0) {
	  var nameEQ = "cbtam=";
	  var ca = document.cookie.split(';');
	  for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) {
			document.body.style.fontSize = c.substring(nameEQ.length,c.length);
		}
	  }
	}
}

window.onload = tamanoselect;


