var min=8;
var max=13;
function increaseFont() {
   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("pt",""));
	  } else {
		 var s = 10;
	  }
	  if(s!=max) {
		 s += 1;
	  }
	  
	  p[i].style.fontSize = s+"pt"
   }
   
   var tdObj = document.getElementsByTagName('td');
   for(i=0;i<tdObj.length;i++) {
	  if(tdObj[i].style.fontSize) {
		 var s = parseInt(tdObj[i].style.fontSize.replace("pt",""));
	  } else {
		 var s = 10;
	  }
	  if(s!=max) {
		 s += 1;
	  }
	  
	  if (tdObj[i].className != 'noResize' ){
	  	tdObj[i].style.fontSize = s+"pt"
	  }
   }
   
   
}

function decreaseFont() {
   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("pt",""));
	  } else {
		 var s = 10;
	  }
	  if(s!=min) {
		 s -= 1;
	  }
	  p[i].style.fontSize = s+"pt"
   }
   
   var tdObj = document.getElementsByTagName('td');
   for(i=0;i<tdObj.length;i++) {
	  if(tdObj[i].style.fontSize) {
		 var s = parseInt(tdObj[i].style.fontSize.replace("pt",""));
	  } else {
		 var s = 10;
	  }
	  if(s!=min) {
		  s -= 1;
	  }
	  
	  if (tdObj[i].className != 'noResize' ){
	  	tdObj[i].style.fontSize = s+"pt"
	  }
   }
}
