// función control del tamaño de letra
 
var min=8;
var max=18;
function aumentarTexto() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
 
function reducirTexto() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}
 
function restauraTexto() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
     p[i].style.fontSize = 12+"px"
   }   
}
 
// Obtención de la URL. 
url = document.location.href ; 
 
// function keyTexto() {
// if (window.event.keyCode==107) {
//    aumentarTexto();
// }else (window.event.keyCode==109) {
//    reducirTexto();
// }
 
// función cambio de gráfico en cotizaciones
 
               function CambiaImagen( sURLImagen, sNombreImagen ) {
                       document.images[ sNombreImagen ].src = sURLImagen;
               }
 
 
