// JavaScript Document
/*$(document).ready(function(){
	alert('ok');
});*/
function ajax_go(value,langue){
	$.post('../Includes/menu/ssmenu.php',{value:value, lg:langue},
		   function(data){
			   if(data.length>0){
				   $('#menu2').html(data);
			   }
	});
}

/*function go_forfait(value){
	$.post('../interventions.php',{value:value},
		   function(data){
			   if(data.length>0){
				   $('#forfait').html(data);
			   }
	});
}*/

function go_forfait(value){
	document.getElementById('forfait').innerHTML = value;
}

function getXMLHTTP(){
  var xhr=null;
  if(window.XMLHttpRequest) // Firefox et autres
  xhr = new XMLHttpRequest();
  else if(window.ActiveXObject){ // Internet Explorer
    try {
      xhr = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhr = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e1) {
        xhr = null;
      }
    }
  }
  else { // XMLHttpRequest non supporté par le navigateur
    alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
  }
  return xhr;
}
