
function Init2()
{
	BMenu=new xDHTML('Menu');
	BMenu.leBloc.style.visibility=BMenu.Cacher;
	Blien1=new xDHTML('Lien1');	
	Blien1.leBloc.style.visibility=Blien1.Cacher;
	Blien2=new xDHTML('Lien2');
	Blien2.leBloc.style.visibility=Blien2.Cacher;
	Blien3=new xDHTML('Lien3');
	Blien3.leBloc.style.visibility=Blien3.Cacher;
}


function xDHTML(NomBloc)
{
	if (document.layers) 
	{
		this.Montrer = 'show'; 
		this.Cacher = 'hide';
	}
	else
	{
		this.Montrer = 'visible'; 
		this.Cacher = 'hidden';
	}
	if (document.getElementById) 
	{
		this.leBloc = document.getElementById(NomBloc);
		//this.leStyle = this.leBloc.style;
	}
	else  if (document.all) 
	{
		this.leBloc = document.all[NomBloc];
		this.leStyle = this.leBloc.style;
	}
	else if (document.layers) 
	{
		this.leBloc = this.leStyle = document.layers[NomBloc];
	}
	else 
	{	
		this.leBloc = this.leStyle = null;
	} 
	return this;
}  


function VerifForm(formu)
{
	bon=0;
	if (formu.Nom.value=="")
	{
		alert('Formulaire incomplet!');
		formu.Nom.focus();
		return false;
	}
	
	if (formu.Auteur.value!="") bon=bon+1;
	if (formu.Oeuvre.value!="") bon=bon+1;
	if (formu.Editeur.value!="") bon=bon+1;
	if (bon<2)
	{
		alert('Veuillez remplir au moins deux des zones artiste, oeuvre et éditeur.');
		return false;
	}
}


function Achat()
{
	document.location="AchatBD.htm";
	document.forms[0].elements["Auteur"].value='Nom';
	document.forms[0].elements["Oeuvre"].value='Auteur';
	document.forms[0].elements["Editeur"].value='Editeur';
}
