
var min=8;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   var u = document.getElementsByTagName('ul');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("pt",""));
      } else {
         var s = 10;
      }
      if(s!=max) {
         s += 2;
      }
      p[i].style.fontSize = s+"pt"
   }
   for(i=0;i<ul.length;i++) {
      if(ul[i].style.fontSize) {
         var su = parseInt(ul[i].style.fontSize.replace("pt",""));
      } else {
         var su = 10;
      }
      if(su!=max) {
         su += 2;
      }
      ul[i].style.fontSize = su+"pt"
   }   
   
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   var u = document.getElementsByTagName('ul');   
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("pt",""));
      } else {
         var s = 10;
      }
      if(s!=min) {
         s -= 2;
      }
      p[i].style.fontSize = s+"pt"
   }   
   for(i=0;i<ul.length;i++) {
      if(ul[i].style.fontSize) {
         var su = parseInt(ul[i].style.fontSize.replace("pt",""));
      } else {
         var su = 10;
      }
      if(su!=min) {
         su -= 2;
      }
      ul[i].style.fontSize = su+"pt"
   }   
   
   
}
