// JavaScript Document 
function validerBrochure( refForm, lang )
{
	var bchamp = null;
	if( refForm.nom.value == "" )
		bchamp = refForm.nom;
	
	if( bchamp == null && refForm.telephone.value == "" )
		bchamp = refForm.telephone;
		
	if( bchamp == null && refForm.courriel.value == "" )
		bchamp = refForm.courriel;
		
	if( bchamp == null && refForm.adresse.value == "" )
		bchamp = refForm.adresse;
		
	if( bchamp == null && refForm.ville.value == "" )
		bchamp = refForm.ville;
	
	if( bchamp == null && refForm.pays.value == "" )
		bchamp = refForm.pays;
		
	if( bchamp == null && refForm.province.value == "" )
		bchamp = refForm.province;
		
	if( bchamp == null && refForm.codepostal.value == "" )
		bchamp = refForm.codepostal;
	
	if( bchamp != null )
	{
		bchamp.focus();
		
		if( lang == "en" )
			alert( "This field required." );
		else
			alert( "Un des champs obligatoires est vide." );
	}
	
	return ( bchamp == null );
}

// JavaScript Document 
function validerSoumission( refForm, lang )
{
	var bchamp = null;
	if( refForm.nom.value == "" )
		bchamp = refForm.nom;
	
	if( bchamp == null && refForm.telephone.value == "" )
		bchamp = refForm.telephone;
		
	if( bchamp == null && refForm.courriel.value == "" )
		bchamp = refForm.courriel;
		
	if( bchamp == null && refForm.adresse.value == "" )
		bchamp = refForm.adresse;
		
	if( bchamp == null && refForm.ville.value == "" )
		bchamp = refForm.ville;
	
	if( bchamp == null && refForm.pays.value == "" )
		bchamp = refForm.pays;
		
	if( bchamp == null && refForm.province.value == "" )
		bchamp = refForm.province;
		
	if( bchamp == null && refForm.codepostal.value == "" )
		bchamp = refForm.codepostal;
	
	if( bchamp != null )
	{
		bchamp.focus();
		
		if( lang == "en" )
			alert( "This field required." );
		else
			alert( "Un des champs obligatoires est vide." );
	}
	
	return ( bchamp == null );
}

// JavaScript Document 
function validerEmploi( refForm, lang )
{
	var bchamp = null;
	if( refForm.nom.value == "" )
		bchamp = refForm.nom;
	
	if( bchamp == null && refForm.telephone.value == "" )
		bchamp = refForm.telephone;
		
	if( bchamp == null && refForm.courriel.value == "" )
		bchamp = refForm.courriel;
		
	if( bchamp == null && refForm.adresse.value == "" )
		bchamp = refForm.adresse;
		
	if( bchamp == null && refForm.ville.value == "" )
		bchamp = refForm.ville;
	
	if( bchamp == null && refForm.pays.value == "" )
		bchamp = refForm.pays;
		
	if( bchamp == null && refForm.province.value == "" )
		bchamp = refForm.province;
		
	if( bchamp == null && refForm.codepostal.value == "" )
		bchamp = refForm.codepostal;
	
	if( bchamp != null )
	{
		bchamp.focus();
		
		if( lang == "en" )
			alert( "This field required." );
		else
			alert( "Un des champs obligatoires est vide." );
	}
	
	return ( bchamp == null );
}
