﻿

var min=8;
var max=24;
function increaseFontSize(classNameValue)
{
  var p = document.getElementById(classNameValue);

  if(p.style.fontSize )
  {
    var s = parseInt(p.style.fontSize.replace("pt",""));
  }
  else
  {
    var s = 14;
  }
  if(s!=max)
  {
    s += 1;
  }
    p.style.fontSize = s+"pt";
    p.style.lineHeight = (s+4)+"pt";
}
function decreaseFontSize(classNameValue)
{
  var p = document.getElementById(classNameValue);

  if(p.style.fontSize )
  {
    var s = parseInt(p.style.fontSize.replace("pt",""));
  }
  else
  {
    var s = 14;
  }
  if(s!=min)
  {
    s -= 1;
  }
    p.style.fontSize = s+"pt";
    p.style.lineHeight = (s+4)+"pt";
}


