// JavaScript Document

var min=8;
var max=20;
/*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("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}*/

function increaseFontSize() {
   var body = document.getElementsByTagName('body');
   
   for(i=0;i<body.length;i++) {
      if(body[i].style.fontSize) {
         var s = parseInt(body[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 2;
      }
      body[i].style.fontSize = s+"px"
   }
}

function decreaseFontSize() {
   var body = document.getElementsByTagName('body');
   for(i=0;i<body.length;i++) {
      if(body[i].style.fontSize) {
         var s = parseInt(body[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 2;
      }
      body[i].style.fontSize = s+"px"
   }

/*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("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}*/}


	
