function clicDt(lien)
	{
	var tab = lien.parentNode.parentNode.getElementsByTagName('*');

	var on = false;

	for (var j=0; j < tab.length; j++)
		{
		if (tab[j])
			{
			if (tab[j].tagName.toLowerCase()=='dt')
				{
				on = false;
				if (tab[j].firstChild.nodeValue==lien.nodeValue) on = true;
				}
			if (tab[j].tagName.toLowerCase()=='dd' && on) tab[j].style.display = (tab[j].style.display=='block'? 'none':'block');
			}
		}
	}
function cacher(id)
	{
	var tab = getElementsByTagName(id);

	tab.style.display = (tab.style.display=='block'? 'none':'block');

	}
	
function ShowHide(id) {
    obj = document.getElementsByTagName("ul");
    obj[id].style.display = (obj[id].style.display=='block'? 'none':'block');
}

function changeMenu(){
  if( document.getElementById){
    if( document.getElementById( 'ajax' ) ){
      var link = document.getElementById( 'ajax' );
      link.onclick = function(){
          return go(this);
      };
    }
  }
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(changeMenu);
/* addLoadEvent(nameOfSomeFunctionToRunOnPageLoad); */

				var xhr = null; 
	 
	 		function getXhr(){
				if(window.XMLHttpRequest) // Firefox et autres
				   xhr = new XMLHttpRequest(); 
				else if(window.ActiveXObject){ // Internet Explorer 
				   try {
			                xhr = new ActiveXObject("Msxml2.XMLHTTP");
			            } catch (e) {
			                xhr = new ActiveXObject("Microsoft.XMLHTTP");
			            }
				}
				else { // XMLHttpRequest non supporté par le navigateur 
				   alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
				   xhr = false; 
				} 
			}
			
			/**
			* Méthode qui sera appelée sur le click du bouton
			*/
			function go(){
				getXhr()
				// On défini ce qu'on va faire quand on aura la réponse
				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 && xhr.status == 200){
						alert(xhr.responseText);
					}
				}
				xhr.open("GET","http://www.toutankharton.com/squelettes/ajax.php",true);
				xhr.send(null);
			}
