<!-- 

// fonctions cookies déjà connues par adherents.js
// => à mettre dans la page HTML après adherents.js

function remplir_case_emploi_offre() // 
//----------------------------------------
{
var identifiant = GetCookie('popai'); // cookie adhérents

// inscription de l'identifiant dans la case :
//
if (identifiant != null)
	{
	document.formulaire_emploi.Identifiant.value = identifiant;
	}
}

function remplir_case_emploi_demande() // 
//--------------------------------------------
{
identifiant = GetCookie('popai_lambda'); //  cookie entreprise lambda :  pas adhérent : pas de confusion !

// inscription de l'identifiant dans la case :
//
if (identifiant != null)
	{
	document.formulaire_emploi.Identifiant.value = identifiant;
	}
}

function zone_emploi()
//--------------------
{
var rens_k = document.formulaire_emploi.Identifiant.value;

if (rens_k.length == 0)
	{ alert("\nPouvez-vous indiquer votre code d'accès ?"); return; }

else if (rens_k.length != 4 && rens_k.length != 6) // 4 chiffres pour adhérents POPAI // 6 chiffres pour entreprise lambda
	{ alert("\nCode d'accès non valide !"); return; }


// envoi
//-------
document.formulaire_emploi.submit();
}

//-->
