// JavaScript Document
var min=8;
var max=15;
function increaseFontSize() {
   var p = document.getElementsByTagName("span");
   var q = 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"
   }
  
  for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var t = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var t = 12;
      }
      if(t!=max) {
         t += 1;
      }
      q[i].style.fontSize = t+"px"
   }
}
function decreaseFontSize() {

   var p = document.getElementsByTagName("span");
   var q = 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"
   }
   
   for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var t = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var t = 12;
      }
      if(s!=min) {
         t -= 1;
      }
      q[i].style.fontSize = t+"px"
   }
   
      
}
function mediumFontSize() {
   var p = document.getElementsByTagName("span");
   var q = 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 = 12;
      }
	  if(s==min) {
         s = 12;
      }
      p[i].style.fontSize = s+"px"
   }
   
   for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var t = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var t = 12;
      }
      if(t!=min) {
         t = 12;
      }
	  if(t==min) {
         t = 12;
      }
      q[i].style.fontSize = t+"px"
   }
   
}

