function file(fichier){
     	if(window.XMLHttpRequest) /*FIREFOX*/ {xhr_object = new XMLHttpRequest();}
    	 else if(window.ActiveXObject) /*IE*/  {xhr_object = new ActiveXObject("Microsoft.XMLHTTP");} 
     	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);}
     }

function rnd() {
   ord=Math.random();
   ord=ord*10000000000000000000;
   return ord;
}
//********************// 
function getProgrammes() 
{
	 id_module  =  window.document.programme.id_module.value;
	 etatPrejet =  window.document.programme.etatPrejet.options[window.document.programme.etatPrejet.options.selectedIndex].value;
 
	  if ( texte = file( 'getProgrammes.php?id_module='+id_module+'&etatPrejet='+etatPrejet+'&rnd='+rnd() )  )
	  {
		  
		   document.getElementById('deuxSelect').innerHTML = texte;
		   document.getElementById("idProduit").className="selectNice1";
		   document.getElementById("etatPrejet").className="selectNice1";
	  }
	
}

/***/
function getDetailProgrammes() 
{
	 document.programme.submit();
}
