function verifierSiNombre(pInput,pValeur)
{
	//alert(pValeur)
	
	if (isNaN(pValeur) && trim(pValeur) != '')
	{
		//alert('in');
		
		eval('document.' + document.forms[0].name + '.' + pInput + '.value = ""');
		eval('document.' + document.forms[0].name + '.' + pInput + '.focus');
	}
}

function gestionDynamiqueBloc1Secondaire()
{
	// QUESTION 1
	if (trim(document.frmBloc1Secondaire.b1q1nbMins.value) != '' && trim(document.frmBloc1Secondaire.b1q1nbJours.value) != '')
	{
		if ( !(isNaN(document.frmBloc1Secondaire.b1q1nbMins.value)) && !(isNaN(document.frmBloc1Secondaire.b1q1nbJours.value)) )
		{
			var nbMins = parseInt(document.frmBloc1Secondaire.b1q1nbMins.value);
			var nbJours = parseInt(document.frmBloc1Secondaire.b1q1nbJours.value);
			
			var result = nbMins/nbJours;
			var result_affichage = result.toFixed(2);
			
			document.frmBloc1Secondaire.b1q1MinParJour.value = result_affichage;
			document.frmBloc1Secondaire.b1q1MinParJourHidden.value = result_affichage;
			
			if (result_affichage >= 24)
				document.frmBloc1Secondaire.b1q1Points.value = 6;
			else if (result_affichage >= 17)
				document.frmBloc1Secondaire.b1q1Points.value = 4;
			else if (result_affichage >= 11)
				document.frmBloc1Secondaire.b1q1Points.value = 2;
			else
				document.frmBloc1Secondaire.b1q1Points.value = 0;
			
		}
		else
		{
			if (isNaN(document.frmBloc1Secondaire.b1q1nbMins.value))
				document.frmBloc1Secondaire.b1q1nbMins.value = '';
			
			if (isNaN(document.frmBloc1Secondaire.b1q1nbJours.value))
				document.frmBloc1Secondaire.b1q1nbJours.value = '';
			
			document.frmBloc1Secondaire.b1q1MinParJour.value = '';
			document.frmBloc1Secondaire.b1q1MinParJourHidden.value = '';
			document.frmBloc1Secondaire.b1q1Points.value = '';
		}
	}
	else
	{	
		document.frmBloc1Secondaire.b1q1MinParJour.value = '';
		document.frmBloc1Secondaire.b1q1MinParJourHidden.value = '';
		document.frmBloc1Secondaire.b1q1Points.value = 0;
	}
	////////////
	
	
	
	
	// QUESTION 2
	if (document.frmBloc1Secondaire.b1q2_1[0].checked == true)
	{
		document.frmBloc1Secondaire.b1q2_2.disabled = false
		document.frmBloc1Secondaire.b1q2_2.className = "enabledFieldMarginTop";
	}
	else
	{
		document.frmBloc1Secondaire.b1q2_2.disabled = true
		document.frmBloc1Secondaire.b1q2_2.className = "disabledFieldMarginTop";
		document.frmBloc1Secondaire.b1q2_2.value = "";
	}
	
	
	if (isNaN(document.frmBloc1Secondaire.b1q2_2.value))
		document.frmBloc1Secondaire.b1q2_2.value = '';
	
	if (document.frmBloc1Secondaire.b1q2_1[0].checked && trim(document.frmBloc1Secondaire.b1q2_2.value) != '' && isNaN(document.frmBloc1Secondaire.b1q2_2.value) == false)
	{
		var pourcentage = 0;
			
		pourcentage = (document.frmBloc1Secondaire.b1q2_2.value * 100) / document.frmBloc1Secondaire.nbEtudTotalEcole.value;
		document.frmBloc1Secondaire.b1q2_2_pourcent.value = pourcentage.toFixed(2);
		document.frmBloc1Secondaire.b1q2_2_pourcentHidden.value = pourcentage.toFixed(2);
		
		if (pourcentage >= 31)
			document.frmBloc1Secondaire.b1q2Points.value = 6;
		else if (pourcentage >= 16 && pourcentage < 31)
			document.frmBloc1Secondaire.b1q2Points.value = 4;
		else if (pourcentage >= 5 && pourcentage < 16)
			document.frmBloc1Secondaire.b1q2Points.value = 2;
		else
			document.frmBloc1Secondaire.b1q2Points.value = 0;
	}
	else
	{
		document.frmBloc1Secondaire.b1q2_2_pourcent.value = '';
		document.frmBloc1Secondaire.b1q2Points.value = 0;
	}
	////////////
	
	
	
	// QUESTION 3
	if (document.frmBloc1Secondaire.b1q3NbActs.value >= 2)
		document.frmBloc1Secondaire.b1q3Points.value = 4;
	else if (document.frmBloc1Secondaire.b1q3NbActs.value == 1)
		document.frmBloc1Secondaire.b1q3Points.value = 2;
	else
		document.frmBloc1Secondaire.b1q3Points.value = 0;
	////////////
	
	
	
	
	// QUESTION 4
	var temp_points_q4 = 0;
	
	if (document.frmBloc1Secondaire.b1q4a[0].checked == true)
		temp_points_q4 += 2;
	
	if (document.frmBloc1Secondaire.b1q4b[0].checked == true)
		temp_points_q4 += 2;
	
	if (document.frmBloc1Secondaire.b1q4c[0].checked == true)
		temp_points_q4 += 2;
	
	document.frmBloc1Secondaire.b1q4Points.value = temp_points_q4;
	
	/*
	if (document.frmBloc1Secondaire.b1q4a[0].checked == true && document.frmBloc1Secondaire.b1q4b[0].checked == true && document.frmBloc1Secondaire.b1q4c[0].checked == true)
		document.frmBloc1Secondaire.b1q4Points.value = 6;
	else if (document.frmBloc1Secondaire.b1q4a[0].checked == true && document.frmBloc1Secondaire.b1q4b[0].checked == true && document.frmBloc1Secondaire.b1q4c[0].checked == false)
		document.frmBloc1Secondaire.b1q4Points.value = 4;
	else if (document.frmBloc1Secondaire.b1q4a[0].checked == true && document.frmBloc1Secondaire.b1q4b[0].checked == false && document.frmBloc1Secondaire.b1q4c[0].checked == false)
		document.frmBloc1Secondaire.b1q4Points.value = 2;
	else if (document.frmBloc1Secondaire.b1q4a[0].checked == true && document.frmBloc1Secondaire.b1q4b[0].checked == false && document.frmBloc1Secondaire.b1q4c[0].checked == true)
		document.frmBloc1Secondaire.b1q4Points.value = 2;
	else
		document.frmBloc1Secondaire.b1q4Points.value = 0;*/
	////////////
	
	
	
	
	// QUESTION 5
	
	if (isNaN(document.frmBloc1Secondaire.b1q5a.value))
		document.frmBloc1Secondaire.b1q5a.value = '';
	
	if (document.frmBloc1Secondaire.b1q5a.value >= 2 && document.frmBloc1Secondaire.b1q5b[0].checked == true && document.frmBloc1Secondaire.b1q5c[0].checked == true)
		document.frmBloc1Secondaire.b1q5Points.value = 6;
	
	else if (document.frmBloc1Secondaire.b1q5a.value >= 2 && document.frmBloc1Secondaire.b1q5b[0].checked == true && document.frmBloc1Secondaire.b1q5c[0].checked == false)
		document.frmBloc1Secondaire.b1q5Points.value = 4;
	
	else if (document.frmBloc1Secondaire.b1q5a.value >= 2 && document.frmBloc1Secondaire.b1q5b[0].checked == false && document.frmBloc1Secondaire.b1q5c[0].checked == false)
		document.frmBloc1Secondaire.b1q5Points.value = 2;
	
	else if (document.frmBloc1Secondaire.b1q5a.value >= 2 && document.frmBloc1Secondaire.b1q5b[0].checked == false && document.frmBloc1Secondaire.b1q5c[0].checked == true)
		document.frmBloc1Secondaire.b1q5Points.value = 2;
		
	else if (document.frmBloc1Secondaire.b1q5a.value == 1)
		document.frmBloc1Secondaire.b1q5Points.value = 2;
		
	else
		document.frmBloc1Secondaire.b1q5Points.value = 0;
	////////////
	
	
	
	
	// QUESTION 6
	if (document.frmBloc1Secondaire.b1q6a[0].checked == true && document.frmBloc1Secondaire.b1q6b[0].checked == true && document.frmBloc1Secondaire.b1q6c[0].checked == true)
		document.frmBloc1Secondaire.b1q6Points.value = 6;
		
	else if (document.frmBloc1Secondaire.b1q6a[0].checked == true && document.frmBloc1Secondaire.b1q6b[0].checked == true && document.frmBloc1Secondaire.b1q6c[0].checked == false)
		document.frmBloc1Secondaire.b1q6Points.value = 4;
		
	else if (document.frmBloc1Secondaire.b1q6a[0].checked == true && document.frmBloc1Secondaire.b1q6b[0].checked == false && document.frmBloc1Secondaire.b1q6c[0].checked == false)
		document.frmBloc1Secondaire.b1q6Points.value = 2;
		
	else if (document.frmBloc1Secondaire.b1q6a[0].checked == true && document.frmBloc1Secondaire.b1q6b[0].checked == false && document.frmBloc1Secondaire.b1q6c[0].checked == true)
		document.frmBloc1Secondaire.b1q6Points.value = 2;
		
	else
		document.frmBloc1Secondaire.b1q6Points.value = 0;
	////////////
	
	
	// QUESTION 7.1
	if (isNaN(document.frmBloc1Secondaire.b1q7_1.value))
		document.frmBloc1Secondaire.b1q7_1.value = '';
	
	if (trim(document.frmBloc1Secondaire.b1q7_1.value) != '' && isNaN(document.frmBloc1Secondaire.b1q7_1.value) == false)
	{
		var pourcentage = 0;
		
		if (document.frmBloc1Secondaire.b1q7_1.value == 0)
		{
			if (document.frmBloc1Secondaire.b1q7_1NbFillesEcole.value == 0)
			{
				pourcentage = 100;
			}
			else
			{
				pourcentage = 0;
			}
			
			document.frmBloc1Secondaire.b1q7_1Pourcentage.value = pourcentage.toFixed(2);
			document.frmBloc1Secondaire.b1q7_1PourcentageHidden.value = pourcentage.toFixed(2);
		}
		else
		{
			if (document.frmBloc1Secondaire.b1q7_1NbFillesEcole.value == 0)
			{
				pourcentage = 100;
				document.frmBloc1Secondaire.b1q7_1Pourcentage.value = pourcentage.toFixed(2);
				document.frmBloc1Secondaire.b1q7_1PourcentageHidden.value = pourcentage.toFixed(2);
			}
			else
			{
				pourcentage = (document.frmBloc1Secondaire.b1q7_1.value * 100) / document.frmBloc1Secondaire.b1q7_1NbFillesEcole.value;
				document.frmBloc1Secondaire.b1q7_1Pourcentage.value = pourcentage.toFixed(2);
				document.frmBloc1Secondaire.b1q7_1PourcentageHidden.value = pourcentage.toFixed(2);
			}
		}
		
		if (pourcentage >= 21)
			document.frmBloc1Secondaire.b1q7_1Points.value = 3;
		else if (pourcentage >= 16 && pourcentage < 21)
			document.frmBloc1Secondaire.b1q7_1Points.value = 2;
		else if (pourcentage >= 10 && pourcentage < 16)
			document.frmBloc1Secondaire.b1q7_1Points.value = 1;
		else
			document.frmBloc1Secondaire.b1q7_1Points.value = 0;
			
	}
	else
	{
		document.frmBloc1Secondaire.b1q7_1Pourcentage.value = '';
		document.frmBloc1Secondaire.b1q7_1Points.value = 0;
	}
	
	
	
	// QUESTION 7.2
	if (isNaN(document.frmBloc1Secondaire.b1q7_2.value))
		document.frmBloc1Secondaire.b1q7_2.value = '';
	
	if (trim(document.frmBloc1Secondaire.b1q7_2.value) != '' && isNaN(document.frmBloc1Secondaire.b1q7_2.value) == false)
	{
		var pourcentage = 0;
		
		if (document.frmBloc1Secondaire.b1q7_2.value == 0)
		{
			if (document.frmBloc1Secondaire.b1q7_2NbGarconsEcole.value == 0)
			{
				pourcentage = 100;
			}
			else
			{
				pourcentage = 0;
			}
			
			document.frmBloc1Secondaire.b1q7_2Pourcentage.value = pourcentage.toFixed(2);
			document.frmBloc1Secondaire.b1q7_2PourcentageHidden.value = pourcentage.toFixed(2);
		}
		else
		{
			if (document.frmBloc1Secondaire.b1q7_2NbGarconsEcole.value == 0)
			{
				pourcentage = 100;
				document.frmBloc1Secondaire.b1q7_2Pourcentage.value = pourcentage.toFixed(2);
				document.frmBloc1Secondaire.b1q7_2PourcentageHidden.value = pourcentage.toFixed(2);
			}
			else
			{
				pourcentage = (document.frmBloc1Secondaire.b1q7_2.value * 100) / document.frmBloc1Secondaire.b1q7_2NbGarconsEcole.value;
				document.frmBloc1Secondaire.b1q7_2Pourcentage.value = pourcentage.toFixed(2);
				document.frmBloc1Secondaire.b1q7_2PourcentageHidden.value = pourcentage.toFixed(2);
			}
		}
		
		
		if (pourcentage >= 21)
			document.frmBloc1Secondaire.b1q7_2Points.value = 3;
		else if (pourcentage >= 16 && pourcentage < 21)
			document.frmBloc1Secondaire.b1q7_2Points.value = 2;
		else if (pourcentage >= 10 && pourcentage < 16)
			document.frmBloc1Secondaire.b1q7_2Points.value = 1;
		else
			document.frmBloc1Secondaire.b1q7_2Points.value = 0;
	}
	else
	{
		document.frmBloc1Secondaire.b1q7_2Pourcentage.value = '';
		document.frmBloc1Secondaire.b1q7_2Points.value = 0;
	}
	
	
	
	// QUESTION 7.3
	
	if (isNaN(document.frmBloc1Secondaire.b1q7_3a.value))
		document.frmBloc1Secondaire.b1q7_3a.value = '';
	
	
	if ((document.frmBloc1Secondaire.b1q7_3a.value == 3 || document.frmBloc1Secondaire.b1q7_3a.value == 3) && document.frmBloc1Secondaire.b1q7_3b[0].checked == true)
		document.frmBloc1Secondaire.b1q7_3Points.value = 1;
		
	else if ((document.frmBloc1Secondaire.b1q7_3a.value == 4) && document.frmBloc1Secondaire.b1q7_3b[0].checked == true)
		document.frmBloc1Secondaire.b1q7_3Points.value = 2;
	
	else if ((document.frmBloc1Secondaire.b1q7_3a.value >= 5) && document.frmBloc1Secondaire.b1q7_3b[0].checked == true)
		document.frmBloc1Secondaire.b1q7_3Points.value = 3;
	
	else if ((document.frmBloc1Secondaire.b1q7_3a.value >= 3) && document.frmBloc1Secondaire.b1q7_3b[0].checked == false)
		document.frmBloc1Secondaire.b1q7_3Points.value = 1;
	
	else
		document.frmBloc1Secondaire.b1q7_3Points.value = 0;
	////////////
	
	
	
	
	// QUESTION 7.4
	if (document.frmBloc1Secondaire.b1q7_4a[0].checked == true && document.frmBloc1Secondaire.b1q7_4b[0].checked == true && document.frmBloc1Secondaire.b1q7_4c[0].checked == true)
		document.frmBloc1Secondaire.b1q7_4Points.value = 3;
		
	else if (document.frmBloc1Secondaire.b1q7_4a[0].checked == true && document.frmBloc1Secondaire.b1q7_4b[0].checked == true && document.frmBloc1Secondaire.b1q7_4c[0].checked == false)
		document.frmBloc1Secondaire.b1q7_4Points.value = 2;
		
	else if (document.frmBloc1Secondaire.b1q7_4a[0].checked == true && document.frmBloc1Secondaire.b1q7_4b[0].checked == false && document.frmBloc1Secondaire.b1q7_4c[0].checked == false)
		document.frmBloc1Secondaire.b1q7_4Points.value = 1;
		
	else if (document.frmBloc1Secondaire.b1q7_4a[0].checked == true && document.frmBloc1Secondaire.b1q7_4b[0].checked == false && document.frmBloc1Secondaire.b1q7_4c[0].checked == true)
		document.frmBloc1Secondaire.b1q7_4Points.value = 1;
		
	else
		document.frmBloc1Secondaire.b1q7_4Points.value = 0;
	////////////
	
	
	
	
	// QUESTION 8.1
	if (isNaN(document.frmBloc1Secondaire.b1q8_1.value))
		document.frmBloc1Secondaire.b1q8_1.value = '';
	
	if (trim(document.frmBloc1Secondaire.b1q8_1.value) != '' && isNaN(document.frmBloc1Secondaire.b1q8_1.value) == false)
	{
		var pourcentage = 0;
		
		pourcentage = (document.frmBloc1Secondaire.b1q8_1.value * 100) / document.frmBloc1Secondaire.b1q8_1NbFillesEcole.value;
		document.frmBloc1Secondaire.b1q8_1Pourcentage.value = pourcentage.toFixed(2);
		document.frmBloc1Secondaire.b1q8_1PourcentageHidden.value = pourcentage.toFixed(2);
		
		if (pourcentage >= 21)
			document.frmBloc1Secondaire.b1q8_1Points.value = 3;
		else if (pourcentage >= 16 && pourcentage < 21)
			document.frmBloc1Secondaire.b1q8_1Points.value = 2;
		else if (pourcentage >= 10 && pourcentage < 16)
			document.frmBloc1Secondaire.b1q8_1Points.value = 1;
		else
			document.frmBloc1Secondaire.b1q8_1Points.value = 0;
			
	}
	else
	{
		document.frmBloc1Secondaire.b1q8_1Pourcentage.value = '';
		document.frmBloc1Secondaire.b1q8_1Points.value = 0;
	}
	
	
	// QUESTION 8.2
	if (isNaN(document.frmBloc1Secondaire.b1q8_2.value))
		document.frmBloc1Secondaire.b1q8_2.value = '';
	
	if (trim(document.frmBloc1Secondaire.b1q8_2.value) != '' && isNaN(document.frmBloc1Secondaire.b1q8_2.value) == false)
	{
		var pourcentage = 0;
		
		pourcentage = (document.frmBloc1Secondaire.b1q8_2.value * 100) / document.frmBloc1Secondaire.b1q8_2NbGarconsEcole.value;
		document.frmBloc1Secondaire.b1q8_2Pourcentage.value = pourcentage.toFixed(2);
		document.frmBloc1Secondaire.b1q8_2PourcentageHidden.value = pourcentage.toFixed(2);
		
		if (pourcentage >= 21)
			document.frmBloc1Secondaire.b1q8_2Points.value = 3;
		else if (pourcentage >= 16 && pourcentage < 21)
			document.frmBloc1Secondaire.b1q8_2Points.value = 2;
		else if (pourcentage >= 10 && pourcentage < 16)
			document.frmBloc1Secondaire.b1q8_2Points.value = 1;
		else
			document.frmBloc1Secondaire.b1q8_2Points.value = 0;
	}
	else
	{
		document.frmBloc1Secondaire.b1q8_2Pourcentage.value = '';
		document.frmBloc1Secondaire.b1q8_2Points.value = 0;
	}
	
	
	
	
	// QUESTION 8.3
	if (isNaN(document.frmBloc1Secondaire.b1q8_3a.value))
		document.frmBloc1Secondaire.b1q8_3a.value = '';
	
	
	if ((document.frmBloc1Secondaire.b1q8_3a.value == 2 || document.frmBloc1Secondaire.b1q8_3a.value == 3) && document.frmBloc1Secondaire.b1q8_3b[0].checked == true)
		document.frmBloc1Secondaire.b1q8_3Points.value = 1;
		
	else if ((document.frmBloc1Secondaire.b1q8_3a.value == 4) && document.frmBloc1Secondaire.b1q8_3b[0].checked == true)
		document.frmBloc1Secondaire.b1q8_3Points.value = 2;
	
	else if ((document.frmBloc1Secondaire.b1q8_3a.value >= 5) && document.frmBloc1Secondaire.b1q8_3b[0].checked == true)
		document.frmBloc1Secondaire.b1q8_3Points.value = 3;
	
	else if ((document.frmBloc1Secondaire.b1q8_3a.value >= 2) && document.frmBloc1Secondaire.b1q8_3b[0].checked == false)
		document.frmBloc1Secondaire.b1q8_3Points.value = 1;
	
	else
		document.frmBloc1Secondaire.b1q8_3Points.value = 0;
	////////////
	
	
	
	
	// CALCULER TOTAL DES POINTS
	if (trim(document.frmBloc1Secondaire.b1q1Points.value) != '' && trim(document.frmBloc1Secondaire.b1q2Points.value) != '' && trim(document.frmBloc1Secondaire.b1q3Points.value) != ''  && trim(document.frmBloc1Secondaire.b1q4Points.value) != '' && trim(document.frmBloc1Secondaire.b1q5Points.value) != '' && trim(document.frmBloc1Secondaire.b1q6Points.value) != ''&& trim(document.frmBloc1Secondaire.b1q7_1Points.value) != '' && trim(document.frmBloc1Secondaire.b1q7_2Points.value) != '' && trim(document.frmBloc1Secondaire.b1q7_3Points.value) != '' &&  trim(document.frmBloc1Secondaire.b1q7_4Points.value) != '' && trim(document.frmBloc1Secondaire.b1q7_4Points.value) != '' && trim(document.frmBloc1Secondaire.b1q8_1Points.value) != '' && trim(document.frmBloc1Secondaire.b1q8_2Points.value) != '' && trim(document.frmBloc1Secondaire.b1q8_3Points.value) != '')
	{
		//alert('in');
		
		var totalPointsBloc = 0;
		
		var q1Points = parseInt(document.frmBloc1Secondaire.b1q1Points.value);
		var q2Points = parseInt(document.frmBloc1Secondaire.b1q2Points.value);
		var q3Points = parseInt(document.frmBloc1Secondaire.b1q3Points.value);
		var q4Points = parseInt(document.frmBloc1Secondaire.b1q4Points.value);
		var q5Points = parseInt(document.frmBloc1Secondaire.b1q5Points.value);
		var q6Points = parseInt(document.frmBloc1Secondaire.b1q6Points.value);
		var q7_1Points = parseInt(document.frmBloc1Secondaire.b1q7_1Points.value);
		var q7_2Points = parseInt(document.frmBloc1Secondaire.b1q7_2Points.value);
		var q7_3Points = parseInt(document.frmBloc1Secondaire.b1q7_3Points.value);
		var q7_4Points = parseInt(document.frmBloc1Secondaire.b1q7_4Points.value);
		var q8_1Points = parseInt(document.frmBloc1Secondaire.b1q8_1Points.value);
		var q8_2Points = parseInt(document.frmBloc1Secondaire.b1q8_2Points.value);
		var q8_3Points = parseInt(document.frmBloc1Secondaire.b1q8_3Points.value);
		
		totalPointsBloc = q1Points + q2Points + q3Points + q4Points + q5Points + q6Points + q7_1Points + q7_2Points + q7_3Points + q7_4Points + q8_1Points + q8_2Points + q8_3Points;
		
		document.frmBloc1Secondaire.b1totalPoints.value = parseInt(totalPointsBloc);
	}
	else
	{
		//alert('not in');
	}
	////////////
}



// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################




function gestionDynamiqueBloc2Secondaire()
{
	// QUESTION 1
	var compteurQ1 = 0;
	
	if (document.frmBloc2Secondaire.b2q1_1.checked == true)
		compteurQ1 ++;
	
	if (document.frmBloc2Secondaire.b2q1_2.checked == true)
		compteurQ1 ++;
	
	if (document.frmBloc2Secondaire.b2q1_3.checked == true)
		compteurQ1 ++;
	
	if (document.frmBloc2Secondaire.b2q1_4.checked == true)
		compteurQ1 ++;
	
	if (document.frmBloc2Secondaire.b2q1_5.checked == true)
		compteurQ1 ++;
		
	if (document.frmBloc2Secondaire.b2q1_6.checked == true)
		compteurQ1 ++;
		
	if (document.frmBloc2Secondaire.b2q1_7.checked == true)
		compteurQ1 ++;
	
	if (document.frmBloc2Secondaire.b2q1_8.checked == true)
		compteurQ1 ++;
	
	if (document.frmBloc2Secondaire.b2q1_9.checked == true)
		compteurQ1 ++;
	
	
	if (compteurQ1 < 3)
		document.frmBloc2Secondaire.b2q1Points.value = 0;
	if (compteurQ1 >= 3)
		document.frmBloc2Secondaire.b2q1Points.value = 4;
	if (compteurQ1 >= 4)
		document.frmBloc2Secondaire.b2q1Points.value = 6;
	if (compteurQ1 >= 7)
		document.frmBloc2Secondaire.b2q1Points.value = 8;
	////////////
	
	
	
	
	// QUESTION 2
	var compteurQ2 = 0;
	
	if (document.frmBloc2Secondaire.b2q2_1.checked == true)
		compteurQ2 ++;
	
	if (document.frmBloc2Secondaire.b2q2_2.checked == true)
		compteurQ2 ++;
	
	if (document.frmBloc2Secondaire.b2q2_3.checked == true)
		compteurQ2 ++;
	
	if (document.frmBloc2Secondaire.b2q2_4.checked == true)
		compteurQ2 ++;
	
	if (document.frmBloc2Secondaire.b2q2_5.checked == true)
		compteurQ2 ++;
		
	if (document.frmBloc2Secondaire.b2q2_6.checked == true)
		compteurQ2 ++;
		
	if (document.frmBloc2Secondaire.b2q2_7.checked == true)
		compteurQ2 ++;
	
	
	if (compteurQ2 < 3)
		document.frmBloc2Secondaire.b2q2Points.value = 0;
	if (compteurQ2 >= 3)
		document.frmBloc2Secondaire.b2q2Points.value = 4;
	if (compteurQ2 >= 4)
		document.frmBloc2Secondaire.b2q2Points.value = 6;
	if (compteurQ2 >= 6)
		document.frmBloc2Secondaire.b2q2Points.value = 8;
	////////////
	
	
	
	
	
	// QUESTION 3
	if (document.frmBloc2Secondaire.b2q3a[0].checked == true)
	{
		document.frmBloc2Secondaire.b2q3a2.disabled = false
		document.frmBloc2Secondaire.b2q3a2.className = "enabledFieldMarginTop";
	}
	else
	{
		document.frmBloc2Secondaire.b2q3a2.disabled = true
		document.frmBloc2Secondaire.b2q3a2.className = "disabledFieldMarginTop";
		document.frmBloc2Secondaire.b2q3a2.value = "";
	}
	
	
	
	if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == true && document.frmBloc2Secondaire.b2q3c[0].checked == true && document.frmBloc2Secondaire.b2q3d[0].checked == true)
		document.frmBloc2Secondaire.b2q3Points.value = 8;
		
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == true && document.frmBloc2Secondaire.b2q3c[0].checked == true && document.frmBloc2Secondaire.b2q3d[0].checked == false)
		document.frmBloc2Secondaire.b2q3Points.value = 6;
		
		
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == true && document.frmBloc2Secondaire.b2q3c[0].checked == false && document.frmBloc2Secondaire.b2q3d[0].checked == false)
		document.frmBloc2Secondaire.b2q3Points.value = 4;
	
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == false && document.frmBloc2Secondaire.b2q3c[0].checked == false && document.frmBloc2Secondaire.b2q3d[0].checked == false)
		document.frmBloc2Secondaire.b2q3Points.value = 4;
	
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == false && document.frmBloc2Secondaire.b2q3c[0].checked == true && document.frmBloc2Secondaire.b2q3d[0].checked == false)
		document.frmBloc2Secondaire.b2q3Points.value = 4;
	
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == true && document.frmBloc2Secondaire.b2q3c[0].checked == true && document.frmBloc2Secondaire.b2q3d[0].checked == false)
		document.frmBloc2Secondaire.b2q3Points.value = 4;
		
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == false && document.frmBloc2Secondaire.b2q3c[0].checked == true && document.frmBloc2Secondaire.b2q3d[0].checked == true)
		document.frmBloc2Secondaire.b2q3Points.value = 4;
	
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == false && document.frmBloc2Secondaire.b2q3c[0].checked == true && document.frmBloc2Secondaire.b2q3d[0].checked == false)
		document.frmBloc2Secondaire.b2q3Points.value = 4;
		
	else if (document.frmBloc2Secondaire.b2q3a[0].checked == true && document.frmBloc2Secondaire.b2q3a2.value >= 1 && document.frmBloc2Secondaire.b2q3b[0].checked == false && document.frmBloc2Secondaire.b2q3c[0].checked == false && document.frmBloc2Secondaire.b2q3d[0].checked == true)
		document.frmBloc2Secondaire.b2q3Points.value = 4;
		
	else
		document.frmBloc2Secondaire.b2q3Points.value = 0;
	////////////
	
	
	
	
	// QUESTION 4
	if (document.frmBloc2Secondaire.b2q4a[0].checked == true && document.frmBloc2Secondaire.b2q4b[0].checked == true && document.frmBloc2Secondaire.b2q4c[0].checked == true)
		document.frmBloc2Secondaire.b2q4Points.value = 8;
		
	else if (document.frmBloc2Secondaire.b2q4a[0].checked == true && document.frmBloc2Secondaire.b2q4b[0].checked == true && document.frmBloc2Secondaire.b2q4c[0].checked == false)
		document.frmBloc2Secondaire.b2q4Points.value = 6;
		
	else if (document.frmBloc2Secondaire.b2q4a[0].checked == true && document.frmBloc2Secondaire.b2q4b[0].checked == false && document.frmBloc2Secondaire.b2q4c[0].checked == false)
		document.frmBloc2Secondaire.b2q4Points.value = 4;
		
	else if (document.frmBloc2Secondaire.b2q4a[0].checked == true && document.frmBloc2Secondaire.b2q4b[0].checked == false && document.frmBloc2Secondaire.b2q4c[0].checked == true)
		document.frmBloc2Secondaire.b2q4Points.value = 4;
		
	else
		document.frmBloc2Secondaire.b2q4Points.value = 0;
	////////////
	
	
	var totalPointsBloc = 0;
		
	var q1Points = parseInt(document.frmBloc2Secondaire.b2q1Points.value);
	var q2Points = parseInt(document.frmBloc2Secondaire.b2q2Points.value);
	var q3Points = parseInt(document.frmBloc2Secondaire.b2q3Points.value);
	var q4Points = parseInt(document.frmBloc2Secondaire.b2q4Points.value);
	
	totalPointsBloc = q1Points + q2Points + q3Points + q4Points;
	
	document.frmBloc2Secondaire.b2totalPoints.value = parseInt(totalPointsBloc);
}




// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################
// ###################################################################################################################################








function gestionDynamiqueBloc3Secondaire()
{
	// QUESTION 1
	if (document.frmBloc3Secondaire.b3q1a[0].checked == true && document.frmBloc3Secondaire.b3q1b[0].checked == true && document.frmBloc3Secondaire.b3q1c[0].checked == true)
		document.frmBloc3Secondaire.b3q1Points.value = 8;
		
	else if (document.frmBloc3Secondaire.b3q1a[0].checked == true && document.frmBloc3Secondaire.b3q1b[0].checked == true && document.frmBloc3Secondaire.b3q1c[0].checked == false)
		document.frmBloc3Secondaire.b3q1Points.value = 6;
		
	else if (document.frmBloc3Secondaire.b3q1a[0].checked == true && document.frmBloc3Secondaire.b3q1b[0].checked == false && document.frmBloc3Secondaire.b3q1c[0].checked == false)
		document.frmBloc3Secondaire.b3q1Points.value = 4;
		
	else if (document.frmBloc3Secondaire.b3q1a[0].checked == true && document.frmBloc3Secondaire.b3q1b[0].checked == false && document.frmBloc3Secondaire.b3q1c[0].checked == true)
		document.frmBloc3Secondaire.b3q1Points.value = 4;
		
	else
		document.frmBloc3Secondaire.b3q1Points.value = 0;
	////////////
	
	
	// QUESTION 2
	if (document.frmBloc3Secondaire.b3q2a[0].checked == true && document.frmBloc3Secondaire.b3q2b[0].checked == true && document.frmBloc3Secondaire.b3q2c[0].checked == true)
		document.frmBloc3Secondaire.b3q2Points.value = 8;
		
	else if (document.frmBloc3Secondaire.b3q2a[0].checked == true && document.frmBloc3Secondaire.b3q2b[0].checked == true && document.frmBloc3Secondaire.b3q2c[0].checked == false)
		document.frmBloc3Secondaire.b3q2Points.value = 6;
		
	else if (document.frmBloc3Secondaire.b3q2a[0].checked == true && document.frmBloc3Secondaire.b3q2b[0].checked == false && document.frmBloc3Secondaire.b3q2c[0].checked == false)
		document.frmBloc3Secondaire.b3q2Points.value = 4;
		
	else if (document.frmBloc3Secondaire.b3q2a[0].checked == true && document.frmBloc3Secondaire.b3q2b[0].checked == false && document.frmBloc3Secondaire.b3q2c[0].checked == true)
		document.frmBloc3Secondaire.b3q2Points.value = 4;
		
	else
		document.frmBloc3Secondaire.b3q2Points.value = 0;
	////////////
	
	
	// QUESTION 3
	if (document.frmBloc3Secondaire.b3q3a[0].checked == true && document.frmBloc3Secondaire.b3q3b[0].checked == true && document.frmBloc3Secondaire.b3q3c[0].checked == true)
		document.frmBloc3Secondaire.b3q3Points.value = 8;
		
	else if (document.frmBloc3Secondaire.b3q3a[0].checked == true && document.frmBloc3Secondaire.b3q3b[0].checked == true && document.frmBloc3Secondaire.b3q3c[0].checked == false)
		document.frmBloc3Secondaire.b3q3Points.value = 6;
		
	else if (document.frmBloc3Secondaire.b3q3a[0].checked == true && document.frmBloc3Secondaire.b3q3b[0].checked == false && document.frmBloc3Secondaire.b3q3c[0].checked == false)
		document.frmBloc3Secondaire.b3q3Points.value = 4;
		
	else if (document.frmBloc3Secondaire.b3q3a[0].checked == true && document.frmBloc3Secondaire.b3q3b[0].checked == false && document.frmBloc3Secondaire.b3q3c[0].checked == true)
		document.frmBloc3Secondaire.b3q3Points.value = 4;
		
	else
		document.frmBloc3Secondaire.b3q3Points.value = 0;
	////////////
	
	
	var totalPointsBloc = 0;
		
	var q1Points = parseInt(document.frmBloc3Secondaire.b3q1Points.value);
	var q2Points = parseInt(document.frmBloc3Secondaire.b3q2Points.value);
	var q3Points = parseInt(document.frmBloc3Secondaire.b3q3Points.value);
	
	totalPointsBloc = q1Points + q2Points + q3Points;
	
	document.frmBloc3Secondaire.b3totalPoints.value = parseInt(totalPointsBloc);
}







function gestionDynamiqueBloc4Secondaire()
{
	// QUESTION 1
	if (document.frmBloc4Secondaire.b4q1a[0].checked == true && document.frmBloc4Secondaire.b4q1b[0].checked == true)
		document.frmBloc4Secondaire.b4q1Points.value = 8;
		
	else if (document.frmBloc4Secondaire.b4q1a[0].checked == true && document.frmBloc4Secondaire.b4q1b[0].checked == false)
		document.frmBloc4Secondaire.b4q1Points.value = 6;
		
	else
		document.frmBloc4Secondaire.b4q1Points.value = 0;
	////////////
	
	
	var totalPointsBloc = 0;
		
	var q1Points = parseInt(document.frmBloc4Secondaire.b4q1Points.value);
	
	//totalPointsBloc = q1Points + q2Points + q3Points + q4Points;
	
	document.frmBloc4Secondaire.b4totalPoints.value = parseInt(q1Points);
}












