function zoomText(Accion,Elemento){
//inicializacion de variables y parámetros
var obj=document.getElementById(Elemento);
var max = 200 //tamaño máximo del fontSize
var min = 70 //tamaño mínimo del fontSize
if (obj.style.fontSize==""){
obj.style.fontSize="100%";
}
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=="reestablecer" ){
obj.style.fontSize="100%"
setCookie('TamTexto',"100%", 1);
}
if( Accion=="aumentar" && ((actual+incremento) <= max )){
valor=actual+incremento;
obj.style.fontSize=valor+"%"
setCookie('TamTexto',valor+"%", 1);
}
if( Accion=="disminuir" && ((actual+incremento) >= min )){
valor=actual-incremento;
obj.style.fontSize=valor+"%"
setCookie("TamTexto",valor+"%", 1);
}
} 

// ESTO PARA LAS COOKIES

function cookiesAllowed() {
setCookie('checkCookie', 'test', 1);
if (getCookie('checkCookie')) {
deleteCookie('checkCookie');
return true;
}
return false;
}

function setCookie(name,value,expires, options) {
if (options===undefined) { options = {}; }
if ( expires ) {
var expires_date = new Date();
expires_date.setDate(expires_date.getDate() + expires)
}
document.cookie = name+'='+escape( value ) +
( ( expires ) ? ';expires='+expires_date.toGMTString() : " ) + ( ( options.path ) ? ';path=' + options.path : " ) + ( ( options.domain ) ? ';domain=' + options.domain : " ) + ( ( options.secure ) ? ';secure' : " ); 
}

function getCookie( name ) {
var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
return null;
}
if ( start == -1 ) return null;
var end = document.cookie.indexOf( ';', len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}

function deleteCookie( name, path, domain ) {
if ( getCookie( name ) ) document.cookie = name + '=' + ( ( path ) ? ';path=' + path : ") + ( ( domain ) ? ';domain=' + domain : " ) + ';expires=Thu, 01-Jan-1970 00:00:01 GMT';
} 

