var min=0.8;
var max=1.1;
function increaseFontSize(elemId) {
   var p = document.getElementById(elemId);
//   for(i=0;i<p.length;i++) {    // use a loop if using classnames instead of elementId
      if(p.style.fontSize) {
         var s = parseFloat(p.style.fontSize.replace("em",""));
      } else {
         var s = 1;
      }
      if(s!=max) {
         s += 0.1;
      }
      p.style.fontSize = s+"em"
//   }
}
function decreaseFontSize(elemId) {
   var p = document.getElementById(elemId);
   //for(i=0;i<p.length;i++) { // use a loop if using classnames instead of elementId 
      if(p.style.fontSize) {
         var s = parseFloat(p.style.fontSize.replace("em",""));
      } else {
         var s = 1;
      }
      if(s!=min) {
         s -= 0.1;
      }
      p.style.fontSize = s+"em"
  // }   
}

