	var zom=1;
		
	function charge_carte()
	{
		if(window.XMLHttpRequest)
		{
			xhr_object = new XMLHttpRequest();
		}
		//IE
		else if(window.ActiveXObject)
		{
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//les navigateurs non compatibles
		else
		{
			return(false);
		}
		//lecture de la page fichier
		xhr_object.open("GET","carte_consult.php5", false);
		xhr_object.send(null);
		if(xhr_object.readyState == 4)
		{
			document.getElementById("affcrt").innerHTML = xhr_object.responseText;
		}
	}
	
	function imprim()
	{
		document.location.href="imprim.php?zom="+zom
	}
	
	function zoom(arg)
	{
		zom=arg.value;
	}
	
	function localiser(obj,e,tx) 
	{
		if(e && e.stopPropagation && e.preventDefault)
		{
			e.stopPropagation();
			e.preventDefault();
		}
		else if(e && window.event)
		{
			window.event.cancelBubble = true;
			window.event.returnValue = false;
		}
		if( typeof(e.offsetX) != 'undefined' ) 
		{
		    rX = e.offsetX;
		    rY = e.offsetY;
		}
		else 
		{
		    rX = e.layerX;
		    rY = e.layerY;
		}
		rX=Math.floor(rX/tx);
		rY=Math.floor(rY/tx);
		if(window.XMLHttpRequest)
		{
			xhr_object = new XMLHttpRequest();
		}
		//IE
		else if(window.ActiveXObject)
		{
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//les navigateurs non compatibles
		else
		{
			return(false);
		}
		//lecture de la page fichier
		xhr_object.open("GET","zoom.php5?x="+rX+"&y="+rY+"&zom="+zom, false);
		xhr_object.send(null);
		if(xhr_object.readyState == 4)
		{
			document.getElementById("affcrt").innerHTML = xhr_object.responseText;
		}
	}
	
	function chargeFichier() 
	{
		if(window.XMLHttpRequest)
		{
			xhr_object = new XMLHttpRequest();
		}
		//IE
		else if(window.ActiveXObject)
		{
			xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
		}
		//les navigateurs non compatibles
		else
		{
			return(false);
		}
		//lecture de la page fichier
		xhr_object.open("GET","minimap.php5", false);
		xhr_object.send(null);
		if(xhr_object.readyState == 4)
		{
			document.getElementById("minimap").innerHTML = xhr_object.responseText;
		}
	}
	
