var min=8;
var max=18;
function increaseFontSize() {
   var p = document.getElementById('corps').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 em = document.getElementById('corps').getElementsByTagName('em');
	for(j=0;j<em.length;j++) {
		if(em[j].style.fontSize) {
			var s = parseInt(em[j].style.fontSize.replace("px",""));
		} else {
			var s = 12;
		}
		if(s!=max) {
			s += 1;
		}
		em[j].style.fontSize = s+"px"
	}
	var strong = document.getElementById('corps').getElementsByTagName('strong');
	for(i=0;i<strong.length;i++) {
		if(strong[i].style.fontSize) {
			var s = parseInt(strong[i].style.fontSize.replace("px",""));
		} else {
			var s = 12;
		}
		if(s!=min) {
			s += 1;
		}
		strong[i].style.fontSize = s+"px"
	}
	var a = document.getElementById('corps').getElementsByTagName('a');
	for(i=0;i<a.length;i++) {
		if(a[i].style.fontSize) {
			var s = parseInt(a[i].style.fontSize.replace("px",""));
		} else {
			var s = 12;
		}
		if(s!=min) {
			s += 1;
		}
		a[i].style.fontSize = s+"px"
	}
	var div = document.getElementById('contentArticle').getElementsByTagName('div');
   i = 0;
   var flag = true;
   while(flag) {
   	if ( div[i].getAttribute('class') == 'infoArticle' || div[i].getAttribute('className') == 'infoArticle') {
			var h1 = div[i].getElementsByTagName('h1');
			flag = false;
   	}
   	i++;	}
	if(h1[0].style.fontSize) {
		var s = parseInt(h1[0].style.fontSize.replace("px",""));
	} else {
		var s = 15;
	}
	if(s!=min) {
		s += 1;
	}
	h1[0].style.fontSize = s+"px"
}
function decreaseFontSize() {
   
   var p = document.getElementById('corps').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 em = document.getElementById('corps').getElementsByTagName('em');
	for(i=0;i<em.length;i++) {
		if(em[i].style.fontSize) {
			var s = parseInt(em[i].style.fontSize.replace("px",""));
		} else {
			var s = 12;
		}
		if(s!=min) {
			s -= 1;
		}
		em[i].style.fontSize = s+"px"
	}
	var strong = document.getElementById('corps').getElementsByTagName('strong');
	for(i=0;i<strong.length;i++) {
		if(strong[i].style.fontSize) {
			var s = parseInt(strong[i].style.fontSize.replace("px",""));
		} else {
			var s = 12;
		}
		if(s!=min) {
			s -= 1;
		}
		strong[i].style.fontSize = s+"px"
	}
	var a = document.getElementById('corps').getElementsByTagName('a');
	for(i=0;i<a.length;i++) {
		if(a[i].style.fontSize) {
			var s = parseInt(a[i].style.fontSize.replace("px",""));
		} else {
			var s = 12;
		}
		if(s!=min) {
			s -= 1;
		}
		a[i].style.fontSize = s+"px"
	}	
	
   var div = document.getElementById('contentArticle').getElementsByTagName('div');
   i = 0;
   var flag = true;
   while(flag) {
   	if ( div[i].getAttribute('class') == 'infoArticle' || div[i].getAttribute('className') == 'infoArticle') {
			var h1 = div[i].getElementsByTagName('h1');
			flag = false;
   	}
   	i++;	}
	if(h1[0].style.fontSize) {
		var s = parseInt(h1[0].style.fontSize.replace("px",""));
	} else {
		var s = 15;
	}
	if(s!=min) {
		s -= 1;
	}
	h1[0].style.fontSize = s+"px"
}