var tgs = new Array( 'div','td','tr');
var szs = new Array( 'xx-small','x-small','small','medium','large','x-large','xx-large' );
var currentSize = new Array();
function ts( trgt,inc ) {
if (!document.getElementById) return
var d = document,cEl = null,i,j,cTags;
sz = currentSize[trgt];
if (!sz)
	sz = 1;
sz += inc;
if ( sz < 1 ) sz = 1;
if ( sz > 6 ) sz = 6;
currentSize[trgt] = sz;
if (!( cEl = d.getElementById( trgt ) ) ) cEl = d.getElementsByTagName( trgt )[ 0 ];
cEl.style.fontSize = szs[ sz ];
for ( i = 0 ; i < tgs.length ; i++ ) {
cTags = cEl.getElementsByTagName( tgs[ i ] );
for ( j = 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize = szs[ sz ];
}
}
/*function tamFuente (nivel, elem) {  
     var elemento = document.getElementById(elem)  
     elemento.className = "nivel"+nivel;  
 }  */
/*function textSize(Accion,Elemento){
//inicializacion de variables y parámetros
var obj=document.getElementById(Elemento);
var max = 200 //tamaño máximo del fontSize
var min = 80 //tamaño mínimo del fontSize
if (obj.style.fontSize==""){
obj.style.fontSize="125%";
}
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="125%"
}
if( Accion=="aumentar" && ((actual+incremento) <= max )){
valor=actual+incremento;
obj.style.fontSize=valor+"%"
}
if( Accion=="disminuir" && ((actual+incremento) >= min )){
valor=actual-incremento;
obj.style.fontSize=valor+"%"
}
}*/
