
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 = 12;
    }
    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 = 24;
    }
    h1[n].style.fontSize = size+inc + 'px';
   }
   
   
}

