function getXhr()
{
	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) {
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		else 
		{ // XMLHttpRequest non supporté par le navigateur 
			alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
			xhr = false; 
		} 
	return xhr;
}

function infoasbl()
{
	var secteur = document.getElementById("secteur");
	var personnel = document.getElementById("personnel");
	var facturation = document.getElementById("facturation");
	var stocks = document.getElementById("stocks");
	var caisse = document.getElementById("caisse");
	var analyt = document.getElementById("analyt");
	var budgets = document.getElementById("bugdets");
	var subsides = document.getElementById("subsides");
	
	var erp = document.getElementById("erp");	
	var logiciel = document.getElementById("logiciel");
	var logfidu = document.getElementById("logfidu");
	var fiduciaire = document.getElementById("fiduciaire");
	var encodage = document.getElementById("encodage");
	
	var utilcompta = document.getElementById("utilcompta");	
	var utilfac = document.getElementById("utilfac");
	var utilsubsides = document.getElementById("utilsubsides");
	var utilautres = document.getElementById("utilautres");
	
	var prenom = document.getElementById("prenom");
	var nom = document.getElementById("nom");
	var societe = document.getElementById("societe");
	var fonction = document.getElementById("fonction");
	var adresse = document.getElementById("adresse");
	var cp = document.getElementById("cp");
	var ville = document.getElementById("ville");
	var tel = document.getElementById("tel");
	var fax = document.getElementById("fax");
	var email = document.getElementById("email");	
	var siteweb = document.getElementById("siteweb");
	var commen = document.getElementById("commen");
	var action = document.getElementById("envoi-tarif");	
	var message = document.getElementById("message");	

	var isOk=true;
	var params="";
	prenom.style.backgroundColor = "#FFFFFF";
	nom.style.backgroundColor = "#FFFFFF";
	email.style.backgroundColor = "#FFFFFF";
	
	secteur.style.backgroundColor = "#FFFFFF";
	personnel.style.backgroundColor = "#FFFFFF";
	facturation.style.backgroundColor = "#FFFFFF";
	stocks.style.backgroundColor = "#FFFFFF";
	caisse.style.backgroundColor = "#FFFFFF";
	analyt.style.backgroundColor = "#FFFFFF";
	budgets.style.backgroundColor = "#FFFFFF";
	subsides.style.backgroundColor = "#FFFFFF";
	
	logiciel.style.backgroundColor = "#FFFFFF";
	fiduciaire.style.backgroundColor = "#FFFFFF";
	logfidu.style.backgroundColor = "#FFFFFF";
	erp.style.backgroundColor = "#FFFFFF";
	encodage.style.backgroundColor = "#FFFFFF";
	utilcompta.style.backgroundColor = "#FFFFFF";
	utilfac.style.backgroundColor = "#FFFFFF";
	utilsubsides.style.backgroundColor = "#FFFFFF";
	utilautres.style.backgroundColor = "#FFFFFF";
	
	if(personnel.value=="choix")
	{
		personnel.style.backgroundColor = "#FF0000";
		isOk=false;
	}	
	if(facturation.value=="choix")
	{
		facturation.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(stocks.value=="choix")
	{
		stocks.style.backgroundColor = "#FF0000";
		isOk=false;
	}if(subsides.value=="choix")
	{
		subsides.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(caisse.value=="choix")
	{
		caisse.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(analyt.value=="choix")
	{
		analyt.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(budgets.value=="choix")
	{
		budgets.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(erp.value=="choix")
	{
		erp.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(encodage.value=="choix")
	{
		encodage.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logfidu.value=="choix")
	{
		logfidu.style.backgroundColor = "#FF0000";
		isOk=false;
	}

	if(utilcompta.value=="choix")
	{
		utilcompta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilfac.value=="choix")
	{
		utilfac.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilsubsides.value=="choix")
	{
		utilsubsides.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilautres.value=="choix")
	{
		utilautres.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(fiduciaire.value=="")
	{
		fiduciaire.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logiciel.value=="")
	{
		logiciel.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(secteur.value=="")
	{
		secteur.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(prenom.value=="")
	{
		prenom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(nom.value=="")
	{
		nom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(email.value=="")
	{
		email.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(isOk==true)
	{	
			
		var xhr = getXhr();
		xhr.onreadystatechange = function(){
			
			if(xhr.readyState == 4 && xhr.status == 200){
				leselect = xhr.responseText;
				
				if(leselect=="1")
				{
					action.innerHTML = "";
					message.style.color = "#FFFFFF";
					message.innerHTML = "Nous vous remercions pour l’intérêt que vous portez à notre société et nous traitons votre demande dans les meilleurs délais.";
				}
				else
				{
					message.innerHTML = "Le message n&rsquo;a pu &ecirc;tre envoy&eacute; !";
					message.style.color = "#FF0000";
				}				
			}
			
		}
		xhr.open("POST","envoiasbl.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		
		params = "secteur="+secteur.value+"&personnel="+personnel.value+"&facturation="+facturation.value+"&stocks="+stocks.value+"&caisse="+caisse.value+"&analyt="+analyt.value+"&budgets="+bugdets.value+"&subsides="+subsides.value+"&erp="+erp.value+"&logiciel="+logiciel.value+"&logfidu="+logfidu.value+"&fiduciaire="+fiduciaire.value+"&encodage="+encodage.value+"&utilcompta="+utilcompta.value+"&utilfac="+utilfac.value+"&utilsubsides="+utilsubsides.value+"&utilautres="+utilautres.value;
	
		params = params + "&nom="+nom.value+"&prenom="+prenom.value+"&societe="+societe.value+"&fonction="+fonction.value+"&adresse="+adresse.value+"&cp="+cp.value+"&ville="+ville.value+"&tel="+tel.value+"&fax="+fax.value+"&email="+email.value+"&siteweb="+siteweb.value+"&commen="+commen.value;	
		xhr.send(params);
	}
	else
	{
		message.innerHTML = "Un ou plusieurs champs ont &eacute;t&eacute; mal encod&eacute;s !";
		message.style.color = "#FF0000";
	}
}

function infocommerce()
{
	
	var secteur = document.getElementById("secteur");
	var magasins = document.getElementById("magasins");
	var caisses = document.getElementById("caisses");
	var vendeurs = document.getElementById("vendeurs");
	var facturation = document.getElementById("facturation");
	var stocks = document.getElementById("stocks");
	var offres = document.getElementById("offres");
	var analyt = document.getElementById("analyt");
	var budgets = document.getElementById("budgets");
	var bnb = document.getElementById("bnb");
	
	var erp = document.getElementById("erp");	
	var logiciel = document.getElementById("logiciel");
	var logfidu = document.getElementById("logfidu");
	var fiduciaire = document.getElementById("fiduciaire");
	var encodage = document.getElementById("encodage");
		
	var utilcompta = document.getElementById("utilcompta");
	var utilfac = document.getElementById("utilfac");
	var utilcaisse = document.getElementById("utilcaisse");
	var utilautre = document.getElementById("utilautre");
		
	var prenom = document.getElementById("prenom");
	var nom = document.getElementById("nom");
	var societe = document.getElementById("societe");
	var fonction = document.getElementById("fonction");
	var adresse = document.getElementById("adresse");
	var cp = document.getElementById("cp");
	var ville = document.getElementById("ville");
	var tel = document.getElementById("tel");
	var fax = document.getElementById("fax");
	var email = document.getElementById("email");	
	var siteweb = document.getElementById("siteweb");
	var commen = document.getElementById("commen");
	var action = document.getElementById("envoi-tarif");	
	var message = document.getElementById("message");	

	var isOk=true;
	prenom.style.backgroundColor = "#FFFFFF";
	nom.style.backgroundColor = "#FFFFFF";
	email.style.backgroundColor = "#FFFFFF";	
	
	secteur.style.backgroundColor = "#FFFFFF";
	magasins.style.backgroundColor = "#FFFFFF";
	caisses.style.backgroundColor = "#FFFFFF";
	vendeurs.style.backgroundColor = "#FFFFFF";
	facturation.style.backgroundColor = "#FFFFFF";
	stocks.style.backgroundColor = "#FFFFFF";
	offres.style.backgroundColor = "#FFFFFF";
	analyt.style.backgroundColor = "#FFFFFF";
	budgets.style.backgroundColor = "#FFFFFF";
	bnb.style.backgroundColor = "#FFFFFF";
	
	erp.style.backgroundColor = "#FFFFFF";	
	logiciel.style.backgroundColor = "#FFFFFF";
	logfidu.style.backgroundColor = "#FFFFFF";
	fiduciaire.style.backgroundColor = "#FFFFFF";
	encodage.style.backgroundColor = "#FFFFFF";		
	utilcompta.style.backgroundColor = "#FFFFFF";
	utilfac.style.backgroundColor = "#FFFFFF";
	utilcaisse.style.backgroundColor = "#FFFFFF";
	utilautre.style.backgroundColor = "#FFFFFF";
				
	if(erp.value=="choix")
	{
		erp.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logfidu.value=="choix")
	{
		logfidu.style.backgroundColor = "#FF0000";
		isOk=false;
	}	
	if(encodage.value=="choix")
	{
		encodage.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(magasins.value=="choix")
	{
		magasins.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(caisses.value=="choix")
	{
		caisses.style.backgroundColor = "#FF0000";
		isOk=false;
	}	
	if(vendeurs.value=="choix")
	{
		vendeurs.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(facturation.value=="choix")
	{
		facturation.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(stocks.value=="choix")
	{
		stocks.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(offres.value=="choix")
	{
		offres.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(analyt.value=="choix")
	{
		analyt.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(budgets.value=="choix")
	{
		budgets.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(bnb.value=="choix")
	{
		bnb.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(logiciel.value=="")
	{
		logiciel.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(fiduciaire.value=="")
	{
		fiduciaire.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilcompta.value=="")
	{
		utilcompta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilfac.value=="")
	{
		utilfac.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilcaisse.value=="")
	{
		utilcaisse.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilautre.value=="")
	{
		utilautre.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(secteur.value=="")
	{
		secteur.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(prenom.value=="")
	{
		prenom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(nom.value=="")
	{
		nom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(email.value=="")
	{
		email.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(isOk==true)
	{	
			
		var xhr = getXhr();
		xhr.onreadystatechange = function(){
			
			if(xhr.readyState == 4 && xhr.status == 200){
				leselect = xhr.responseText;
				
				if(leselect=="1")
				{
					action.innerHTML = "";
					message.style.color = "#FFFFFF";
					message.innerHTML = "Nous vous remercions pour l’intérêt que vous portez à notre société et nous traitons votre demande dans les meilleurs délais.";
				}
				else
				{
					message.innerHTML = "Le message n&rsquo;a pu &ecirc;tre envoy&eacute; !";
					message.style.color = "#FF0000";
				}				
			}
			
		}
		xhr.open("POST","envoicommerce.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		
		params = "secteur="+secteur.value+"&magasins="+magasins.value+"&caisses="+caisses.value+"&vendeurs="+vendeurs.value+"&facturation="+facturation.value+"&stocks="+stocks.value+"&offres="+offres.value+"&analyt="+analyt.value+"&budgets="+budgets.value+"&bnb="+bnb.value+"&erp="+erp.value+"&logiciel="+logiciel.value+"&logfidu="+logfidu.value+"&fiduciaire="+fiduciaire.value+"&encodage="+encodage.value+"&utilcompta="+utilcompta.value+"&utilfac="+utilfac.value+"&utilcaisse="+utilcaisse.value+"&utilautre="+utilautre.value;
	
		params = params + "&nom="+nom.value+"&prenom="+prenom.value+"&societe="+societe.value+"&fonction="+fonction.value+"&adresse="+adresse.value+"&cp="+cp.value+"&ville="+ville.value+"&tel="+tel.value+"&fax="+fax.value+"&email="+email.value+"&siteweb="+siteweb.value+"&commen="+commen.value;	
		xhr.send(params);
	}
	else
	{
		message.innerHTML = "Un ou plusieurs champs ont &eacute;t&eacute; mal encod&eacute;s !";
		message.style.color = "#FF0000";
	}
}

function infofiduciaire()
{
	var typeclient = document.getElementById("typeclient");
	var newclient = document.getElementById("newclient");
	var moreactivites = document.getElementById("moreactivites");
	var logcomptaactu = document.getElementById("logcomptaactu");
	var logutilbnb = document.getElementById("logutilbnb");
	var logfisc = document.getElementById("logfisc");
	var loggesttemps = document.getElementById("loggesttemps");
	var loggestdossier = document.getElementById("loggestdossier");
	var logplanfinan = document.getElementById("logplanfinan");
	var autrelog = document.getElementById("autrelog");

	var fisc = document.getElementById("fisc");
	var compta = document.getElementById("compta");
	var comptagest = document.getElementById("comptagest");
	var controlecpta = document.getElementById("controlecpta");
	var jurfisc = document.getElementById("jurfisc");
	var subsides = document.getElementById("subsides");
	var droitsocial = document.getElementById("droitsocial");
	var consgestion = document.getElementById("consgestion");
	var autre = document.getElementById("autre");
	
	var prenom = document.getElementById("prenom");
	var nom = document.getElementById("nom");
	var societe = document.getElementById("societe");
	var fonction = document.getElementById("fonction");
	var adresse = document.getElementById("adresse");
	var cp = document.getElementById("cp");
	var ville = document.getElementById("ville");
	var tel = document.getElementById("tel");
	var fax = document.getElementById("fax");
	var email = document.getElementById("email");	
	var siteweb = document.getElementById("siteweb");
	var commen = document.getElementById("commen");
	var action = document.getElementById("envoi-tarif");	
	var message = document.getElementById("message");	

	var isOk=true;
	prenom.style.backgroundColor = "#FFFFFF";
	nom.style.backgroundColor = "#FFFFFF";
	email.style.backgroundColor = "#FFFFFF";
	
	typeclient.style.backgroundColor = "#FFFFFF";
	newclient.style.backgroundColor = "#FFFFFF";
	moreactivites.style.backgroundColor = "#FFFFFF";
	logcomptaactu.style.backgroundColor = "#FFFFFF";
	logutilbnb.style.backgroundColor = "#FFFFFF";
	logfisc.style.backgroundColor = "#FFFFFF";
	loggesttemps.style.backgroundColor = "#FFFFFF";
	loggestdossier.style.backgroundColor = "#FFFFFF";
	logplanfinan.style.backgroundColor = "#FFFFFF";
	autrelog.style.backgroundColor = "#FFFFFF";

	fisc.style.backgroundColor = "#FFFFFF";
	compta.style.backgroundColor = "#FFFFFF";
	comptagest.style.backgroundColor = "#FFFFFF";
	controlecpta.style.backgroundColor = "#FFFFFF";
	jurfisc.style.backgroundColor = "#FFFFFF";
	subsides.style.backgroundColor = "#FFFFFF";
	droitsocial.style.backgroundColor = "#FFFFFF";
	consgestion.style.backgroundColor = "#FFFFFF";
	autre.style.backgroundColor = "#FFFFFF";
	
	if(newclient.value=="choix")
	{
		newclient.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(moreactivites.value=="choix")
	{
		moreactivites.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(fisc.value=="choix")
	{
		fisc.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(compta.value=="choix")
	{
		compta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(comptagest.value=="choix")
	{
		comptagest.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(controlecpta.value=="choix")
	{
		controlecpta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(jurfisc.value=="choix")
	{
		jurfisc.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(subsides.value=="choix")
	{
		subsides.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(droitsocial.value=="choix")
	{
		droitsocial.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(consgestion.value=="choix")
	{
		consgestion.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(typeclient.value=="")
	{
		typeclient.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logcomptaactu.value=="")
	{
		logcomptaactu.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logutilbnb.value=="")
	{
		logutilbnb.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logfisc.value=="")
	{
		logfisc.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(loggesttemps.value=="")
	{
		loggesttemps.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(loggestdossier.value=="")
	{
		loggestdossier.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logplanfinan.value=="")
	{
		logplanfinan.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(autre.value=="")
	{
		autre.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	
	if(prenom.value=="")
	{
		prenom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(nom.value=="")
	{
		nom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(email.value=="")
	{
		email.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(isOk==true)
	{	
			
		var xhr = getXhr();
		xhr.onreadystatechange = function(){
			
			if(xhr.readyState == 4 && xhr.status == 200){
				leselect = xhr.responseText;
				
				if(leselect=="1")
				{
					action.innerHTML = "";
					message.style.color = "#FFFFFF";
					message.innerHTML = "Nous vous remercions pour l’intérêt que vous portez à notre société et nous traitons votre demande dans les meilleurs délais.";
				}
				else
				{
					message.innerHTML = "Le message n&rsquo;a pu &ecirc;tre envoy&eacute; !";
					message.style.color = "#FF0000";
				}				
			}
			
		}
		xhr.open("POST","envoifiduciaire.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');

		params = "typeclient="+typeclient.value+"&newclient="+newclient.value+"&moreactivites="+moreactivites.value+"&logcomptaactu="+logcomptaactu.value+"&logutilbnb="+logutilbnb.value+"&logfisc="+logfisc.value+"&loggesttemps="+loggesttemps.value+"&loggestdossier="+loggestdossier.value+"&logplanfinan="+logplanfinan.value+"&autrelog="+autrelog.value+"&fisc="+fisc.value+"&compta="+compta.value+"&comptagest="+comptagest.value+"&controlecpta="+controlecpta.value+"&jurfisc="+jurfisc.value+"&subsides="+subsides.value+"&droitsocial="+droitsocial.value+"&consgestion="+consgestion.value+"&autre="+autre.value;

		params = params + "&nom="+nom.value+"&prenom="+prenom.value+"&societe="+societe.value+"&fonction="+fonction.value+"&adresse="+adresse.value+"&cp="+cp.value+"&ville="+ville.value+"&tel="+tel.value+"&fax="+fax.value+"&email="+email.value+"&siteweb="+siteweb.value+"&commen="+commen.value;	
		xhr.send(params);
	}
	else
	{
		message.innerHTML = "Un ou plusieurs champs ont &eacute;t&eacute; mal encod&eacute;s !";
		message.style.color = "#FF0000";
	}
}
function infoentreprise() 
{
	
	
	var secteur = document.getElementById("secteur");
	var societes = document.getElementById("societes");
	var utils = document.getElementById("utils");
	var facturation = document.getElementById("facturation");
	var stocks = document.getElementById("stocks");
	var offres = document.getElementById("offres");
	var caisse = document.getElementById("caisse");
	var analyt = document.getElementById("analyt");
	var bugdets = document.getElementById("bugdets");
	var bnb = document.getElementById("bnb");
	
	var erp = document.getElementById("erp");
	var logiciel = document.getElementById("logiciel");
	var logfidu = document.getElementById("logfidu");
	var fiduciaire = document.getElementById("fiduciaire");
	var encodage = document.getElementById("encodage");
	
	var utilcompta = document.getElementById("utilcompta");
	var utilfac = document.getElementById("utilfac");
	var utilgesttemps = document.getElementById("utilgesttemps");
	var utilautre = document.getElementById("utilautre");
		
	var prenom = document.getElementById("prenom");
	var nom = document.getElementById("nom");
	var societe = document.getElementById("societe");
	var fonction = document.getElementById("fonction");
	var adresse = document.getElementById("adresse");
	var cp = document.getElementById("cp");
	var ville = document.getElementById("ville");
	var tel = document.getElementById("tel");
	var fax = document.getElementById("fax");
	var email = document.getElementById("email");	
	var siteweb = document.getElementById("siteweb");
	var commen = document.getElementById("commen");
	var action = document.getElementById("envoi-tarif");	
	var message = document.getElementById("message");	

	var isOk=true;
	prenom.style.backgroundColor = "#FFFFFF";
	nom.style.backgroundColor = "#FFFFFF";
	email.style.backgroundColor = "#FFFFFF";
	
	secteur.style.backgroundColor = "#FFFFFF";
	societes.style.backgroundColor = "#FFFFFF";
	utils.style.backgroundColor = "#FFFFFF";
	facturation.style.backgroundColor = "#FFFFFF";
	stocks.style.backgroundColor = "#FFFFFF";
	offres.style.backgroundColor = "#FFFFFF";
	caisse.style.backgroundColor = "#FFFFFF";
	analyt.style.backgroundColor = "#FFFFFF";
	bugdets.style.backgroundColor = "#FFFFFF";
	bnb.style.backgroundColor = "#FFFFFF";
	
	erp.style.backgroundColor = "#FFFFFF";
	logiciel.style.backgroundColor = "#FFFFFF";
	logfidu.style.backgroundColor = "#FFFFFF";
	fiduciaire.style.backgroundColor = "#FFFFFF";
	encodage.style.backgroundColor = "#FFFFFF";
	
	utilcompta.style.backgroundColor = "#FFFFFF";
	utilfac.style.backgroundColor = "#FFFFFF";
	utilgesttemps.style.backgroundColor = "#FFFFFF";
	utilautre.style.backgroundColor = "#FFFFFF";

	if(societes.value=="choix")
	{
		societes.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utils.value=="choix")
	{
		utils.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(facturation.value=="choix")
	{
		facturation.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(stocks.value=="choix")
	{
		stocks.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(offres.value=="choix")
	{
		offres.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(caisse.value=="choix")
	{
		caisse.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(analyt.value=="choix")
	{
		analyt.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(bugdets.value=="choix")
	{
		bugdets.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(bnb.value=="choix")
	{
		bnb.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(erp.value=="choix")
	{
		erp.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(logfidu.value=="choix")
	{
		logfidu.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(encodage.value=="choix")
	{
		encodage.style.backgroundColor = "#FF0000";
		isOk=false;
	}

	if(logiciel.value=="")
	{
		logiciel.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(fiduciaire.value=="")
	{
		fiduciaire.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilcompta.value=="")
	{
		utilcompta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilfac.value=="")
	{
		utilfac.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilgesttemps.value=="")
	{
		utilgesttemps.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilautre.value=="")
	{
		utilautre.style.backgroundColor = "#FF0000";
		isOk=false;
	}	
	if(secteur.value=="")
	{
		secteur.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(prenom.value=="")
	{
		prenom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(nom.value=="")
	{
		nom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(email.value=="")
	{
		email.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(isOk==true)
	{	
			
		var xhr = getXhr();
		xhr.onreadystatechange = function(){
			
			if(xhr.readyState == 4 && xhr.status == 200){
				leselect = xhr.responseText;
				
				if(leselect=="1")
				{
					action.innerHTML = "";
					message.style.color = "#FFFFFF";
					message.innerHTML = "Nous vous remercions pour l’intérêt que vous portez à notre société et nous traitons votre demande dans les meilleurs délais.";
				}
				else
				{
					message.innerHTML = "Le message n&rsquo;a pu &ecirc;tre envoy&eacute; !";
					message.style.color = "#FF0000";
				}				
			}
			
		}
		xhr.open("POST","envoientreprise.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	
	  	params = "secteur="+secteur.value+"&societes="+societes.value+"&utils="+utils.value+"&facturation="+facturation.value+"&stocks="+stocks.value+"&offres="+offres.value+"&caisse="+caisse.value+"&analyt="+analyt.value+"&bugdets="+bugdets.value+"&bnb="+bnb.value+"&erp="+erp.value+"&logiciel="+logiciel.value+"&logfidu="+logfidu.value+"&fiduciaire="+fiduciaire.value+"&encodage="+encodage.value+"&utilcompta="+utilcompta.value+"&utilfac="+utilfac.value+"&utilgesttemps="+utilgesttemps.value+"&utilautre="+utilautre.value;
	
		params = params + "&nom="+nom.value+"&prenom="+prenom.value+"&societe="+societe.value+"&fonction="+fonction.value+"&adresse="+adresse.value+"&cp="+cp.value+"&ville="+ville.value+"&tel="+tel.value+"&fax="+fax.value+"&email="+email.value+"&siteweb="+siteweb.value+"&commen="+commen.value;	
		xhr.send(params);
	}
	else
	{
		message.innerHTML = "Un ou plusieurs champs ont &eacute;t&eacute; mal encod&eacute;s !";
		message.style.color = "#FF0000";
	}
}
function infoenseignement()
{
	
	var niveaux = document.getElementById("niveaux");
	var section = document.getElementById("section");
	var theocompta = document.getElementById("theocompta");
	var pratcompta = document.getElementById("pratcompta");
	var inforcompta = document.getElementById("inforcompta");
	var gestion = document.getElementById("gestion");
	var fisc = document.getElementById("fisc");
	
	var utilcompta = document.getElementById("utilcompta");
	var utilfac = document.getElementById("utilfac");
	var utilstock = document.getElementById("utilstock");
	var utilfin = document.getElementById("utilfin");
	var utilfisc = document.getElementById("utilfisc");
	var utilbureau = document.getElementById("utilbureau");
	var utilautre = document.getElementById("utilautre");
		
	var prenom = document.getElementById("prenom");
	var nom = document.getElementById("nom");
	var societe = document.getElementById("societe");
	var fonction = document.getElementById("fonction");
	var adresse = document.getElementById("adresse");
	var cp = document.getElementById("cp");
	var ville = document.getElementById("ville");
	var tel = document.getElementById("tel");
	var fax = document.getElementById("fax");
	var email = document.getElementById("email");	
	var siteweb = document.getElementById("siteweb");
	var commen = document.getElementById("commen");
	var action = document.getElementById("envoi-tarif");	
	var message = document.getElementById("message");	

	var isOk=true;
	prenom.style.backgroundColor = "#FFFFFF";
	nom.style.backgroundColor = "#FFFFFF";
	email.style.backgroundColor = "#FFFFFF";
	
	niveaux.style.backgroundColor = "#FFFFFF";
	section.style.backgroundColor = "#FFFFFF";
	theocompta.style.backgroundColor = "#FFFFFF";
	pratcompta.style.backgroundColor = "#FFFFFF";
	inforcompta.style.backgroundColor = "#FFFFFF";
	gestion.style.backgroundColor = "#FFFFFF";
	fisc.style.backgroundColor = "#FFFFFF";
	
	utilcompta.style.backgroundColor = "#FFFFFF";
	utilfac.style.backgroundColor = "#FFFFFF";
	utilstock.style.backgroundColor = "#FFFFFF";
	utilfin.style.backgroundColor = "#FFFFFF";
	utilfisc.style.backgroundColor = "#FFFFFF";
	utilbureau.style.backgroundColor = "#FFFFFF";
	utilautre.style.backgroundColor = "#FFFFFF";
	
	if(theocompta.value=="choix")
	{
		theocompta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(pratcompta.value=="choix")
	{
		pratcompta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(inforcompta.value=="choix")
	{
		inforcompta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(gestion.value=="choix")
	{
		gestion.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(fisc.value=="choix")
	{
		fisc.style.backgroundColor = "#FF0000";
		isOk=false;
	}
		
	if(niveaux.value=="")
	{
		niveaux.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(section.value=="")
	{
		section.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilcompta.value=="")
	{
		utilcompta.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilfac.value=="")
	{
		utilfac.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilstock.value=="")
	{
		utilstock.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilfin.value=="")
	{
		utilfin.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilfisc.value=="")
	{
		utilfisc.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilbureau.value=="")
	{
		utilbureau.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(utilautre.value=="")
	{
		utilautre.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(prenom.value=="")
	{
		prenom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(nom.value=="")
	{
		nom.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	if(email.value=="")
	{
		email.style.backgroundColor = "#FF0000";
		isOk=false;
	}
	
	if(isOk==true)
	{	
			
		var xhr = getXhr();
		xhr.onreadystatechange = function(){
			
			if(xhr.readyState == 4 && xhr.status == 200){
				leselect = xhr.responseText;
				
				if(leselect=="1")
				{
					action.innerHTML = "";
					message.style.color = "#FFFFFF";
					message.innerHTML = "Nous vous remercions pour l’intérêt que vous portez à notre société et nous traitons votre demande dans les meilleurs délais.";
				}
				else
				{
					message.innerHTML = "Le message n&rsquo;a pu &ecirc;tre envoy&eacute; !";
					message.style.color = "#FF0000";
				}				
			}
			
		}
		xhr.open("POST","envoienseignement.php",true);
		xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		
		params = "niveaux="+niveaux.value+"&section="+section.value+"&theocompta="+theocompta.value+"&pratcompta="+pratcompta.value+"&inforcompta="+inforcompta.value+"&gestion="+gestion.value+"&fisc="+fisc.value+"&utilcompta="+utilcompta.value+"&utilfac="+utilfac.value+"&utilstock="+utilstock.value+"&utilfin="+utilfin.value+"&utilfisc="+utilfisc.value+"&utilbureau="+utilbureau.value+"&utilautre="+utilautre.value;
	
		params = params + "&nom="+nom.value+"&prenom="+prenom.value+"&societe="+societe.value+"&fonction="+fonction.value+"&adresse="+adresse.value+"&cp="+cp.value+"&ville="+ville.value+"&tel="+tel.value+"&fax="+fax.value+"&email="+email.value+"&siteweb="+siteweb.value+"&commen="+commen.value;	
		xhr.send(params);
	}
	else
	{
		message.innerHTML = "Un ou plusieurs champs ont &eacute;t&eacute; mal encod&eacute;s !";
		message.style.color = "#FF0000";
	}
}