/*************************************/
/* fonctions remplaçant les fonctions formSubmit et formEventSubmit pour l'authentification */
/*************************************/
/**************************************
	- FONCTIONS DE FORMULAIRES -
**************************************/

/**
 * Valide le formulaire
 * @param oForm (string) => id du formulaire
 * @return void
 */
function authentSubmit(sForm)
{
	var oForm = new getObj(sForm);
	document.getElementById("pwd").value = document.getElementById("pwd_affich").value ;
	document.getElementById("pwd_affich").value = "" ;
	oForm.submit();
	return false;
}

/**
 * Valide le formulaire si on appuie sur la touche "entrée"
 * @param event (object) => évènement
 * @param oForm (object) => objet du formulaire à submit
 * @return void
 */
function authentEventSubmit(event, oForm)
{
	var idForm = oForm.id;
	if(browser == 'IE')
	{
		if(event.keyCode == 13) authentSubmit(idForm);
	}
	else
	{
		if(event.which == 13) authentSubmit(idForm);
	}
}



