function validInscNL(oForm)
{
  if(!checkMail(oForm.email.value))
  {
    alert("L'adresse email n'est pas valide.");
    return false;
  }
  return true;
}
function checkMail(mail)
{
  var oReg = new RegExp('^[a-z0-9]+([_|\.|\-]{1}[a-z0-9]+)*@[a-z0-9]+([_|\.|\-]{1}[a-z0-9]+)*[\.]{1}[a-z]{2,6}$', 'i');
  if(oReg.test(mail)){return(true);}
  else{return(false);}
}
function LastMonth()
{
	document.getElementById('datecalendar').selectedIndex--;
	document.getElementById('Select_Calendrier').submit();
}
function NextMonth()
{
	document.getElementById('datecalendar').selectedIndex++;
	document.getElementById('Select_Calendrier').submit();
}
function InitFlecheMonth()
{
	if(document.getElementById('datecalendar').selectedIndex > 0)
	{
		document.getElementById('lastmonth').style.display='inline';
	}
	if(document.getElementById('datecalendar').selectedIndex < (document.getElementById('datecalendar').options.length-1))
	{
		document.getElementById('nextmonth').style.display='inline';
	}
}
function NameDiv(id){
	if(document.all){ doc = document.all[id]; }
	if(document.getElementById){ doc = document.getElementById(id);}
	return doc;
}

function SetObjDisplay(id, prop){
	NameDiv(id);
	doc.style.display=prop;
}


var strCurrentFaq = "";
function ShowFaq(c)
{
	if(strCurrentFaq!="")
	{
		Hidelayer(strCurrentFaq);
	}
	strCurrentFaq=c;
	Showlayer(strCurrentFaq);
}
function Showlayer(id){
	SetObjDisplay(id, "block");
}

function Hidelayer(id){
	SetObjDisplay(id, "none");
}

function intZap(){
	if(document.all){
		document.all["Player"].style.visibility="hidden";
	} else if(document.getElementById){
		document.getElementById("Player").style.visibility="hidden";
	}
}


function showInfos(credits,legend){
	doc=NameDiv("PicCredits");
	doc.innerHTML = credits;
	doc=NameDiv("PicLegende");
	doc.innerHTML = legend;
}