//Aumenta el tamaño del texto en función de la
//página donde te encuentras
var indice=0;

function texto(indice)
{
	switch(indice)
	{
		case '1':
			document.getElement
	}
}

function cambiarPropiedad(regla,propi,valor) {

  if (document.all)
	miRegla = document.styleSheets[0].rules;
  else
	miRegla = document.styleSheets[0].cssRules;
  for (i=0; reg=miRegla[i]; i++)
  {
	if (reg.selectorText.toLowerCase() == regla.toLowerCase() ){
		
		size = reg.style.fontSize;
		if (size!='') {
		  size=parseFloat(size)+tam+'em';
		  reg.style.fontSize=size;
		}
		
	}
  }

}

function cambiarTamano(tam) {
	
	if((indice>0 && tam<0) || (indice <3 && tam >0))
	{
	  if (document.all)
		miRegla = document.styleSheets[0].rules;
	  else
		miRegla = document.styleSheets[0].cssRules;
	  // código extra para que funcione en la página editar tabla.html
	  for (i=0; reg=miRegla[i]; i++) {
		size = reg.style.fontSize;
		if (size!='') {
		  size=parseFloat(size)+tam+'px';
		  reg.style.fontSize=size;
		}
	  }
	  if(tam<0) indice--;
	  else indice ++;
	}

}
