// JavaScript Document

var min=10;
var max=16;
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"
   }
   
   // var f = window.frames[iframe].window.getElementsByTagName('p');
   // for(i=0;i<f.length;i++) {
   //   if(f[i].style.fontSize) {
   //       var s = parseInt(f[i].style.fontSize.replace("px",""));
   //    } else {
   //      var s = 12;
   //    }
   //    if(s!=max) {
   //       s += 1;
   //    }
   //    f[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"
   }   
}  
