var min=10;
var max=28;

function decreaseFontSize(tagName) {

      if(tagName.style.fontSize) {
         var s = parseInt(tagName.style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
     // }
      tagName.style.fontSize = s+"px"
   }   
} 

function increaseFontSize(tagName) {
      if(tagName.style.fontSize) {
         var s = parseInt(tagName.style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      tagName.style.fontSize = s+"px"
   }
} 



function increaseFontSizeFull() {
   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 decreaseFontSizeFull() {
   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"
   }   
} 

