/*
Concu par Yanonix pour War-Evolution
*/
// Reboot de la page
function Reboot(Demande){
	if(Demande==1)
	{
		if(confirm('L\'administrateur demande le rafrachissement de la page [Conseillé] (F5), voulez-vous le faire maintenant ?'))				
			window.location.reload()
	}
	else
		window.location.reload()
}

// Ressources
function Ressources_Actualiser(){
	if(Ressources_Calcul_Auto>0)
		Ajax('Ressources',"Actions.php5?Act=AfficherRessources","GET","","","Ressources_Reset(); Boucle('Ressources_Calcul()',Ressources_Calcul_Auto,1);")
	else
		Ajax('Ressources',"Actions.php5?Act=AfficherRessources","GET","","","Ressources_Reset(); Ressources_Calcul();")
}

// Menu
function Menu(){
	Ajax('Menu',"Actions.php5?Act=Menu","GET","","")
}

// ListeJoueurs
function ListeJoueurs(Formulaire,Limite,Alliance){
	Ouvrir('ListeJoueurs.php5?Liste='+Formulaire+'&Limite='+Limite+'&Alliance='+Alliance,300,200)
}

// Bonus
function Bonus_Acheter(){
	Ouvrir('BonusAcheter.php5',500,700)
}
function Bonus_Activer(Pack){
	if(window.confirm('Voulez-vous activer cette option: '+Pack+' ?'))
		Ajax('Adherer',"Actions.php5?Act=Bonus","POST",'Activer='+Pack,document.getElementById('RepAjax')) //,'Page("Alliance")'
}

// Alliance
function Alliance_Chat_Refrech(){
	if(document.getElementById('ChatAll'))
		Ajax("Message Alliance","Actions.php5?Act=AllianceAfficherChat","POST","Alliance="+AllianceChat+"&Page="+AlliancePage,document.getElementById('ChatAll'))		
	else
		StopBoucle("Alliance_Chat_Refrech()")
}
function Alliance_Chat_Supprimer(){
	if(window.confirm('Voulez-vous supprimer le chat de cette alliance ?'))
		Ajax("Supprimer Message Alliance","Actions.php5?Act=AllianceSupprimerChat","POST","Alliance="+AllianceChat+"&Page="+AlliancePage,document.getElementById('ChatAll'));
}
function Alliance_Chat_Ajouter(){
	if(document.AllianceForm.Message.value!="")
	{
		Ajax("Ajout Message Alliance","Actions.php5?Act=AllianceEnvoyerChat","POST","Alliance="+AllianceChat+"&Page="+AlliancePage+"&Message="+Esc(document.AllianceForm.Message.value),document.getElementById('ChatAll'),"Alliance_Chat_Refrech()");
		document.AllianceForm.Message.value=""
		document.AllianceForm.Message.focus()
	}
}

// Alliance Changer
function Alliance_Adherer(){
	Ajax('Adherer',"Actions.php5?Act=AllianceChanger","POST",Form(1,document.Alliance_Adherer_Form),document.getElementById('RepAjax')) //,'Page("Alliance")'
}
function Alliance_Adherer_PasswordCheck(Valeur){
	if(Valeur=='') {
		document.getElementById('Password').disabled="disabled"
		document.getElementById('Password').className="Transparent"
	} else {
		document.getElementById('Password').disabled=""
		document.getElementById('Password').className=""
	}
}

// Alliance Admin
function Alliance_Admin_Accords_Liste(){
	Ajax('Liste des accords',"Actions.php5?Act=AllianceAccordsListe","GET","",document.getElementById('Alliance_Admin_Accords_Liste_DIV'))
}
function Alliance_Admin_Accords_Envoi(){
	Ajax('Application de l\'accord',"Actions.php5?Act=AllianceAccordsChanger","POST",Form(1,document.Alliance_Admin_Accords_Envoi_Form),document.getElementById('RepAjax'),'Alliance_Admin_Accords_Liste()')
}
function Alliance_Admin_AjouterChef(){
	Ajax('Action sur Membres',"Actions.php5?Act=AllianceAjouterChef","POST",Form(1,document.Alliance_Admin_ActionMembres_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_SupprimerChef(){
	Ajax('Action sur Membres',"Actions.php5?Act=AllianceSupprimerChef","POST",Form(1,document.Alliance_Admin_ActionMembres_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_SupprimerMembre(){
	Ajax('Action sur Membres',"Actions.php5?Act=AllianceSupprimerMembre","POST",Form(1,document.Alliance_Admin_ActionMembres_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_Caracteristiques(){
	Ajax('Caracteristiques',"Actions.php5?Act=AllianceCaracteristiques","POST",Form(1,document.Alliance_Admin_Caracteristiques_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_RecrutementCharte(){
	Ajax('Recrutement & Charte',"Actions.php5?Act=AllianceRecrutementCharte","POST",Form(1,document.Alliance_Admin_RecrutementCharte_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_Styles(Page){
	Ajax('Application du style',"Actions.php5?Act=AllianceStyles","POST",'Page='+Page+Form(1,document.Alliance_Admin_Styles_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_SupprimerAlliance(){
	if(confirm("Voulez-vous réelement supprimer votre Alliance ?"))
		Ajax("Suppression de l'alliance","Actions.php5?Act=AllianceSupprimerAlliance","GET","",document.getElementById("RepAjax"));
}
function Alliance_Admin_Sondages_Ajouter(){
	Ajax('Sondage Ajout',"Actions.php5?Act=AllianceSondageAjouter","POST",Form(1,document.Alliance_Admin_Sondages_Envoi_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_Sondages_Modifier(){
	Ajax('Sondage Modifier',"Actions.php5?Act=AllianceSondageModifier","POST",Form(1,document.Alliance_Admin_Sondages_Envoi_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_Sondages_Supprimer(){
	if(confirm('Voulez-vous supprimer ce sondage ?'))
		Ajax('Sondage Supprimier',"Actions.php5?Act=AllianceSondageSupprimer","POST",Form(1,document.Alliance_Admin_Sondages_Envoi_Form),document.getElementById('RepAjax'))
}
function Alliance_Admin_Sondages_Selection(){
	Page('AllianceAdminSondages',Form(1,document.Alliance_Admin_Sondages_Selection_Form))
}

// Régions
function Lieux_Changer(){
	Ajax("Emenagement sur le lieu","Actions.php5?Act=ChangerLieux","POST",Form(1,document.Lieux_Changer_Form),document.getElementById('RepAjax'))
}
function IleAmi(){
	Ajax("Recherche de l'ile","Actions.php5?Act=IleAmi","POST",Form(1,document.IleAmi_Form),document.getElementById('IleAmi_RepAjax'))
}

// Île
function Ile_Chat_Refrech(Ile){
	if(document.getElementById('ChatIle'))
		Ajax("Message Alliance","Actions.php5?Act=IleAfficherChat","POST","Ile="+Ile,document.getElementById('ChatIle'))		
	else
		StopBoucle("Ile_Chat_Refrech()")
}
function Ile_Chat_Supprimer(Ile){
	if(window.confirm('Voulez-vous supprimer le chat de l\'île ?'))
		Ajax("Supprimer Message Alliance","Actions.php5?Act=IleSupprimerChat","POST","Ile="+Ile,document.getElementById('ChatIle'));
}
function Ile_Chat_Ajouter(Ile){
	if(document.Ile_Form.Message.value!="")
	{
		Ajax("Ajout Message Alliance","Actions.php5?Act=IleEnvoyerChat","POST","Ile="+Ile+"&Message="+Esc(document.Ile_Form.Message.value),document.getElementById('ChatIle'),"Ile_Chat_Refrech("+Ile+")");
		document.Ile_Form.Message.value=""
		document.Ile_Form.Message.focus()
	}
}
function Ile_Style(){
	Ajax("Edition du style","Actions.php5?Act=IleQGChangerStyle","POST",Form(1,document.Ile_Style_Form),document.getElementById('RepAjax'));
}

// Compte/Flux/Déconnexion
function Compte_Modifier(){
	Ajax('Adherer',"Actions.php5?Act=Compte","POST",Form(1,document.Compte_Modifier_Form),document.getElementById('RepAjax'))
}
function Vacance(){
	if(confirm('Êtes-vous sûr de vouloir suspendre votre compte (pendant un minimum de 3 jours) ?'))
		Ajax('Vacances',"Actions.php5?Act=Vacance","GET",'',document.getElementById('RepAjaxVacance'))
}
function Flux(Act){
	Ajax("Flux","Actions.php5?Act=Flux","POST","&Act="+Act,document.getElementById('RepAjax'))
}
function Deconnection(){	
	if(confirm('Êtes-vous sûr de vouloir vous déconnecter ?'))
		Page('Deconnexion');
}

// Améliorations
function Ameliorations_Inventions(Produit,Info){
	if(window.confirm(Info+'\n\nVoulez-vous développer cette invention ?'))
		Ajax('Invention',"Actions.php5?Act=Acheter","POST","Produit="+Produit+"&X=1&Type=2",document.getElementById('RepAjax'))
}
function Ameliorations_Age(Produit){
	if(window.confirm('Voulez-vous passer à l\'age supérieur ?'))
		Ajax('Age',"Actions.php5?Act=Acheter","POST","Produit="+Produit+"&X=1&Type=3",document.getElementById('RepAjax'))
}

// Bâtiments
function Batiments_Acheter(ID){
	if(document.getElementById('NbrBat'+ID).value>0)
	{
		if(window.confirm('Voulez-vous acheter '+document.getElementById('NbrBat'+ID).value+' bâtiments ?'))
			Ajax("Acheter bâtiments","Actions.php5?Act=Acheter","POST","X="+document.getElementById('NbrBat'+ID).value+"&Produit="+ID+"&Type=0",document.getElementById("RepAjax"))
	}
}
function Batiments_Reparer(ID,Ressource){
	if(window.confirm(Ressource+'\n\Voulez-vous réparer ce bâtiment ?'))
		Ajax("Réparer","Actions.php5?Act=Acheter","POST","Type=0&X=-1&Produit="+ID,document.getElementById("RepAjax"))
}

// Unités
function Unites_Acheter(ID){
	if(document.getElementById('NbrUni'+ID).value>0)
	{
		if(window.confirm('Voulez-vous former '+document.getElementById('NbrUni'+ID).value+' unités ?'))
			Ajax("Acheter bâtiments","Actions.php5?Act=Acheter","POST","X="+document.getElementById('NbrUni'+ID).value+"&Produit="+ID+"&Type=1",document.getElementById("RepAjax"))
	}
}
function Unites_Soigner(ID,Ressource){
	if(window.confirm(Ressource+'\n\Voulez-vous soigner cette unités ?'))
		Ajax("Réparer","Actions.php5?Act=Acheter","POST","Type=1&X=-1&Produit="+ID,document.getElementById("RepAjax"))
}
function Unites_OrganiserTous(Act){
	Ajax("Organisation","Actions.php5?Act=OrganiserUnitesGlobal","POST","Act="+Act,document.getElementById('RepAjax'))
}
function Unites_OrganiserPerso(Type){
	Ajax("Organisation","Actions.php5?Act=OrganiserUnites","POST","Type="+Type+Form(1,document['Unites_OrganiserPerso_Form'+Type]),document.getElementById("RepAjax"),"Ressources_Actualiser();")
}
function Unites_OrganiserType(Type,Act){
	Ajax("Organisation","Actions.php5?Act=OrganiserUnitesType","POST","Type="+Type+"&Act="+Act,document.getElementById("RepAjax"),"Ressources_Actualiser();")
}

// Dons
function Dons_Liste(){
	if(document.getElementById('RepAjaxDonListe'))
		Ajax('Liste Dons',"Actions.php5?Act=DonsListe","GET","",document.getElementById('RepAjaxDonListe'))
	else
		StopBoucle('Dons_Liste()')
}
function Dons_Envoi(){
	Ajax("Envoi du don","Actions.php5?Act=DonsEnvoyer","POST",Form(1,document.Dons_Envoi_Form),document.getElementById("RepAjax"),"Ressources_Actualiser();Dons_Liste();")
}
function Dons_Actions(ID,Action){
	Act=new Array('Refuser','Accepter','Annuler')
	if(confirm('Êtes vous sûr d\'effectuer cette action ('+Act[Action]+') sur le don n°'+ID+' ?'))
		Ajax('Affectation de l\'Action sur le don',"Actions.php5?Act=DonsAppliquer","POST","Action="+Action+"&Id="+ID,document.getElementById('RepAjax'),"Ressources_Actualiser()")
}

// Elections
function Elections_Voter(){
	if(window.confirm('Voulez-vous voter pour lui/elle?'))
		Ajax("Election Vote","Actions.php5?Act=ElectionsVoter","POST",Form(1,document.Elections_Voter_Form),document.getElementById('RepAjax'));
}
function Elections_SePresenter(){
	Ajax("Candidature aux élections","Actions.php5?Act=ElectionsSePresenter","POST",Form(1,document.Elections_SePresenter_Form),document.getElementById('RepAjax'));
}
function Elections_AnnulerCandidature(){
	if(window.confirm('Voulez-vous supprimer votre candidature ?'))
		Ajax("Candidature aux élections","Actions.php5?Act=ElectionsAnnulerCandidature","POST",'',document.getElementById('RepAjax'));
}

// Marche
var UniteMarche='';
function Marche_Vendre(){
	Ajax("Envoi de la marchandise","Actions.php5?Act=MarcheEnvoyer","POST",Form(1,document.Marche_Vendre_Form),document.getElementById("RepAjax"),"Ressources_Actualiser();Marche_Liste();")
}
function Marche_Liste(){
	Ajax("Liste Ventes","Actions.php5?Act=MarcheListe","GET","",document.getElementById('RepAjaxVenteListe'))
}
function Marche_Acheter(ID,Nbr1,Type1,Nbr2,Type2,Char){
	if(confirm('Êtes vous sûr d\'acheter cette marchandise (n°'+ID+'):\n '+Nbr1+' '+Type1+' contre '+Nbr2+' '+Type2+' avec '+Char+' '+UniteMarche+' ?'))
		Ajax('Achat en cour',"Actions.php5?Act=MarcheRecevoir","POST","Id="+ID,document.getElementById('RepAjax'),"Ressources_Actualiser();Marche_Liste()")
}
function Marche_Annuler(ID,Nbr1,Type1,Nbr2,Type2){
	if(confirm('Êtes vous sûr d\'annuler votre marchandise (n°'+ID+'):\n '+Nbr1+' '+Type1+' contre '+Nbr2+' '+Type2+' ?' ))
		Ajax('Suppression Vente en cour',"Actions.php5?Act=MarcheAnnuler","POST","Id="+ID,document.getElementById('RepAjax'),"Ressources_Actualiser()")
}
function Marche_Direct(Ressource,Type,Sens,Char){
	Nbr=document.getElementById('R'+Type+Sens+'V1').value;
	Nbr2=document.getElementById('R'+Type+Sens+'V2').value;
	if(Sens==1)
		Msg=Nbr+' '+Ressource+' contre '+Nbr2+' argent'
	else
		Msg=Nbr+' argent contre '+Nbr2+' '+Ressource;
	if(Nbr>Nbr2)
		Char=Math.ceil(Nbr/Char)
	else
		Char=Math.ceil(Nbr2/Char)
	if(confirm('Êtes vous sûr de transformer '+Msg+' avec '+Char+' '+UniteMarche+' ?'))
		Ajax('Transformation en cour',"Actions.php5?Act=MarcheTransition","POST","X="+Nbr+"&Type="+Type+"&Sens="+Sens,document.getElementById('RepAjax'),"Ressources_Actualiser();Marche_Liste()")
}
function Marche_Direct_Calcul(Sens,Ressource,Quantite,Champ){
	if(Champ==1)
		 document.getElementById('R'+Ressource+Sens+'V2').value=Math.round(Quantite*100)/100;
	else
		 document.getElementById('R'+Ressource+Sens+'V1').value=Math.round(Quantite*100)/100;
}

// JeuGratuit
function JeuGratuit(){
	Ajax("Jeu Gratuit","Actions.php5?Act=JeuGratuit","GET","",document.getElementById('RepAjax'))		
}

// Apercu
function Apercu_WECode(ID){	
	Ajax("Apercu","WEcode.php5","POST","Texte="+Esc(document.getElementById(ID).value),document.getElementById("RepAjaxApercu"))
}

// Stratégie (Attaque & Defense)
var Stratégie_Attaque_Mode=0;
function Stratégie_Défense_Envoi(){
	Ajax("Stratégie Défense","Actions.php5?Act=StrategieDefense","POST","Str="+Esc(document.Strategie_Defense_Form.Str.value),document.getElementById("RepAjax"))
}
function Stratégie_Défense_Villes_Envoi(Age){
	Ajax("Stratégie Défense","Actions.php5?Act=IleStrategieDefense","POST","MP="+Esc(document.Strategie_Defense_Villes_Form.Avertir.checked)+"&StrDef="+Esc(document.Strategie_Defense_Villes_Form.Str.value)+"&Age="+Age,document.getElementById("RepAjax"))
}

function Stratégie_Générer(){
	
	TableauA=new Array()
	Select=document.getElementById("Strategie_Cibles");
	NbrNodes=Select.childNodes.length
	j=0;
	for(istr=0;istr<NbrNodes;istr++)
	{
		ID=Select.childNodes[istr].id
		if(ID!=undefined)
		{
			TableauA[j]=ID.substr(ID.indexOf("_")+1);
			if(j==0)
				document.getElementById(ID+"_Bk").innerHTML="1<sup>er</sup>"
			else
				document.getElementById(ID+"_Bk").innerHTML=(j+1)+"<sup>ème</sup>"
			j++;
		}
	}
	
	TableauB=new Array()
	Select=document.getElementById("Strategie_Priorite");
	NbrNodes=Select.childNodes.length
	j=0;
	for(istr=0;istr<NbrNodes;istr++)
	{
		ID=Select.childNodes[istr].id
		if(ID!==undefined)
		{
			TableauB[j]=ID.substr(ID.indexOf("_")+1);
			if(j==0)
				document.getElementById(ID+"_Bk").innerHTML="1<sup>er</sup>"
			else
				document.getElementById(ID+"_Bk").innerHTML=(j+1)+"<sup>ème</sup>"
			j++;
		}
	}
	Ordre="";
	if(TableauA.length>TableauB.length)
		Nbr=TableauA.length;
	else
		Nbr=TableauB.length;
	for(var istr=0;istr<Nbr;istr++) {
		if(TableauA[istr]!==undefined)
			ValeurA=TableauA[istr]
		else 
			ValeurA='';
		if(TableauB[istr]!==undefined)
			ValeurB=TableauB[istr]
		else 
			ValeurB='';
		if(ValeurA!='' || ValeurB!='')
			Ordre+=ValeurA+":"+ValeurB;	
		Ordre+="#";	
	}
	document.getElementById("Str").value=Ordre;
}
function Stratégie_Attaque_Type(Valeur){
	if(Valeur=='0')
	{
		document.getElementById('StraBatCible').className="Transparent"
		document.getElementById('StrBat').disabled="disabled"
		document.getElementById('StrBatUnit').disabled="disabled"
	} 
	else if(Stratégie_Attaque_Mode!=3)
	{
		document.getElementById('StraBatCible').className=""
		document.getElementById('StrBat').disabled=""
		document.getElementById('StrBatUnit').disabled=""
	}
}
function Stratégie_Attaque_Lancer(){
	Page('Attaquer',Form(1,document.Strategie_Attaque_Form))
}

// InterAlliances
function InterAlliances_Afficher(Alliance){
	Ajax("InterAlliance","Actions.php5?Act=StatsInterListe","POST","Alliance="+Alliance,document.getElementById("Liste"))
}

// ListeAttaqueEspionnage
function ListeAttaqueEspionnage_Boutons(Attaquer,Espionner){
	if(Attaquer && PuissanceAttaque>0)
		document.getElementById('SubmitAtt').disabled=""
	else
		document.getElementById('SubmitAtt').disabled="disabled"
	if(Espionner && NombreEspions>0)
		document.getElementById('SubmitEsp').disabled=""
	else		
		document.getElementById('SubmitEsp').disabled="disabled"
}
function ListeAttaqueEspionnage_Lancer(Obj){
	Page('CompteARebours',Form(1,Obj.form)+'&Submit='+Obj.value)
}

// Inscription
function Inscription(Obj){
	Page('Inscription',Form(1,document.Inscription_Form))
}

// Messages
var Messages_EtatSelection=true;
function Messages_Actions(T){	
	if(T==1 && confirm('Êtes-vous sûr de vouloir marquer ces messages comme "non lu"?'))
		Ajax("Action en cour sur le(s) message(s)","Actions.php5?Act=MPActions","POST",Form(1,document.MessageForm)+"&Type=1",document.getElementById("RepAjax"))
	else if(T==2 && confirm('Êtes-vous sûr de vouloir marquer ces messages comme "non lu"?'))
		Ajax("Action en cour sur le(s) message(s)","Actions.php5?Act=MPActions","POST",Form(1,document.MessageForm)+"&Type=2",document.getElementById("RepAjax"))
	else  if(T==3 && confirm('Êtes-vous sûr de vouloir supprimer ces messages ?'))
		Ajax("Action en cour sur le(s) message(s)","Actions.php5?Act=MPActions","POST",Form(1,document.MessageForm)+"&Type=3",document.getElementById("RepAjax"))
}
function Messages_Lire_Supprimer(ID){	
	if(confirm('Êtes-vous sûr de vouloir supprimer ce message ?'))
		Ajax("Action en cour sur le message","Actions.php5?Act=MPActions","POST","SelectMessage["+ID+"]=1&Type=3",document.getElementById("RepAjax"))
}
function Messages_Selection_All(FormObj){	
	FormObj=document[FormObj];
	for(i=0;i<FormObj.length;i++)
	{
		if(FormObj.elements[i].name!=undefined && FormObj.elements[i].type!=undefined)
		{
			if(FormObj.elements[i].type=="checkbox")
			{
				FormObj.elements[i].checked=Messages_EtatSelection
			}
		}
	}
	if(Messages_EtatSelection==true)
		Messages_EtatSelection=false;
	else
		Messages_EtatSelection=true;
}
function Messages_Envoyer(){
	document.getElementById("SubmitMP").disabled="disabled";
	Ajax("Envoi du Message","Actions.php5?Act=MPEnvoyer","POST",Form(1,document.Messages_Envoyer_Form),document.getElementById("RepAjax"))
}
function Messages_Rapport_Envoyer(){
	document.getElementById("SubmitMP").disabled="disabled";
	Ajax("Envoi du Message","Actions.php5?Act=MPRapporter","POST",Form(1,document.Messages_Rapport_Envoyer_Form),document.getElementById("RepAjax"))
}
function Messages_ListeNoire_Ajouter(Joueur){
	if(confirm('Êtes-vous sûr de vouloir rajouter '+Joueur+' dans votre liste noire ?'))
		Ajax('Ajout du joueur en cour',"Actions.php5?Act=ListeNoireAjouter","POST","Joueur="+Joueur,document.getElementById('RepAjax'))
}
function Messages_ListeNoire_Supprimer(Id){
	if(confirm('Êtes-vous sûr de vouloir le supprimer de votre liste noire ?'))
		Ajax('Suppression du joueur en cour...',"Actions.php5?Act=ListeNoireSupprimer","POST","Id="+Id,document.getElementById('RepAjax'))
}

// Taux
function Taux_Appliquer(){
	Ajax("Taux des ressources","Actions.php5?Act=Taux","POST",Form(1,document.Taux_Appliquer_From),document.getElementById("RepAjax"),"Ressources_Actualiser();")
}
function Taux_Actualiser(){
	for(i=0;i<Taux_Ressources_Nombre;i++)
	{
		Nombre=document.getElementById('TauxForm'+Taux_Ressources[i]).value*Taux_Unites_Nombre*60/100*Taux_Ressources_Taux[i]
		document.getElementById('Taux'+Taux_Ressources[i]).innerHTML="<strong>"+FormatNumber(Nombre)+"</strong>/min<br /><strong>"+FormatNumber(Nombre*60)+"</strong>/heures<br /><strong>"+FormatNumber(Nombre*1440)+"</strong>/jours"
	}
}

// Dons Villes
function Villes_Envoyer(Ville){
	Ajax("Envoi des unités dans la ville","Actions.php5?Act=VillesEnvoyerUnites","POST","Ville="+Ville,document.getElementById("RepAjax"))
}
function Villes_Recevoir(Ville){
	Ajax("Reception des unités dans la ville","Actions.php5?Act=VillesRecevoirUnites","POST","Ville="+Ville,document.getElementById("RepAjax"))
}

// Réglement Inscription
function Inscription_AfficherReglement(){
	Ajax("Reglements & Conditions Generales","Actions.php5?Act=ReglementInscription","GET",'',document.getElementById('Charte'));
}

// Classements Trier/Filtre
function Classements_Filtres(){
	Page(PageEnCour+Form(1,document.Classements_Filtres_From))
}

// CodeValidation
function CodeValidation_Redemander(){
	Page('CodeValidation',Form(1,document.CodeValidation_Redemander_Form))
}

// Sondages
function Sondage_Voter(Id){
	Page(PageEnCour,Form(1,document['Sondage_Voter_Form_'+Id])+"&Sondage"+Id+"=1")
}
function Sondage_Resultat(Id){
	Page(PageEnCour,"&Reponces"+Id+"=1")
}

// InfoJoueur
function InfosJoueurListe(){
	Page('InfosJoueurs'+Form(1,document.InfosJoueurListe_Form))
}
