var key = "this is a 24 byte key !!";
if(lireCookie('session_ouverte') != 'yes')
{
	var mot_de_passe = prompt('Cette partie est réservée aux médecins. Entrez votre mot de passe : ');
		
	if(mot_de_passe != null)
	{	
		mot_de_passe = des(key, mot_de_passe, 1, 0);	
		if(stringToHex(mot_de_passe) == '0xa56f13d7875468a3')
		{
			creerCookie('session_ouverte', 'yes');
		}
		else
		{
			location.href="index.html";
		}
	}
	else
	{
		location.href="index.html";
	}
}
