var min=10;

var max=14;

function increaseFontSize() {

   var p = document.getElementsByTagName('td');

   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 += 3;

      }

      p[i].style.fontSize = s+"px"

   }

   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 += 3;

      }

      p[i].style.fontSize = s+"px"

   }

   var p = document.getElementsByTagName('body');

   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 += 3;

      }

      p[i].style.fontSize = s+"px"

   }

   var p = document.getElementsByTagName('font');

   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 += 3;

      }

      p[i].style.fontSize = s+"px"

   }

var p = document.getElementsByTagName('span');

   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 += 3;

      }

      p[i].style.fontSize = s+"px"

   }

var p = document.getElementsByTagName('div');

   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 += 3;

      }

      p[i].style.fontSize = s+"px"

   }

}

function decreaseFontSize() {

   var p = document.getElementsByTagName('td');

   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 -= 3;

      }

      p[i].style.fontSize = s+"px"

   }

   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 -= 3;

      }

      p[i].style.fontSize = s+"px"

   }

   var p = document.getElementsByTagName('body');

   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 -= 3;

      }

      p[i].style.fontSize = s+"px"

   }

   var p = document.getElementsByTagName('font');

   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 -= 3;

      }

      p[i].style.fontSize = s+"px"

   }

   var p = document.getElementsByTagName('span');

   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 -= 3;

      }

      p[i].style.fontSize = s+"px"

   }   

   var p = document.getElementsByTagName('div');

   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 -= 3;

      }

      p[i].style.fontSize = s+"px"

   }   

}