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 gestionDynamiqueBloc1Primaire()
{
	// QUESTION 1
	if (trim(document.frmBloc1Primaire.b1q1nbMins.value) != '' && trim(document.frmBloc1Primaire.b1q1nbJours.value) != '')
	{
		if ( !(isNaN(document.frmBloc1Primaire.b1q1nbMins.value)) && !(isNaN(document.frmBloc1Primaire.b1q1nbJours.value)) )
		{
			var nbMins = parseInt(document.frmBloc1Primaire.b1q1nbMins.value);
			var nbJours = parseInt(document.frmBloc1Primaire.b1q1nbJours.value);
			
			var result = nbMins/nbJours;
			var result_affichage = result.toFixed(2);
			
			document.frmBloc1Primaire.b1q1MinParJour.value = result_affichage;
			document.frmBloc1Primaire.b1q1MinParJourHidden.value = result_affichage;
			
			if (result_affichage >= 24)
				document.frmBloc1Primaire.b1q1Points.value = 6;
			else if (result_affichage >= 17)
				document.frmBloc1Primaire.b1q1Points.value = 4;
			else if (result_affichage >= 11)
				document.frmBloc1Primaire.b1q1Points.value = 2;
			else
				document.frmBloc1Primaire.b1q1Points.value = 0;
			
		}
		else
		{
			if (isNaN(document.frmBloc1Primaire.b1q1nbMins.value))
				document.frmBloc1Primaire.b1q1nbMins.value = '';
			
			if (isNaN(document.frmBloc1Primaire.b1q1nbJours.value))
				document.frmBloc1Primaire.b1q1nbJours.value = '';
			
			document.frmBloc1Primaire.b1q1MinParJour.value = '';
			document.frmBloc1Primaire.b1q1MinParJourHidden.value = '';
			document.frmBloc1Primaire.b1q1Points.value = '';
		}
	}
	else
	{	
		document.frmBloc1Primaire.b1q1MinParJour.value = '';
		document.frmBloc1Primaire.b1q1MinParJourHidden.value = '';
		document.frmBloc1Primaire.b1q1Points.value = 0;
	}
	////////////
	
	
	
	
	// QUESTION 2
	if (document.frmBloc1Primaire.b1q2bAnim[0].checked == true)
	{
		document.frmBloc1Primaire.b1q2bNbMinsSem.disabled = false
		document.frmBloc1Primaire.b1q2bNbMinsSem.className = "enabledFieldMarginTop";
		//document.frmBloc1Primaire.b1q2bNbMinsSem.value = "";
	}
	else
	{
		document.frmBloc1Primaire.b1q2bNbMinsSem.disabled = true
		document.frmBloc1Primaire.b1q2bNbMinsSem.className = "disabledFieldMarginTop";
		document.frmBloc1Primaire.b1q2bNbMinsSem.value = "";
	}
	
	
	if (isNaN(document.frmBloc1Primaire.b1q2aMinsRecre.value))
		document.frmBloc1Primaire.b1q2aMinsRecre.value = '';
	
	if (isNaN(document.frmBloc1Primaire.b1q2bNbMinsSem.value))
			document.frmBloc1Primaire.b1q2bNbMinsSem.value = '';
	
	
	if (document.frmBloc1Primaire.b1q2aMinsRecre.value >= 120 && document.frmBloc1Primaire.b1q2bAnim[0].checked == true && document.frmBloc1Primaire.b1q2bNbMinsSem.value >= 60 && document.frmBloc1Primaire.b1q2cAnimJeunes[0].checked == true)
	{
		document.frmBloc1Primaire.b1q2Points.value = 6;
	}
	else if (document.frmBloc1Primaire.b1q2aMinsRecre.value >= 120 && document.frmBloc1Primaire.b1q2bAnim[0].checked == true && document.frmBloc1Primaire.b1q2bNbMinsSem.value >= 60 && document.frmBloc1Primaire.b1q2cAnimJeunes[0].checked == false)
	{
		document.frmBloc1Primaire.b1q2Points.value = 4;
	}
	else if (document.frmBloc1Primaire.b1q2aMinsRecre.value >= 120 && document.frmBloc1Primaire.b1q2bAnim[0].checked == true && document.frmBloc1Primaire.b1q2bNbMinsSem.value < 60 && document.frmBloc1Primaire.b1q2cAnimJeunes[0].checked == false)
	{
		document.frmBloc1Primaire.b1q2Points.value = 2;
	}
	else if (document.frmBloc1Primaire.b1q2aMinsRecre.value >= 120 && document.frmBloc1Primaire.b1q2bAnim[0].checked == true && document.frmBloc1Primaire.b1q2bNbMinsSem.value < 60 && document.frmBloc1Primaire.b1q2cAnimJeunes[0].checked == true)
	{
		document.frmBloc1Primaire.b1q2Points.value = 2;
	}
	else if (document.frmBloc1Primaire.b1q2aMinsRecre.value >= 120 && document.frmBloc1Primaire.b1q2bAnim[0].checked == false && document.frmBloc1Primaire.b1q2cAnimJeunes[0].checked == true)
	{
		document.frmBloc1Primaire.b1q2Points.value = 2;
	}
	else if (document.frmBloc1Primaire.b1q2aMinsRecre.value >= 120 && document.frmBloc1Primaire.b1q2bAnim[0].checked == false && document.frmBloc1Primaire.b1q2cAnimJeunes[0].checked == false)
	{
		document.frmBloc1Primaire.b1q2Points.value = 2;
	}
	else
	{	
		document.frmBloc1Primaire.b1q2Points.value = 0;
	}
	////////////
	
	
	
	// QUESTION 3
	if (document.frmBloc1Primaire.b1q3NbActs.value >= 2)
		document.frmBloc1Primaire.b1q3Points.value = 4;
	else if (document.frmBloc1Primaire.b1q3NbActs.value == 1)
		document.frmBloc1Primaire.b1q3Points.value = 2;
	else
		document.frmBloc1Primaire.b1q3Points.value = 0;
	////////////
	
	
	
	
	// QUESTION 4
	var temp_points_q4 = 0;
	
	if (document.frmBloc1Primaire.b1q4a[0].checked == true)
		temp_points_q4 += 2;
	
	if (document.frmBloc1Primaire.b1q4b[0].checked == true)
		temp_points_q4 += 2;
	
	if (document.frmBloc1Primaire.b1q4c[0].checked == true)
		temp_points_q4 += 2;
	
	document.frmBloc1Primaire.b1q4Points.value = temp_points_q4;
	/*
	if (document.frmBloc1Primaire.b1q4a[0].checked == true && document.frmBloc1Primaire.b1q4b[0].checked == true && document.frmBloc1Primaire.b1q4c[0].checked == true)
		document.frmBloc1Primaire.b1q4Points.value = 6;
	else if (document.frmBloc1Primaire.b1q4a[0].checked == true && document.frmBloc1Primaire.b1q4b[0].checked == true && document.frmBloc1Primaire.b1q4c[0].checked == false)
		document.frmBloc1Primaire.b1q4Points.value = 4;
	else if (document.frmBloc1Primaire.b1q4a[0].checked == true && document.frmBloc1Primaire.b1q4b[0].checked == false && document.frmBloc1Primaire.b1q4c[0].checked == false)
		document.frmBloc1Primaire.b1q4Points.value = 2;
	else if (document.frmBloc1Primaire.b1q4a[0].checked == true && document.frmBloc1Primaire.b1q4b[0].checked == false && document.frmBloc1Primaire.b1q4c[0].checked == true)
		document.frmBloc1Primaire.b1q4Points.value = 2;
	else
		document.frmBloc1Primaire.b1q4Points.value = 0;*/
	////////////
	
	
	
	
	// QUESTION 5
	
	if (isNaN(document.frmBloc1Primaire.b1q5a.value))
		document.frmBloc1Primaire.b1q5a.value = '';
	
	if (document.frmBloc1Primaire.b1q5a.value >= 2 && document.frmBloc1Primaire.b1q5b[0].checked == true && document.frmBloc1Primaire.b1q5c[0].checked == true)
		document.frmBloc1Primaire.b1q5Points.value = 6;
	
	else if (document.frmBloc1Primaire.b1q5a.value >= 2 && document.frmBloc1Primaire.b1q5b[0].checked == true && document.frmBloc1Primaire.b1q5c[0].checked == false)
		document.frmBloc1Primaire.b1q5Points.value = 4;
	
	else if (document.frmBloc1Primaire.b1q5a.value >= 2 && document.frmBloc1Primaire.b1q5b[0].checked == false && document.frmBloc1Primaire.b1q5c[0].checked == false)
		document.frmBloc1Primaire.b1q5Points.value = 2;
	
	else if (document.frmBloc1Primaire.b1q5a.value >= 2 && document.frmBloc1Primaire.b1q5b[0].checked == false && document.frmBloc1Primaire.b1q5c[0].checked == true)
		document.frmBloc1Primaire.b1q5Points.value = 2;
	
	else if (document.frmBloc1Primaire.b1q5a.value == 1)
		document.frmBloc1Primaire.b1q5Points.value = 2;
	
	else
		document.frmBloc1Primaire.b1q5Points.value = 0;
	////////////
	
	
	
	
	// QUESTION 6
	if (isNaN(document.frmBloc1Primaire.b1q6a.value))
		document.frmBloc1Primaire.b1q6a.value = '';
	
	if (document.frmBloc1Primaire.b1q6[0].checked == true)
	{
		if (document.frmBloc1Primaire.b1q6a.value >= 30 && document.frmBloc1Primaire.b1q6b[0].checked == true && document.frmBloc1Primaire.b1q6c[0].checked == true)
			document.frmBloc1Primaire.b1q6Points.value = 6;
		else if (document.frmBloc1Primaire.b1q6a.value >= 30 && document.frmBloc1Primaire.b1q6b[0].checked == true && document.frmBloc1Primaire.b1q6c[0].checked == false)
			document.frmBloc1Primaire.b1q6Points.value = 4;
		else if (document.frmBloc1Primaire.b1q6a.value >= 30 && document.frmBloc1Primaire.b1q6b[0].checked == false && document.frmBloc1Primaire.b1q6c[0].checked == false)
			document.frmBloc1Primaire.b1q6Points.value = 2;
		else if (document.frmBloc1Primaire.b1q6a.value >= 30 && document.frmBloc1Primaire.b1q6b[0].checked == false && document.frmBloc1Primaire.b1q6c[0].checked == true)
			document.frmBloc1Primaire.b1q6Points.value = 2;
		else
			document.frmBloc1Primaire.b1q6Points.value = 0;
	}
	else
	{
		if (document.frmBloc1Primaire.b1q6a.value >= 15 && document.frmBloc1Primaire.b1q6b[0].checked == true && document.frmBloc1Primaire.b1q6c[0].checked == true)
			document.frmBloc1Primaire.b1q6Points.value = 6;
		else if (document.frmBloc1Primaire.b1q6a.value >= 15 && document.frmBloc1Primaire.b1q6b[0].checked == true && document.frmBloc1Primaire.b1q6c[0].checked == false)
			document.frmBloc1Primaire.b1q6Points.value = 4;
		else if (document.frmBloc1Primaire.b1q6a.value >= 15 && document.frmBloc1Primaire.b1q6b[0].checked == false && document.frmBloc1Primaire.b1q6c[0].checked == false)
			document.frmBloc1Primaire.b1q6Points.value = 2;
		else if (document.frmBloc1Primaire.b1q6a.value >= 15 && document.frmBloc1Primaire.b1q6b[0].checked == false && document.frmBloc1Primaire.b1q6c[0].checked == true)
			document.frmBloc1Primaire.b1q6Points.value = 2;
		else
			document.frmBloc1Primaire.b1q6Points.value = 0;
	}
	////////////
	
	
	
	// QUESTION 7
	var ptsQ7 = 0;
	
	if (document.frmBloc1Primaire.b1q7a[0].checked == true)
		ptsQ7 += 2;
	
	if (document.frmBloc1Primaire.b1q7b[0].checked == true)
		ptsQ7 += 2;
	
	if (document.frmBloc1Primaire.b1q7c[0].checked == true)
		ptsQ7 += 2;
	
	document.frmBloc1Primaire.b1q7Points.value = ptsQ7;
	////////////
	
	
	
	
	// QUESTION 8.1
	if (isNaN(document.frmBloc1Primaire.b1q8_1.value))
		document.frmBloc1Primaire.b1q8_1.value = '';
	
	if (trim(document.frmBloc1Primaire.b1q8_1.value) != '' && isNaN(document.frmBloc1Primaire.b1q8_1.value) == false)
	{
		var pourcentage = 0;
		
		pourcentage = (document.frmBloc1Primaire.b1q8_1.value * 100) / document.frmBloc1Primaire.b1q8_1NbFillesEcole.value;
		document.frmBloc1Primaire.b1q8_1Pourcentage.value = pourcentage.toFixed(2);
		document.frmBloc1Primaire.b1q8_1PourcentageHidden.value = pourcentage.toFixed(2);
		
		if (pourcentage >= 40)
			document.frmBloc1Primaire.b1q8_1Points.value = 3;
		else if (pourcentage >= 25 && pourcentage < 40)
			document.frmBloc1Primaire.b1q8_1Points.value = 2;
		else if (pourcentage >= 15 && pourcentage < 25)
			document.frmBloc1Primaire.b1q8_1Points.value = 1;
		else
			document.frmBloc1Primaire.b1q8_1Points.value = 0;
	}
	else
	{
		document.frmBloc1Primaire.b1q8_1Pourcentage.value = '';
		document.frmBloc1Primaire.b1q8_1Points.value = 0;
	}
	
	
	
	// QUESTION 8.2
	if (isNaN(document.frmBloc1Primaire.b1q8_2.value))
		document.frmBloc1Primaire.b1q8_2.value = '';
	
	if (trim(document.frmBloc1Primaire.b1q8_2.value) != '' && isNaN(document.frmBloc1Primaire.b1q8_2.value) == false)
	{
		var pourcentage = 0;
		
		pourcentage = (document.frmBloc1Primaire.b1q8_2.value * 100) / document.frmBloc1Primaire.b1q8_2NbGarconsEcole.value;
		document.frmBloc1Primaire.b1q8_2Pourcentage.value = pourcentage.toFixed(2);
		document.frmBloc1Primaire.b1q8_2PourcentageHidden.value = pourcentage.toFixed(2);
		
		if (pourcentage >= 40)
			document.frmBloc1Primaire.b1q8_2Points.value = 3;
		else if (pourcentage >= 25 && pourcentage < 40)
			document.frmBloc1Primaire.b1q8_2Points.value = 2;
		else if (pourcentage >= 15 && pourcentage < 25)
			document.frmBloc1Primaire.b1q8_2Points.value = 1;
		else
			document.frmBloc1Primaire.b1q8_2Points.value = 0;
	}
	else
	{
		document.frmBloc1Primaire.b1q8_2Pourcentage.value = '';
		document.frmBloc1Primaire.b1q8_2Points.value = 0;
	}
	
	
	
	// QUESTION 8.3
	if (isNaN(document.frmBloc1Primaire.b1q8_3a.value))
		document.frmBloc1Primaire.b1q8_3a.value = '';

	
	if (document.frmBloc1Primaire.b1q8_3a.value >= 5 && document.frmBloc1Primaire.b1q8_3b[0].checked == true)
		document.frmBloc1Primaire.b1q8_3Points.value = 3;
	else if (document.frmBloc1Primaire.b1q8_3a.value >= 5 && document.frmBloc1Primaire.b1q8_3b[0].checked == false)
		document.frmBloc1Primaire.b1q8_3Points.value = 2;
	else if (document.frmBloc1Primaire.b1q8_3a.value == 4 && document.frmBloc1Primaire.b1q8_3b[0].checked == true)
		document.frmBloc1Primaire.b1q8_3Points.value = 2;
	else if (document.frmBloc1Primaire.b1q8_3a.value == 4 && document.frmBloc1Primaire.b1q8_3b[0].checked == false)
		document.frmBloc1Primaire.b1q8_3Points.value = 2;
	else if (document.frmBloc1Primaire.b1q8_3a.value == 3 && document.frmBloc1Primaire.b1q8_3b[0].checked == true)
		document.frmBloc1Primaire.b1q8_3Points.value = 1;
	else if (document.frmBloc1Primaire.b1q8_3a.value == 3 && document.frmBloc1Primaire.b1q8_3b[0].checked == false)
		document.frmBloc1Primaire.b1q8_3Points.value = 1;
	else
		document.frmBloc1Primaire.b1q8_3Points.value = 0;
	////////////
	
	
	
	
	// CALCULER TOTAL DES POINTS
	if (trim(document.frmBloc1Primaire.b1q1Points.value) != '' && trim(document.frmBloc1Primaire.b1q2Points.value) != '' && trim(document.frmBloc1Primaire.b1q3Points.value) != ''  && trim(document.frmBloc1Primaire.b1q4Points.value) != '' && trim(document.frmBloc1Primaire.b1q5Points.value) != '' && trim(document.frmBloc1Primaire.b1q6Points.value) != ''  && trim(document.frmBloc1Primaire.b1q7Points.value) != '' && trim(document.frmBloc1Primaire.b1q8_1Points.value) != '' && trim(document.frmBloc1Primaire.b1q8_2Points.value) != '' && trim(document.frmBloc1Primaire.b1q8_3Points.value) != '')
	{
		//alert('in');
		
		var totalPointsBloc = 0;
		//totalPointsBloc = document.frmBloc1Primaire.b1q1Points.value += document.frmBloc1Primaire.b1q2Points.value += document.frmBloc1Primaire.b1q3Points.value += document.frmBloc1Primaire.b1q4Points.value += document.frmBloc1Primaire.b1q5Points.value += document.frmBloc1Primaire.b1q6Points.value += document.frmBloc1Primaire.b1q7Points.value += document.frmBloc1Primaire.b1q8_1Points.value += document.frmBloc1Primaire.b1q8_2Points.value += document.frmBloc1Primaire.b1q8_3Points.value += document.frmBloc1Primaire.b1q8_4Points.value;
		
		var q1Points = parseInt(document.frmBloc1Primaire.b1q1Points.value);
		var q2Points = parseInt(document.frmBloc1Primaire.b1q2Points.value);
		var q3Points = parseInt(document.frmBloc1Primaire.b1q3Points.value);
		var q4Points = parseInt(document.frmBloc1Primaire.b1q4Points.value);
		var q5Points = parseInt(document.frmBloc1Primaire.b1q5Points.value);
		var q6Points = parseInt(document.frmBloc1Primaire.b1q6Points.value);
		var q7Points = parseInt(document.frmBloc1Primaire.b1q7Points.value);
		var q8_1Points = parseInt(document.frmBloc1Primaire.b1q8_1Points.value);
		var q8_2Points = parseInt(document.frmBloc1Primaire.b1q8_2Points.value);
		var q8_3Points = parseInt(document.frmBloc1Primaire.b1q8_3Points.value);
		
		totalPointsBloc = q1Points + q2Points + q3Points + q4Points + q5Points + q6Points + q7Points + q8_1Points + q8_2Points + q8_3Points;
		
		document.frmBloc1Primaire.b1totalPoints.value = parseInt(totalPointsBloc);
	}
	else
	{
		//alert('not in');
	}
	////////////
}



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




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




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








function gestionDynamiqueBloc3Primaire()
{
	// QUESTION 1
	if (document.frmBloc3Primaire.b3q1a[0].checked == true && document.frmBloc3Primaire.b3q1b[0].checked == true && document.frmBloc3Primaire.b3q1c[0].checked == true)
		document.frmBloc3Primaire.b3q1Points.value = 12;
		
	else if (document.frmBloc3Primaire.b3q1a[0].checked == true && document.frmBloc3Primaire.b3q1b[0].checked == true && document.frmBloc3Primaire.b3q1c[0].checked == false)
		document.frmBloc3Primaire.b3q1Points.value = 9;
		
	else if (document.frmBloc3Primaire.b3q1a[0].checked == true && document.frmBloc3Primaire.b3q1b[0].checked == false && document.frmBloc3Primaire.b3q1c[0].checked == false)
		document.frmBloc3Primaire.b3q1Points.value = 6;
		
	else if (document.frmBloc3Primaire.b3q1a[0].checked == true && document.frmBloc3Primaire.b3q1b[0].checked == false && document.frmBloc3Primaire.b3q1c[0].checked == true)
		document.frmBloc3Primaire.b3q1Points.value = 6;
		
	else
		document.frmBloc3Primaire.b3q1Points.value = 0;
	////////////
	
	
	var totalPointsBloc = 0;
		
	var q1Points = parseInt(document.frmBloc3Primaire.b3q1Points.value);
	
	//totalPointsBloc = q1Points + q2Points + q3Points + q4Points;
	
	document.frmBloc3Primaire.b3totalPoints.value = parseInt(q1Points);
}







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












