// JavaScript Document

function ajaxWaiting(){
	$("#ajaxContent").html('<div class="loading"> </div>');
}

function doReponseQuestionQuizz(numeroQuestion){ 
	var inputs = document.getElementsByTagName("input");
	
	for(var x=0; x < inputs.length; x++) {
	 
		  if (inputs[x].checked){
			recupData = $("#quizz").serialize();
			enleverBtnValid();
			 var myAjax = $.ajax({
			   type: "POST",
			   url: "php/doTraiterReponseQuizz.php",
			   data: recupData,
			   waiting: ajaxWaiting(),
			   success: function(html){
				$('#traitementReponseJoueur').html(html);
			  }
		 });
				return false;
		 }
	} // Fin du foreach
}

function enleverBtnValid(){
	$('#submitQuizz').slideUp("fast"); 
}

function ajouterFavoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("Abbaye de Belleperche","http://www.abbaye-belleperche.fr/",""); }
else { window.external.AddFavorite("http://www.abbaye-belleperche.fr/","Abbaye de Belleperche"); }
}
