var min=14; 
var max=20; 
var min_span=11; 
var max_span=20; 
var min_h3=18; 
var max_h3=24; 
var min_h4=16; 
var max_h4=22; 
var min_h5=14; 
var max_h5=20; 
var min_h6=12; 
var max_h6=18; 
/****FONCTION POUR AUGMENTER LA TAILLE****/
function increaseFontSize() 
{ 
	//Balise p
	var p = document.getElementsByTagName('p') 
	for(i=0;i<p.length;i++) 
	{ 
		if(p[i].style.fontSize) 
		{ 
			var taillep = parseInt(p[i].style.fontSize.replace("px","")); 
		} 
		else 
		{ 
			var taillep = 14; 
		} 
		if(taillep!=max) 
		{ 
			taillep += 1; 
		} 
		p[i].style.fontSize = taillep+"px"; 
	} 
	//Balise ul
	var ul = document.getElementsByTagName('ul') 
	for(i=0;i<ul.length;i++)
	{ 
		if(ul[i].style.fontSize) 
		{ 
			var s2 = parseInt(ul[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s2 = 14; 
		} 
		if(s2!=max) 
		{ 
			s2 += 1; 
		} 
		ul[i].style.fontSize = s2+"px" 
	} 
	/*Balise a
	var a = document.getElementsByTagName('a') 
	for(i=0;i<a.length;i++) 
	{ 
		if(a[i].style.fontSize) 
		{ 
			var s3 = parseInt(a[i].style.fontSize.replace("px","")); 
		} 
		else 
		{ 
			var s3 = 14; 
		} 
		if(s3!=max) 
		{ 
			s3 += 1; 
		} 
		a[i].style.fontSize = s3+"px" 
	} */
	//Balise span
	var span = document.getElementsByTagName('span') 
	for(i=0;i<span.length;i++)
	{ 
		if(span[i].style.fontSize) 
		{ 
			var s4 = parseInt(span[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s4 = 14; 
		} 
		if(s4!=max_span) 
		{ 
			s4 += 1; 
		} 
		span[i].style.fontSize = s4+"px" 
	} 
	//Balise h3
	var h3 = document.getElementsByTagName('h3') 
	for(i=0;i<h3.length;i++)
	{ 
		if(h3[i].style.fontSize) 
		{ 
			var s5 = parseInt(h3[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s5 = 18; 
		} 
		if(s5!=max_h3) 
		{ 
			s5 += 1; 
		} 
		h3[i].style.fontSize = s5+"px" 
	} 
	//Balise h4
	var h4 = document.getElementsByTagName('h4') 
	for(i=0;i<h4.length;i++)
	{ 
		if(h4[i].style.fontSize) 
		{ 
			var s6 = parseInt(h4[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s6 = 16; 
		} 
		if(s6!=max_h4) 
		{ 
			s6 += 1; 
		} 
		h4[i].style.fontSize = s6+"px" 
	} 
	//Balise h5
	var h5 = document.getElementsByTagName('h5') 
	for(i=0;i<h5.length;i++)
	{ 
		if(h5[i].style.fontSize) 
		{ 
			var s7 = parseInt(h5[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s7 = 14; 
		} 
		if(s7!=max_h5) 
		{ 
			s7 += 1; 
		} 
		h5[i].style.fontSize = s7+"px" 
	} 
	//Balise h6
	var h6 = document.getElementsByTagName('h6') 
	for(i=0;i<h6.length;i++)
	{ 
		if(h6[i].style.fontSize) 
		{ 
			var s8 = parseInt(h6[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s8 = 12; 
		} 
		if(s8!=max_h6) 
		{ 
			s8 += 1; 
		} 
		h6[i].style.fontSize = s8+"px" 
	} 

} 

/****FONCTION POUR DIMINUEZ LA TAILLE****/
function decreaseFontSize() 
{ 
	//Balise p
	var p = document.getElementsByTagName('p'); 
	for(i=0;i<p.length;i++) 
	{ 
		if(p[i].style.fontSize) 
		{ 
			var taillep = parseInt(p[i].style.fontSize.replace("px","")); 
		} 
		else 
		{ 
			var taillep = 14; 
		} 
		if(taillep!=min) 
		{ 
			taillep -= 1; 
		} 
		p[i].style.fontSize = taillep+"px"; 
	} 
	//Balise ul
	var ul = document.getElementsByTagName('ul'); 
	for(i=0;i<ul.length;i++) 
	{ 
		if(ul[i].style.fontSize) 
		{ 
			var s2 = parseInt(ul[i].style.fontSize.replace("px","")); 
		} 
		else 
		{ 
			var s2 = 14; 
		} 
		if(s2!=min) 
		{ 
			s2 -= 1; 
		} 
		ul[i].style.fontSize = s2+"px" 
	} 
	/*Balise a
	var a = document.getElementsByTagName('a'); 
	for(i=0;i<a.length;i++) 
	{ 
		if(a[i].style.fontSize) 
		{ 
			var s3 = parseInt(a[i].style.fontSize.replace("px","")); 
		} 
		else 
		{ 
			var s3 = 12; 
		} 
		if(s3!=min) 
		{ 
			s3 -= 1; 
		} 
		a[i].style.fontSize = s3+"px" 
	} */
	//Balise span
	var span = document.getElementsByTagName('span') 
	for(i=0;i<span.length;i++)
	{ 
		if(span[i].style.fontSize) 
		{ 
			var s4 = parseInt(span[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s4 = 14; 
		} 
		if(s4!=min_span) 
		{ 
			s4 -= 1; 
		} 
		span[i].style.fontSize = s4+"px" 
	} 
	//Balise h3
	var h3 = document.getElementsByTagName('h3') 
	for(i=0;i<h3.length;i++)
	{ 
		if(h3[i].style.fontSize) 
		{ 
			var s5 = parseInt(h3[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s5 = 18; 
		} 
		if(s5!=min_h3) 
		{ 
			s5 -= 1; 
		} 
		h3[i].style.fontSize = s5+"px" 
	} 
	//Balise h4
	var h4 = document.getElementsByTagName('h4') 
	for(i=0;i<h4.length;i++)
	{ 
		if(h4[i].style.fontSize) 
		{ 
			var s6 = parseInt(h4[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s6 = 16; 
		} 
		if(s6!=min_h4) 
		{ 
			s6 -= 1; 
		} 
		h4[i].style.fontSize = s6+"px" 
	} 
	//Balise h5
	var h5 = document.getElementsByTagName('h5') 
	for(i=0;i<h5.length;i++)
	{ 
		if(h5[i].style.fontSize) 
		{ 
			var s7 = parseInt(h5[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s7 = 14; 
		} 
		if(s7!=min_h5) 
		{ 
			s7 -= 1; 
		} 
		h5[i].style.fontSize = s7+"px" 
	} 
	//Balise h6
	var h6 = document.getElementsByTagName('h6') 
	for(i=0;i<h6.length;i++)
	{ 
		if(h6[i].style.fontSize) 
		{ 
			var s8 = parseInt(h6[i].style.fontSize.replace("px","")); 
		} 
		else
		{ 
			var s8 = 12; 
		} 
		if(s8!=min_h6) 
		{ 
			s8 -= 1; 
		} 
		h6[i].style.fontSize = s8+"px" 
	} 

} 


