function verifProfilEntreprise(a)
{
	var nom_entr      = document.form_contact.nom_entreprise.value;
	var adresse_entr  = document.form_contact.adresse.value;
	var cp_entr       = document.form_contact.code_postal.value;
	var ville_entr    = document.form_contact.ville.value;
	var login_cont    = document.form_contact.login.value;
	var password_cont = document.form_contact.password.value;
	var prenom_cont   = document.form_contact.prenom_contact.value;
	var nom_cont      = document.form_contact.nom_contact.value;
	var email_cont    = document.form_contact.email_contactvalue;

	if(trim(nom_entr) == ""||trim(adresse_entr) == ""||trim(cp_entr) == ""||trim(ville_entr) == ""||trim(login_cont) == ""||trim(password_cont) == ""||trim(prenom_cont) == ""|| trim(nom_cont) == ""||trim(email_cont) == "")
	{
		alert( "Vous n'avez pas rempli tous les champs obligatoires" );
		return false;
	}
	else 
	{
		if( verifMail(a) )
		{
			/*var confirmation=confirm("voulez vous valider le formulaire ?");
			if (confirmation==true)
			{*/
			return true;
		}
		else
		{
			return false;
		}
	}
}

/*************************************/
function verifMail(a)
{
	testm = false ;
	for( var j=1 ; j<(a.length) ; j++ ) 
	{
		if( a.charAt(j)=='@') 
		{
			if( j<(a.length-4 ))
			{
				for( var k=j ; k<(a.length-2) ; k++ )
				{
					if( a.charAt(k)=='.' ) testm = true;
				}
			}
		}
	}
	
	if( testm == false )
	alert( 'Votre adresse e-mail est incorrecte.' );
	
	return testm;
}
