// JavaScript Document

function montrer_cacher(divId)
{
	div=document.getElementById(divId);
	
	if(div.style.display=='none')
	{
		div.style.display='block';
	}
	else
	{
		div.style.display=='none;'
	}
}

function envoyerImage(post)
{
	//alert(post);
	
	var resultat=file('http://www.base-informatique.com/uploader_image.php?image='+post);
	
	alert(resultat);
	
}

function file(fichier)
{
    if(window.XMLHttpRequest) xhr_object = new XMLHttpRequest(); // FIREFOX
     
	 else if(window.ActiveXObject) xhr_object = new ActiveXObject("Microsoft.XMLHTTP");// IE
    
	 else return(false); 
	 xhr_object.open("GET", fichier, false);
     xhr_object.send(null);
     if(xhr_object.readyState == 4) return(xhr_object.responseText);
     else return(false);
}
