var ENV = "dev";

if( ENV == "dev" ){
	
	var HTTP_ROOT =	"http://dev7.phenix-agoranet.com/" ;
	var FILE_ROOT =	"/home/phenix-agoranet.com/domains/dev7.phenix-agoranet.com/www/" ;
	
}else if( ENV == "www" ){
	
		
}else{
	
	console.log("Problème de configuration de l'environnement JavaScript (L.1-15)");
	
}


function execAjaxAction( module, action, handleResponse ){
	
	$.ajax({
		
		type: "POST",
		url : HTTP_ROOT + "libs/lib.ajax.php",
		data: "module="+module+"&action="+action,
		success: function(html){
			eval( handleResponse + "(" + html + ")" );
		}
		
	});	
	
}


function ajaxEchoForm( numEtape ){
	
	execAjaxAction( "groupe", numEtape, "refreshFormDevis" );
	
}

function refreshFormDevis(htmlForm){
	
	//console.log("FONCTION EXECUTEE");
	//console.log(html);
	console.log( $("div#formDevis").html() );
	$("div#formDevis").empty();
	console.log( htmlForm );
	$("div#formDevis").html(htmlForm);
}
