/* Resize using px*/
var min=10;
var max=18;
function increaseFontSize() {
    if(document.getElementById('content'))
    {
    
        var p = document.getElementById('content').getElementsByTagName('p');
        
        if(p)
        {

           for(i=0;i<p.length;i++) {
              if(p[i].style.fontSize) {
                 var s = parseInt(p[i].style.fontSize.replace("px",""));
              } else {
                 var s = 12;
              }
              if(s!=max) {
                 s += 2;
              }
              p[i].style.fontSize = s+"px"
           }
         }
    }     

    if(document.getElementById('content2'))
    {
        var a = document.getElementById('content2').getElementsByTagName('li');

        if(a)
        {
           for(i=0;i<a.length;i++) {
              if(a[i].style.fontSize) {
                 var sa = parseInt(a[i].style.fontSize.replace("px",""));
              } else {
                 var sa = 12;
              }
              if(sa!=max) {
                 sa += 2;
              }
              a[i].style.fontSize = sa+"px"
           }
        }
    }

	    if(document.getElementById('content'))
    {
        var a = document.getElementById('content').getElementsByTagName('li');

        if(a)
        {
           for(i=0;i<a.length;i++) {
              if(a[i].style.fontSize) {
                 var sa = parseInt(a[i].style.fontSize.replace("px",""));
              } else {
                 var sa = 12;
              }
              if(sa!=max) {
                 sa += 2;
              }
              a[i].style.fontSize = sa+"px"
           }
        }
    }
}
function decreaseFontSize() {
    if(document.getElementById('content'))
    {
        var p = document.getElementById('content').getElementsByTagName('p');
        if(p)
        {
           for(i=0;i<p.length;i++) {
              if(p[i].style.fontSize) {
                 var s = parseInt(p[i].style.fontSize.replace("px",""));
              } else {
                 var s = 12;
              }
              if(s!=min) {
                 s -= 2;
              }
              p[i].style.fontSize = s+"px"
           }   
        }
    }
    
    if(document.getElementById('content2'))
    {
        var a = document.getElementById('content2').getElementsByTagName('li');
        if(a)
        {
           for(i=0;i<a.length;i++) {
              if(a[i].style.fontSize) {
                 var sa = parseInt(a[i].style.fontSize.replace("px",""));
              } else {
                 var sa = 12;
              }
              if(sa!=min) {
                 sa -= 2;
              }
              a[i].style.fontSize = sa+"px"
            }
        }
    }
    if(document.getElementById('content'))
    {
        var p = document.getElementById('content').getElementsByTagName('li');
        if(p)
        {
           for(i=0;i<p.length;i++) {
              if(p[i].style.fontSize) {
                 var s = parseInt(p[i].style.fontSize.replace("px",""));
              } else {
                 var s = 12;
              }
              if(s!=min) {
                 s -= 2;
              }
              p[i].style.fontSize = s+"px"
           }   
        }
    }
}