<!--
function hide(a)
{
	var b = document.getElementById(a); if(b) b.style.display = "none";
}
function show(a)
{
	var en_ligne = true;
	var b = document.getElementById(a); if(b) b.style.display = en_ligne ? "inline" : "block";
}
function bground(a,c)
{
	var b = document.getElementById(a);

	if( c.indexOf("url")>=0 )
	{
		if(b)  b.style.backgroundImage = c;
	}
	else
	{
		if(b)  b.style.background = c;
	}
}

function ouvre_onglet(n)
{
	var o = document.getElementById(n);
	if(o)
	{
		switch(n)
		{
			case 'onglet_enfant':
				bground('onglet_enfant', "url(/images/myprofil/enfant-on.gif)");
				bground('onglet_parent',"url(/images/myprofil/parent-off.gif)");
				bground('onglet_magicmaman',"url(/images/myprofil/magicmaman-off.gif)");
				show('partie_inscription');
				show('texte1_enfant');
				hide('texte1_parent');
				hide('texte1_magicmaman');
				show('texte2_enfant');
				hide('texte2_parent');
				hide('texte2_magicmaman');
			break;

			case 'onglet_parent':
				bground('onglet_enfant',"url(/images/myprofil/enfant-off.gif)");
				bground('onglet_parent',"url(/images/myprofil/parent-on.gif)");
				bground('onglet_magicmaman',"url(/images/myprofil/magicmaman-off.gif)");
				show('partie_inscription');
				hide('texte1_enfant');
				show('texte1_parent');
				hide('texte1_magicmaman');
				hide('texte2_enfant');
				show('texte2_parent');
				hide('texte2_magicmaman');
			break;

			case 'onglet_magicmaman':
				bground('onglet_enfant',"url(/images/myprofil/enfant-off.gif)");
				bground('onglet_parent',"url(/images/myprofil/parent-off.gif)");
				bground('onglet_magicmaman',"url(/images/myprofil/magicmaman-on.gif)");
				hide('partie_inscription');
				hide('texte1_enfant');
				hide('texte1_parent');
				show('texte1_magicmaman');
				hide('texte2_enfant');
				hide('texte2_parent');
				show('texte2_magicmaman');
			break;
		}

	}
}

function veriflogin(f)
{
	return (f.login.value!="" && f.password.value!="");
}

//-->
