var min=12;
var max=18;
function increaseFontSize() {
   var p = document.getElementById('content').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 += 2;
      }
      p[i].style.fontSize = s+"px"
   }
   var q = document.getElementById('content').getElementsByTagName('ul');
   for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var t = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var t = 12;
      }
      if(s!=max) {
         t += 2;
      }
      q[i].style.fontSize = t+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementById('content').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 -= 2;
      }
      p[i].style.fontSize = s+"px"
   } 
   var q = document.getElementById('content').getElementsByTagName('ul');
   for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var t = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var q = 12;
      }
      if(s!=min) {
         t -= 2;
      }
      q[i].style.fontSize = t+"px"
   }     
}