var min=8;
var max=18;
function increaseFontSize() {
   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"
   }
   var h5 = document.getElementsByTagName('h5');
   for(i=0;i<h5.length;i++) {
      if(h5[i].style.fontSize) {
         var s = parseInt(h5[i].style.fontSize.replace("px",""));
      } else {
         var s = 13;
      }
      if(s!=max) {
         s += 1;
      }
      h5[i].style.fontSize = s+"px"
   }
   var spanPrice = document.getElementsBy('class', 'price');
   for(i=0;i<spanPrice.length;i++) {
      if(spanPrice[i].style.fontSize) {
         var s = parseInt(spanPrice[i].style.fontSize.replace("px",""));
      } else {
         var s = 13;
      }
      if(s!=max) {
         s += 1;
      }
      spanPrice[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   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"
   }   
   var h5 = document.getElementsByTagName('h5');
   for(i=0;i<h5.length;i++) {
      if(h5[i].style.fontSize) {
         var s = parseInt(h5[i].style.fontSize.replace("px",""));
      } else {
         var s = 13;
      }
      if(s!=min) {
         s -= 1;
      }
      h5[i].style.fontSize = s+"px"
   }
   var spanPrice = document.getElementsBy('class', 'spanPrice');
   for(i=0;i<spanPrice.length;i++) {
      if(spanPrice[i].style.fontSize) {
         var s = parseInt(spanPrice[i].style.fontSize.replace("px",""));
      } else {
         var s = 13;
      }
      if(s!=min) {
         s -= 1;
      }
      spanPrice[i].style.fontSize = s+"px"
   }   
}
