var min=8;
var max=18;
function increaseFontSize() {

    var tagi = new Array('p', 'li', 'div');
    for(j=0; j<=tagi.length-1;j++) {


    var p = document.getElementsByTagName(tagi[j]);

   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 decreaseFontSize() {
 
    var tagi = new Array('p', 'li', 'div');
    for(j=0; j<=tagi.length-1;j++) {

    var p = document.getElementsByTagName(tagi[j]);


   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"
   }   

}
}