var fontSizeMin=12;
var fontSizeMax=15;

function increaseFontSize() {
  var t = new Array('p', 'li');
  for (j = 0; j < t.length; j++) {
    var p = document.getElementsByTagName(t[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!=fontSizeMax) {
         s += 3;
      }
      p[i].style.fontSize = s+"px"
    }
  }
}

function decreaseFontSize() {
  var t = new Array('p', 'li');
  for (j = 0; j < t.length; j++) {
    var p = document.getElementsByTagName(t[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!=fontSizeMin) {
         s -= 3;
      }
      p[i].style.fontSize = s+"px"
    }
  }
}
