// JavaScript Document
function Identification()
{
	with(document.forms['form_identification'])
	{
		if((login.value=="") || (passe.value==""))
		{
			montre('div_msg_ecran');
			action='';
			CHOIX.value='';
			return(false);
		}
		cache('div_msg_ecran');
		action='tirageenligne.php';
		CHOIX.value='identification';
		return(true);
	}
}
function CreerMonCompte()
{
	with(document.forms['form_inscription'])
	{
		action='tirageenligne.php#err';
		CHOIX.value='inscription';
		submit();
	}
}

function EnvoiMP()
{
	with(document.forms['form_identification'])
	{
		if(login.value=="")
		{
			montre('div_msg_ecran');
			login.focus();
			action='';
			CHOIX.value='';
			return(false);
		}
		action='tirageenligne.php';
		cache('div_msg_ecran');
		CHOIX.value='envoi_motdepasse';
		submit();
	}
}
function EnvoiMP2()
{
		document.forms['form_identification'].login.value=document.forms['form_inscription'].email.value;
		document.forms['form_identification'].action='tirageenligne.php';
		cache('div_msg_ecran');
		document.forms['form_identification'].CHOIX.value='envoi_motdepasse';
		document.forms['form_identification'].submit();
}

function montre(id)
{
		var element_style=null
		if (document.getElementById)
		{element_style=document.getElementById(id).style;}
		else if (document.all)
		{element_style=document.all[id].style;} 
		if(element_style)  {element_style.display="block";}
}
function cache(id)
{
		var element_style=null
		if (document.getElementById)
		{element_style=document.getElementById(id).style;}
		else if (document.all)
		{element_style=document.all[id].style;} 
		if(element_style)  {element_style.display="none";}
}
