// JavaScript Document
// Original script created for and owned by www.seniorsreversemortgage.com

var min=8;
var max=24;
function increaseFontSize() {

var q = document.getElementsByTagName('body');
   for(i=0;i<q.length;i++) {
      if(q[i].style.fontSize) {
         var s = parseInt(q[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      q[i].style.fontSize = s+"px"
   }

   var p = document.getElementsByTagName('div');
   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 r = document.getElementsByTagName('h3');
   for(i=0;i<r.length;i++) {
      if(r[i].style.fontSize) {
         var s = parseInt(r[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      r[i].style.fontSize = s+"px"
   }
   var t = document.getElementsByTagName('h2');
   for(i=0;i<t.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(t[i].style.fontSize.replace("px",""));
      } else {
         var s = 14;
      }
      if(s!=max) {
         s += 1;
      }
      t[i].style.fontSize = s+"px"
   }
   var k = document.getElementsByTagName('h1');
   for(i=0;i<k.length;i++) {
      if(k[i].style.fontSize) {
         var s = parseInt(k[i].style.fontSize.replace("px",""));
      } else {
         var s = 18;
      }
      if(s!=max) {
         s += 1;
      }
      k[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('div');
   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"
   }   
    var r = document.getElementsByTagName('h1');
   for(i=0;i<r.length;i++) {
      if(r[i].style.fontSize) {
         var s = parseInt(r[i].style.fontSize.replace("px",""));
      } else {
         var s = 18;
      }
      if(s!=min) {
         s -= 1;
      }
      r[i].style.fontSize = s+"px"
   }   
    var t = document.getElementsByTagName('h2');
   for(i=0;i<t.length;i++) {
      if(t[i].style.fontSize) {
         var s = parseInt(t[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      t[i].style.fontSize = s+"px"
   }   
    var k = document.getElementsByTagName('h3');
   for(i=0;i<k.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(k[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      k[i].style.fontSize = s+"px"
   }   
}