
function incFontSize()
{
  //alert(getStyle('fontSize'));
  fsize = getStyle('fontSize') || getStyle('font-size');
  if(fsize.indexOf('%') != -1)
    newFsize = (parseInt(fsize) + 10) + '%'; 
  else
    newFsize = (parseInt(fsize) + 2) + 'px';

  document.body.style.fontSize = newFsize;

}

function decFontSize()
{
  //alert(getStyle('fontSize'));
  fsize = getStyle('fontSize') || getStyle('font-size');
  //if((parseInt(fsize) - 10) <= 5 ) return 0;
  if(fsize.indexOf('%') != -1)
    newFsize = (parseInt(fsize) - 10) + '%'; 
  else
    newFsize = (parseInt(fsize) - 2) + 'px';

  document.body.style.fontSize = newFsize;
 
}

function getStyle(styleProp) 
{ 
   var x = document.body; 
   if (x.currentStyle) 
      var y = x.currentStyle[styleProp]; 
   else if (window.getComputedStyle) 
      var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp); 
   return y; 
} 
