var Actions = {
	UploadFile: function(){
		var retour = frames["DownloadTarget"].document.getElementsByTagName("body")[0].innerHTML;
		var data = eval("("+retour+")");
		return data;
	},
	ViderFormulaire: function(){
		try{
			document.getElementById(ToutoulJsConfig.idmessageformulaire).innerHTML = "";
		}
		catch(err){}
	},
	VerifMaj: {
		connexion: new ConfigAjax(),
		Lancer: function(){
			this.connexion.setUrl('index.php?ajax&derniermodif');
			this.connexion.LancerGet(Actions.VerifMaj.Traitement);
		},
		Traitement: function(transport,json){
			if(json.reponse.connecter==1){
				if(json.reponse.refresh==1){
					document.getElementById("MajEspace").style.display = "block";
				}else{
					setTimeout("Actions.VerifMaj.Lancer()",10000);
				}
			}else{
				if(json.reponse.refresh==1){
					document.location = "index.php";
				}
			}
		}
	}
};

