function loadDir(IdParent,RootString,IdEvent,Location)
{
	var container = document.getElementById(IdParent);
	var xhr=null;
		if (window.XMLHttpRequest)
		{ 
			xhr = new XMLHttpRequest();
		}
			else if (window.ActiveXObject) 
			{
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
			}
				xhr.onreadystatechange = function()
				{
					// On ne fait quelque chose que si on a tout reçu et que le serveur est ok
					if (xhr.readyState == 4)
					{
					var tbl = xhr.responseText;
					container.innerHTML = tbl;
					}
						else
						{
						}
				}
		xhr.open("POST", Location+"Ajax/ajaxDir.php", true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=UTF-8');
		xhr.send("action=load&Location="+Location+"&RootString="+RootString+"&IdEvent="+IdEvent+"&IdParent="+IdParent);	
}

function reloadDir(Dir)
{
	var xhr=null;
		if (window.XMLHttpRequest)
		{ 
			xhr = new XMLHttpRequest();
		}
			else if (window.ActiveXObject) 
			{
			xhr = new ActiveXObject("Microsoft.XMLHTTP");
			}
				xhr.onreadystatechange = function()
				{
					// On ne fait quelque chose que si on a tout reçu et que le serveur est ok
					if (xhr.readyState == 4)
					{
					var tbl = xhr.responseText;

					}
						else
						{
						_content.innerHTML="";
						controlState();
						}
				}
		xhr.open("POST", "../Ajax/ajaxEvents.php", true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded;charset=UTF-8');
		xhr.send("action=create&Dir="+Dir);	
}