// JavaScript Document

function changeFontSize(inc)
{
  var p = document.getElementsByTagName('p');
  for(n=0; n<p.length; n++) {
    if(p[n].style.fontSize) {
       var size = parseInt(p[n].style.fontSize.replace("px", ""));
    } else {
       var size = 13;
    }
    p[n].style.fontSize = size+inc + 'px';
   }
   
   var h1 = document.getElementsByTagName('h1');
   for(n=0; n<h1.length; n++) {
    if(h1[n].style.fontSize) {
       var size = parseInt(h1[n].style.fontSize.replace("px", ""));
    } else {
       var size = 18;
    }
    h1[n].style.fontSize = size+inc + 'px';
   }
   
   var h2 = document.getElementsByTagName('h2');
   for(n=0; n<h2.length; n++) {
    if(h2[n].style.fontSize) {
       var size = parseInt(h2[n].style.fontSize.replace("px", ""));
    } else {
       var size = 15;
    }
    h2[n].style.fontSize = size+inc + 'px';
   }
   
   var ul = document.getElementsByTagName('ul');
   for(n=0; n<ul.length; n++) {
    if(ul[n].style.fontSize) {
       var size = parseInt(ul[n].style.fontSize.replace("px", ""));
    } else {
       var size = 13;
    }
    ul[n].style.fontSize = size+inc + 'px';
   }
   
}
