

<!-- The Emperor's font size changer2 - copyright 2001-2002
// Works only with DOM compliant browsers (IE5+ and pos. NS6.1+)
// Free to use, modify and redistribute as long as this credit remains intact
// The Emperor
// www.the-emperor.org
   
function changeFontsize(increment) {
  
  var getElement = document.getElementsByTagName("p");
  
  for (var i=0; i<getElement.length; i++) {
    var eachElement = getElement[i];
    
    if (document.defaultView) {	
      var currentFontSize = document.defaultView.getComputedStyle(eachElement, null).getPropertyValue(fontSize);   
    }
    else if (eachElement.currentStyle) {	
      var currentFontSize = eachElement.currentStyle.fontSize;
    }

    var currFontSize = parseInt(currentFontSize, 10);
	
    var fontIncrease = parseInt(increment, 10);
	
    if (increment>0 || currFontSize>10) {
		
      newFontSize = currFontSize + fontIncrease;
	
      eachElement.style.fontSize = newFontSize + "px";
    }  

  }	
}
//-->