

var min=9;
var max=12;
function increaseFontSize() {
   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 = 11;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }

var q = document.getElementsByTagName('font');
   for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var s = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s += 1;
      }
      q[i].style.fontSize = s+"px"
   }

var e = document.getElementsByTagName('td');
   for(i=0;i<e.length;i++) {
      if(e[i].style.fontSize) {
         var s = parseInt(e[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s += 1;
      }
      e[i].style.fontSize = s+"px"
   }
var h = document.getElementsByTagName('b');
   for(i=0;i<h.length;i++) {
      if(h[i].style.fontSize) {
         var s = parseInt(h[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s += 1;
      }
      h[i].style.fontSize = s+"px"
   }

  var r = document.getElementsByTagName('p');
   for(i=0;i<r.length;i++) {
      if(r[i].style.fontSize) {
         var s = parseInt(r[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s += 1;
      }
      r[i].style.fontSize = s+"px"
   }


}



function decreaseFontSize() {
   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 = 11;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   

var q = document.getElementsByTagName('font');
   for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var s = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s -= 1;
      }
      q[i].style.fontSize = s+"px"
   }

var e = document.getElementsByTagName('td');
   for(i=0;i<e.length;i++) {
      if(e[i].style.fontSize) {
         var s = parseInt(e[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s -= 1;
      }
      e[i].style.fontSize = s+"px"
   }

var h = document.getElementsByTagName('b');
   for(i=0;i<h.length;i++) {
      if(h[i].style.fontSize) {
         var s = parseInt(h[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s -= 1;
      }
      h[i].style.fontSize = s+"px"
   }

   var r = document.getElementsByTagName('p');
   for(i=0;i<r.length;i++) {
      if(r[i].style.fontSize) {
         var s = parseInt(r[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s!=max) {
         s -= 1;
      }
      r[i].style.fontSize = s+"px"
   }


}



