var min=11;
var max=14;
var switchvar = true;
function increaseFontSize(){

   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 11;
      }
      if(s != max && switchvar) {
         s += 1;
      }
  else {
  switchvar = false;
  s -= 1;
  if(s == 11)
  switchvar = true;
}
      p[i].style.fontSize = s+"px"
  
   }

}



//var min=12;
//var max=14;
//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"
//   }
//}
//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"
//   }   
//}