function login_mdp_absent()
{
 /* si un des champs n'est pas renseigné */
 //if (document.getElementById('login').value.length == 0)
 if (document.forms["index"].login.value.length == 0) 
 {
   alert ("Vous n'avez pas saisi votre login.");
	 return false;
 }
 else if (document.forms["index"].mdp.value.length == 0) //if (document.getElementById('mdp').value.length == 0)
 {
   alert ("Vous n'avez pas saisi votre mot de passe.");
	 return false;
 }
 else
 {
  return true;
 }
}

function fin_error2() 
{
  document.getElementById('error').style.visibility = 'hidden';
}

function fin_error()
{
  if (document.getElementById('error')) 
	{
    setTimeout("fin_error2()",2000);
	}
}

function new_mdp_absent()
{
// if (document.getElementById('mdp2').value.length == 0)
 if (document.forms["modif_mdp"].mdp2.value.length == 0)
 {
   alert ("Vous n'avez pas saisi de nouveau mot de passe.");
	 return false;
 }
 else
 {
  return true;
 }
}


