function Ajax_Game () 
{
	$.ajax
	({
		type: 'POST',
		url: "/ajax/Game.php",	
		
		data: "email1="+$('#email1').attr('value')+"&email2="+$('#email2').attr('value')+"&email3="+$('#email3').attr('value')+"&email4="+$('#email4').attr('value')+"&email5="+$('#email5').attr('value')+"&connected="+$('#header').attr('class')+"&game_level="+$('div.game').attr('level')+"&participate="+$('div.game').attr('participate')+"&rules="+$('#rules').attr("checked")+"&collaborate="+$('div.game').attr('collaborate')+"&page="+$('div.game').attr('page'),

		dataType: 'json',

		success: function (reponse) 
		{
/* 			alert(reponse); */

			$("#level1 ul li").remove();
			$("#level2 ul li").remove();
			$("#general ul li").remove();
			
			if (reponse.sessionTest == "false")
    		{
    			document.location.href = "";
    		}
			
			if (reponse.level=="1")
			{
				if (reponse.alertSuccessLevel1!="")
				{
					var TalertSuccessLevel1 = reponse.alertSuccessLevel1.split('[#]');
					
					$('#level1 ul').append('<li class="'+TalertSuccessLevel1[1]+'">'+TalertSuccessLevel1[0]+'</li>');
				}
								
			
			}
			else if (reponse.level=="2")
			{
				if (reponse.alertSuccessLevel2!="")
				{
					var TalertSuccessLevel2 = reponse.alertSuccessLevel2.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertSuccessLevel2[1]+'">'+TalertSuccessLevel2[0]+'</li>');
				}
								
			}
			
			if (reponse.state=="error")
			{

				// GENERAL
								
				if (reponse.alertConnexion!="")
				{
					var TalertConnexion = reponse.alertConnexion.split('[#]');
					
					$('#general ul').append('<li class="'+TalertConnexion[1]+'">'+TalertConnexion[0]+'</li>');
				}
								
				if (reponse.alertParticipate!="")
				{
					var TalertParticipate = reponse.alertParticipate.split('[#]');
					
					$('#general ul').append('<li class="'+TalertParticipate[1]+'">'+TalertParticipate[0]+'</li>');
				}
				
				// LEVEL 1

				if (reponse.alertEmptyEmailLevel1!="")
				{
					
					var TalertEmptyEmailLevel1 = reponse.alertEmptyEmailLevel1.split('[#]');
					
					$('#level1 ul').append('<li class="'+TalertEmptyEmailLevel1[1]+'">'+TalertEmptyEmailLevel1[0]+'</li>');
				}

				if (reponse.alertWrongEmail1!="")
    			{
    				
    				var TalertWrongEmail1 = reponse.alertWrongEmail1.split('[#]');
    				
    				$('#level1 ul').append('<li class="'+TalertWrongEmail1[1]+'">'+TalertWrongEmail1[0]+'</li>');
    			}
    			
    			if (reponse.alertWrongEmail2!="")
    			{
    				
    				var TalertWrongEmail2 = reponse.alertWrongEmail2.split('[#]');
    				
    				$('#level1 ul').append('<li class="'+TalertWrongEmail2[1]+'">'+TalertWrongEmail2[0]+'</li>');
    			}
    			
    			if (reponse.alertWrongEmail3!="")
    			{
    				
    				var TalertWrongEmail3 = reponse.alertWrongEmail3.split('[#]');
    				
    				$('#level1 ul').append('<li class="'+TalertWrongEmail3[1]+'">'+TalertWrongEmail3[0]+'</li>');
    			}
    			
    			if (reponse.alertDoubleEmailLevel1!="")
    			{
    				
    				var TalertDoubleEmailLevel1 = reponse.alertDoubleEmailLevel1.split('[#]');
    				
    				$('#level1 ul').append('<li class="'+TalertDoubleEmailLevel1[1]+'">'+TalertDoubleEmailLevel1[0]+'</li>');
    			}
    			
    			if (reponse.alertDoubleEmail1!="")
    			{
    				
    				var TalertDoubleEmail1 = reponse.alertDoubleEmail1.split('[#]');
    				
    				$('#level1 ul').append('<li class="'+TalertDoubleEmail1[1]+'">'+TalertDoubleEmail1[0]+'</li>');
    			}
    			
    			if (reponse.alertDoubleEmail2!="")
    			{
    				
    				var TalertDoubleEmail2 = reponse.alertDoubleEmail2.split('[#]');
    				
    				$('#level1 ul').append('<li class="'+TalertDoubleEmail2[1]+'">'+TalertDoubleEmail2[0]+'</li>');
    			}


				// LEVEL 2
				
				if (reponse.alertEmptyEmailLevel2!="")
				{
					var TalertEmptyEmailLevel2 = reponse.alertEmptyEmailLevel2.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertEmptyEmailLevel2[1]+'">'+TalertEmptyEmailLevel2[0]+'</li>');
				}
				
				if (reponse.alertWrongEmail4!="")
				{
					var TalertWrongEmail4 = reponse.alertWrongEmail4.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertWrongEmail4[1]+'">'+TalertWrongEmail4[0]+'</li>');
				}
				
				if (reponse.alertWrongEmail5!="")
				{
					var TalertWrongEmail5 = reponse.alertWrongEmail5.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertWrongEmail5[1]+'">'+TalertWrongEmail5[0]+'</li>');
				}
				
				if (reponse.alertDoubleEmailLevel2!="")
				{
					var TalertDoubleEmailLevel2 = reponse.alertDoubleEmailLevel2.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertDoubleEmailLevel2[1]+'">'+TalertDoubleEmailLevel2[0]+'</li>');
				}
				
				if (reponse.alertDoubleEmail4!="")
				{
					var TalertDoubleEmail4 = reponse.alertDoubleEmail4.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertDoubleEmail4[1]+'">'+TalertDoubleEmail4[0]+'</li>');
				}
				
				if (reponse.alertDoubleEmail5!="")
				{
					var TalertDoubleEmail5 = reponse.alertDoubleEmail5.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertDoubleEmail5[1]+'">'+TalertDoubleEmail5[0]+'</li>');
				}
				
				if (reponse.alertRules!="")
				{
					var TalertRules = reponse.alertRules.split('[#]');
					
					$('#level2 ul').append('<li class="'+TalertRules[1]+'">'+TalertRules[0]+'</li>');
				}
				
			}
		},

		error: function () {
			// alert('error');
		}

	});// End Ajax

}// End Function
