Event.observe(window, 'load', function() {
	ajustement();
	
});

function ajustement() {

	if (document.getElementById('bloc-nav') && document.getElementById('footer')) var taille_bas=document.getElementById('bloc-nav').offsetHeight+document.getElementById('bloc-nav').offsetTop;
	if (document.getElementById('footer')) 
	{
		var top_foot=document.getElementById('footer').offsetTop;
		if (taille_bas>top_foot-20)
		{
			document.getElementById('footer').style.top=taille_bas+20+"px";
		}
	}
}

function valider(id) {
	document.getElementById(id).submit();
	//return false;
}
  
function verification()  {
	if (document.formulaire.log.value.length == 0)
	{
		alert("Veuillez indiquer votre identifiant");
		return false;
	}
	if (document.formulaire.pw.value.length == 0)
	{
		alert("Veuillez indiquer un mot de passe");
		return false;
	}
	return true;
}

function test (id) {
	if ( document.getElementById(id)) $(id).className = 'no-hidden';
}

function activer (id) {
	if ( document.getElementById(id)) $(id).disabled = false;
}

function mail_field ()
{
	document.getElementById('log').value=document.getElementById('email').value;
	//return false;
}
