
<!-- 
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//**************************************************
//*********** L O G I N ***************************
//**************************************************
function ValiderLogin(formLogin)
{
	if (document.formLogin.username.value == "")
	{
		alert ("Vous devez entrer votre nom d'utilisateur...");
		document.formLogin.username.focus();
		return false;
	}
	
	if (document.formLogin.password.value == "")
	{
		alert ("Vous devez entrer votre mot de passe...");
		document.formLogin.password.focus();
		return false;
	}
	return true;
}



//**************************************************
//*********** M A I L ******************************
//**************************************************
function ValiderMail(formMail, langue)
{	
	if (langue == "f")
	{
		var txtNom = "Vous devez entrez votre nom";
		var txtCourriel1 = "Vous devez entrez votre courriel";
		var txtCourriel2 = "Votre adresse de courriel n\'est pas valide";
	}
	else
	{
		var txtNom = "You must enter your name";
		var txtCourriel1 = "You must enter your email address";
		var txtCourriel2 = "Your email address is not valid";
		
	}
	
	var b=document.formMail.nom.value;
	if (b == "")
	{
		alert(txtNom);
		document.formMail.nom.focus();
		return false;
	}
	
	
	var a=document.formMail.courriel.value;	
	if (a == "")
	{
		alert(txtCourriel1);
		document.formMail.courriel.focus();
		return false;		
	}
	

	var test="" + a;
	for(var k = 0; k < test.length;k++)
	{
		var c = test.substring(k,k+1);
		if(c == "@")
		{
			return true;
		}
	}
	alert(txtCourriel2);
	document.formMail.courriel.focus();
	return false;

}

//**************************************************
//*********** R E C H E R C H E*********************
//**************************************************
function ValiderSearch(formSearch, langue)
{
	
	if (langue == "f")
	{		
		var txtAlert = "Vous devez entrer un mot clef";
	}
	else
	{
		var txtAlert = "You must enter a key word";
	}

	var a=document.formSearch.txtRecherche.value;	
	if (a == "")
	{
		alert(txtAlert);
		document.formSearch.txtRecherche.focus();
		return false;
	}
	
	return true;
	
}

//**************************************************
//*********** M E M B R E S ************************
//**************************************************
function ValiderMembres(formMembres, langue)
{
	//On set les langue d'avance
	if (langue == "f")
	{		
		var txtPrenom = "Vous devez entrer votre prénom";
		var txtNom = "Vous devez entrer votre nom";
		var txtAdresse = "Vous devez entrer votre adresse";
		var txtVille = "Vous devez entrer votre ville";
		var txtCode = "Vous devez entrer votre code postal";
		var txtTelephone = "Vous devez entrer votre téléphone";
		var txtAccept = "Vous devez accepter les politiques du conseils d administration pour adhérer";
		
	}
	else
	{
		var txtPrenom = "You must enter your first name";
		var txtNom = "You must enter your last name";
		var txtAdresse = "You must enter your address";
		var txtVille = "You must enter your city name";
		var txtCode = "You must enter your postal code";
		var txtTelephone = "You must enter your phone number";
		var txtAccept = "You must accept our terms policies to be a member";
	}
	
	var a=document.formMembres.membres_prenom.value;
	if (a == "")
	{
		alert(txtPrenom);
		document.formMembres.membres_prenom.focus();
		return false;
	}
	
	var b=document.formMembres.membres_nom.value;	
	if (b == "")
	{
		alert(txtNom);
		document.formMembres.membres_nom.focus();
		return false;
	}
	
	var c=document.formMembres.membres_adresse.value;	
	if (c == "")
	{
		alert(txtAdresse);
		document.formMembres.membres_adresse.focus();
		return false;
	}
	
	var d=document.formMembres.membres_ville.value;	
	if (d == "")
	{
		alert(txtVille);
		document.formMembres.membres_ville.focus();
		return false;
	}
	
	var e=document.formMembres.membres_code.value;
	if (e == "")
	{
		alert(txtCode);
		document.formMembres.membres_code.focus();
		return false;
	}
	
	var f=document.formMembres.membres_telephone.value;	
	if (f == "")
	{
		alert(txtTelephone);
		document.formMembres.membres_telephone.focus();
		return false;
	}
	
	var g=document.formMembres.accept.checked;
	//alert(g);	
	if (g == false)
	{
		alert(txtAccept);
		return false;
	}
	
	return true;	
}

//********************************************
//****** V AL I D E R  C O M M A N D E *******
//********************************************
function ValiderCommande(formCommande, langue)
{
	var a=document.formCommande.commande_prenom.value;
	if (a == "")
	{
		alert("Vous devez entrez votre prénom");
		document.formCommande.commande_prenom.focus();
		return false;
	}
	
	var b=document.formCommande.commande_nom.value;	
	if (b == "")
	{
		alert("Vous devez entrez votre nom");
		document.formCommande.commande_nom.focus();
		return false;
	}
	
	var c=document.formCommande.commande_adresse.value;
	if (c == "")
	{
		alert("Vous devez entrez votre adresse");
		document.formCommande.commande_adresse.focus();
		return false;
	}	
	
	var d=document.formCommande.commande_ville.value;
	if (d == "")
	{
		alert("Vous devez entrez votre ville");
		document.formCommande.commande_ville.focus();
		return false;
	}
	
	var e=document.formCommande.commande_code.value;
	if (e == "")
	{
		alert("Vous devez entrez votre code postal");
		document.formCommande.commande_code.focus();
		return false;
	}
	
	var f=document.formCommande.commande_telephone.value;
	if (f == "")
	{
		alert("Vous devez entrez votre téléphone");
		document.formCommande.commande_telephone.focus();
		return false;
	}
}


//**************************************************
//*********** A R T I S T E S***********************
//**************************************************
function validerartistes(formartistes)
{
	var a=document.formartistes.artistes_nom.value;
	if (a == "")
	{
		alert("Vous devez entrez le nom de l\'artiste");
		document.formartistes.artistes_nom.focus();
		return false;
	}
	return true;
}




//--> 


