function Init()
{
	B1=new xDHTML('1');
	B2=new xDHTML('2');
	B3=new xDHTML('3');
	B4=new xDHTML('4');
	B5=new xDHTML('5');
	B6=new xDHTML('6');
	B7=new xDHTML('7');
	B8=new xDHTML('8');
	B9=new xDHTML('9');
	Bg1=new xDHTML('g1');
	Bg1.leBloc.style.visibility=Bg1.Cacher;
	Bg2=new xDHTML('g2');
	Bg2.leBloc.style.visibility=Bg2.Cacher;
	Bg3=new xDHTML('g3');
	Bg3.leBloc.style.visibility=Bg3.Cacher;
	Bg4=new xDHTML('g4');
	Bg4.leBloc.style.visibility=Bg4.Cacher;
	Bg5=new xDHTML('g5');
	Bg5.leBloc.style.visibility=Bg5.Cacher;
	Bg6=new xDHTML('g6');
	Bg6.leBloc.style.visibility=Bg6.Cacher;
	Bg7=new xDHTML('g7');
	Bg7.leBloc.style.visibility=Bg7.Cacher;
	Bg8=new xDHTML('g8');
	Bg8.leBloc.style.visibility=Bg8.Cacher;
	Bg9=new xDHTML('g9');
	Bg9.leBloc.style.visibility=Bg9.Cacher;
}

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;
	}
}



