var min=11;
var max=13;
function increaseFontSize()
{
	 
   var p = document.getElementsByTagName('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 += 1;
      }
      p[i].style.fontSize = s+"px"
	  
	 
   }
     var li = document.getElementsByTagName('li');
	  
	 for(i=0;i<li.length;i++) 
	 {
		  if(li[i].style.fontSize) 
		  {
			 var s = parseInt(li[i].style.fontSize.replace("px",""));
		  } 
		  else 
		  {
			 var s = 12;
		  }
		  if(s!=max) 
		  {
			 s += 1;
		  }
		  li[i].style.fontSize = s+"px"
	 }
	 
	 
	  var h1 = document.getElementsByTagName('h1');
	  
	 for(i=0;i<h1.length;i++) 
	 {
		  if(h1[i].style.fontSize) 
		  {
			 var s = parseInt(h1[i].style.fontSize.replace("px",""));
		  } 
		  else 
		  {
			 var s = 15;
		  }
		  if(s!=max) 
		  {
			 s += 1;
		  }
		  h1[i].style.fontSize = s+"px"
	 }
	 
	 
	 
}


function decreaseFontSize() 
{
	
   var p = document.getElementsByTagName('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 -= 1;
    }
      p[i].style.fontSize = s+"px"
}   



	var li = document.getElementsByTagName('li');
   
   for(i=0;i<li.length;i++) 
   
   	  {
		   
      if(li[i].style.fontSize) 
	  
	  {
         var s = parseInt(li[i].style.fontSize.replace("px",""));
      } else 
	  {
         var s = 12;
      }
      if(s!=min) 
	{
         s -= 1;
    }
      li[i].style.fontSize = s+"px"
} 


var h1 = document.getElementsByTagName('h1');
   
   for(i=0;i<h1.length;i++) 
   
   	  {
		   
      if(h1[i].style.fontSize) 
	  
	  {
         var s = parseInt(h1[i].style.fontSize.replace("px",""));
      } else 
	  {
         var s = 13;
      }
      if(s!=min) 
	{
         s -= 1;
    }
      h1[i].style.fontSize = s+"px"
} 




   
}
