function zoomText(Accion){
	//inicializaciones
	obj=document.getElementById("bodys");
	if (obj.style.fontSize==""){
		obj.style.fontSize="80%";
	}
	actual=parseInt(obj.style.fontSize); //valor actual del tamaño del texto
	incremento=10;// el valor del incremento o decremento en el tamaño
	
	//accion sobre el texto
	if(Accion=="normal"){
		obj.style.fontSize="80%"
	}
	if(Accion=="mayor"){
		valor=actual+incremento;
		obj.style.fontSize=valor+"%"
	}
	if(Accion=="menor"){
		valor=actual-incremento;
		obj.style.fontSize=valor+"%"
	}
	var size=obj.style.fontSize;
        createCookie("fontsize",size,30);
}

function loadPage() {
    var size = readCookie("fontsize"); 
    var obj= document.getElementById("bodys");
    if (size) {
        obj.style.fontSize=size;
        createCookie("fontsize",size,30); 
    } 
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  } else {
	expires = "";
  }
  document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name){
	var nameEQ = name + "=";
	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) return c.substring(nameEQ.length,c.length);
	}
//alert('no hay cookie creada revisar si el navegador las acepta');
	return "";
}