// JavaScript Document
function afficher(texte)
{
	if (texte.length>5)
	{
		document.getElementById('resultat').innerHTML = texte;
		afficherElement('resultat',true);
		afficherElement('attente',false);
	}
}

function envoiDemande2009(id)
{
	afficherElement('resultat',false);
	afficherElement('attente',true);

	info = '';
	for (i = 0; i < id.elements.length; i++)
	{
			if (i > 0) info += '&';
			ident = id.elements[i].name;
			info += ident+'='+document.getElementById(ident).value;
	}

	filePOST('int_formationEte2009.php',info);
		
	return false;
}

function envoiDemande(id)
{
	afficherElement('resultat',false);
	afficherElement('attente',true);

	info = '';
	for (i = 0; i < id.elements.length; i++)
	{
			if (i > 0) info += '&';
			ident = id.elements[i].name;
			info += ident+'='+document.getElementById(ident).value;
	}

	filePOST('int_planningFormationEte2008.php',info);
		
	return false;
}

function onChangementFormation(id)
{
	if (id.value > 1)
	{
		afficherElement('ligne1', true);
		afficherElement('ligne2', true);
	}
	else
	{
		afficherElement('ligne1', false);
		afficherElement('ligne2', false);
	}
}

function detectPositionFormation()
{
	onChangementFormation(document.getElementById('formation'));
}


