function signinContact(nom,companyName,email,phone,objet,message)
{
	var OAjax;
	if (window.XMLHttpRequest) OAjax = new XMLHttpRequest();
	else if (window.ActiveXObject) OAjax = new ActiveXObject('Microsoft.XMLHTTP'); 
	OAjax.open('POST',"signinContact.php",true);
	OAjax.onreadystatechange = function()
	{
		if (OAjax.readyState == 4 && OAjax.status==200)
		{
			if (document.getElementById) 
			{	
				if (OAjax.responseText == 'true')
				{	
					//alert('Votre demande a bien été envoyée !');
					document.getElementById('msg').innerHTML='Merci! Votre demande a bien été envoyée.';
					//ViewContent('page', 'accueil/accueil.php', 'GET', null);
				}
				else
				{
					document.getElementById('msg').innerHTML=OAjax.responseText;
				}
			}
		}
	}
	OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	OAjax.send('nom='+nom+'&companyName='+companyName+'&email='+email+'&phone='+phone+'&objet='+objet+'&message='+message);
}

function signinCandidat(email,password,confirmPassword,salutation,maritalStatus,lastName,firstName,birthdate,streetNumber,streetName,town,region,department,phone,profession,qualification,annualTraining,managerCenter,typeEmploi,experience,dispo,mobilite,designation,comments)
{
	var OAjax;
	if (window.XMLHttpRequest) OAjax = new XMLHttpRequest();
	else if (window.ActiveXObject) OAjax = new ActiveXObject('Microsoft.XMLHTTP'); 
	OAjax.open('POST',"signinCandidat.php",true);
	OAjax.onreadystatechange = function()
	{
		if (OAjax.readyState == 4 && OAjax.status==200)
		{
			if (document.getElementById) 
			{	
				if (OAjax.responseText == 'true') {	
				//alert('Votre êtes maintenant incrit à la NewsLetter !');
				document.getElementById('msg').innerHTML='Inscription réussie';
				//ViewContent('page', 'accueil/accueil.php', 'GET', null)
				
				}else{
				document.getElementById('msg').innerHTML=OAjax.responseText;
				}
			}
		}
	}
	OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	OAjax.send('salutation='+salutation+'&maritalStatus='+maritalStatus+'&lastName='+lastName+'&firstName='+firstName+'&birthdate='+birthdate+'&streetNumber='+streetNumber+'&streetName='+streetName+'&town='+town+'&region='+region+'&department='+department+'&phone='+phone+'&email='+email+'&password='+password+'&confirmPassword='+confirmPassword+'&profession='+profession+'&qualification='+qualification+'&annualTraining='+annualTraining+'&managerCenter='+managerCenter+'&typeEmploi='+typeEmploi+'&experience='+experience+'&dispo='+dispo+'&mobilite='+mobilite+'&designation='+designation+'&comments='+comments);
}

function signinEmployer(companyName,streetNumber,streetName,town,region,department,companyName2,streetNumber2,streetName2,town2,region2,department2,phone,fax,email,password,confirmPassword,website,contact,directLine)
{
	var OAjax;
	if (window.XMLHttpRequest) OAjax = new XMLHttpRequest();
	else if (window.ActiveXObject) OAjax = new ActiveXObject('Microsoft.XMLHTTP'); 
	OAjax.open('POST',"signinEmployer.php",true);
	OAjax.onreadystatechange = function()
	{
		if (OAjax.readyState == 4 && OAjax.status==200)
		{
			if (document.getElementById) 
			{	
				if (OAjax.responseText == 'true') {	
					document.getElementById('msg').innerHTML='Inscription réussie';
				
					/*if(CDC == 'oui'){
						alert('Vous avez choisi de remplir le Cahier des Charges vous-même ! Vous passez à l\'Etape 1 : Contexte');
						ViewContent('page', 'contacts/CDC1.php', 'GET', 'reponse=&idDDD='+OAjax.responseText+'&')	
					}else{
						alert('Votre demande de devis a bien été envoyé !');
						ViewContent('page', 'accueil/accueil.php', 'GET', null)
					}*/

				
				}else{
					document.getElementById('msg').innerHTML=OAjax.responseText;
				}
			}
		}
	}
	OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	OAjax.send('companyName='+companyName+'&streetNumber='+streetNumber+'&streetName='+streetName+'&town='+town+'&region='+region+'&department='+department+'&companyName2='+companyName2+'&streetNumber2='+streetNumber2+'&streetName2='+streetName2+'&town2='+town2+'&region2='+region2+'&department2='+department2+'&phone='+phone+'&fax='+fax+'&email='+email+'&password='+password+'&confirmPassword='+confirmPassword+'&website='+website+'&contact='+contact+'&directLine='+directLine);
}

function signinRDV(nom,prenom,entreprise,secteur,tel,fax,email,localisation,cp,ville,disponibilites)
{
	var OAjax;
	if (window.XMLHttpRequest) OAjax = new XMLHttpRequest();
	else if (window.ActiveXObject) OAjax = new ActiveXObject('Microsoft.XMLHTTP'); 
	OAjax.open('POST',"signinRDV.php",true);
	OAjax.onreadystatechange = function()
	{
		if (OAjax.readyState == 4 && OAjax.status==200)
		{
			if (document.getElementById) 
			{
				if (OAjax.responseText == 'true') {	
					alert('Votre demande a bien été envoyé !');
					document.getElementById('msg').innerHTML='';
					ViewContent('page', 'accueil/accueil.php', 'GET', null);
				}
				else {
					document.getElementById('msg').innerHTML=OAjax.responseText;
				}
			}
		}
	}
	OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	OAjax.send('nom='+nom+'&prenom='+prenom+'&entreprise='+entreprise+'&secteur='+secteur+'&tel='+tel+'&fax='+fax+'&email='+email+'&localisation='+localisation+'&cp='+cp+'&ville='+ville+'&disponibilites='+disponibilites);
}
