var min=8;
var max=18;
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 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"
   }   
}


function increaseFontSize() {
   var dl = document.getElementsByTagName('dl');
   for(i=0;i<dl.length;i++) {
      if(dl[i].style.fontSize) {
         var s = parseInt(dl[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      dl[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var dl = document.getElementsByTagName('dl');
   for(i=0;i<dl.length;i++) {
      if(dl[i].style.fontSize) {
         var s = parseInt(dl[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      dl[i].style.fontSize = s+"px"
   }   
}


function increaseFontSize() {
   var ol = document.getElementsByTagName('ol');
   for(i=0;i<ol.length;i++) {
      if(ol[i].style.fontSize) {
         var s = parseInt(ol[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      ol[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var ol = document.getElementsByTagName('ol');
   for(i=0;i<ol.length;i++) {
      if(ol[i].style.fontSize) {
         var s = parseInt(ol[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      ol[i].style.fontSize = s+"px"
   }   
}

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



