﻿// JavaScript Document
var min=1;
var max=1.3;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseFloat(p[i].style.fontSize.replace("em",""));
      } else {
         var s = 1;
      }
      if(s!=max) {
         s += 0.1;
		 
      }
      p[i].style.fontSize = s+"em"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseFloat(p[i].style.fontSize.replace("em",""));
      } else {
         var s = 1;
      }
      if(s!=min) {
         s -= 0.1;
      }
      p[i].style.fontSize = s+"em"
   }   
}
