var min=8;
var max=18;
var min1=12;
var max1=22;
var min2=7;
var max2=17;
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("pt",""));
      } else {
         var s = 8;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"pt"
   }     
}
function increaseFontSize1() {
   var cim = document.getElementsByTagName('h4'); 
   for(i=0;i<cim.length;i++) {
      if(cim[i].style.fontSize) {
         var t = parseInt(cim[i].style.fontSize.replace("pt",""));
      } else {
         var t = 12;
      }
      if(t!=max1) {
         t += 1;
      }
      cim[i].style.fontSize = t+"pt"
   }     
}
function increaseFontSize2() {
   var alcim = document.getElementsByTagName('h5');
   for(i=0;i<alcim.length;i++) {
      if(alcim[i].style.fontSize) {
         var u = parseInt(alcim[i].style.fontSize.replace("pt",""));
      } else {
         var u = 7;
      }
      if(u!=max2) {
         u += 1;
      }
      alcim[i].style.fontSize = u+"pt"
   }     
}

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("pt",""));
      } else {
         var s = 8;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"pt"
   }   
}
function decreaseFontSize1() {
   var p = document.getElementsByTagName('h4');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("pt",""));
      } else {
         var s = 12;
      }
      if(s!=min1) {
         s -= 1;
      }
      p[i].style.fontSize = s+"pt"
   }   
}
function decreaseFontSize2() {
   var p = document.getElementsByTagName('h5');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("pt",""));
      } else {
         var s = 7;
      }
      if(s!=min2) {
         s -= 1;
      }
      p[i].style.fontSize = s+"pt"
   }   
}