<!--

function displayDiv(divId)
{
	//alert(document.getElementById(divId).style.display);
	if (document.getElementById(divId).style.display == "block")
	{
		document.getElementById(divId).style.display = "none";
	}
	else
	{
		document.getElementById(divId).style.display = "block";
	}
}

function Recherche()
{
	if (window.document.FRecherche.caseCoche[0].checked)
	{
		window.document.FRecherche.section.value = "recherche"
	}
	else
	{
		window.document.FRecherche.section.value = "recherche-google"
	}
		
	window.document.FRecherche.submit()
		
}

function SetSection()
{
	if (window.document.FRecherche.caseCoche[0].checked)
	{
		window.document.FRecherche.section.value = "recherche"
	}
	else
	{
		window.document.FRecherche.section.value = "recherche-google"
	}
		
}

function Valide_Newsletter()
{
  // Valider l'adresse email
  if((window.document.FNewsletter.IEmail.value == "") || (window.document.FNewsletter.IEmail.value.indexOf('@') == -1) || (window.document.FNewsletter.IEmail.value.indexOf('.') == -1))
  {
      alert("Veuillez entrer un courriel valide...");
	  	window.document.FNewsletter.IEmail.focus();
  }
  else
  {
  	  window.document.FNewsletter.submit();
  }
}

function ClearValue()
{
	window.document.FNewsletter.IEmail.value = "";
}

function openWindow(x, y, lang, zoom)
{                
    var url = "http://www.etat-reseau.mtq.gouv.qc.ca/Default.aspx?coordX="+x+"&coordY="+y+"&lang="+lang+"&zoom="+zoom;
    var newwin = window.open(url,'newwin','toolbar=no,location=no,directories=no,status=yes,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=955,height=600,top='+findTopPosition(675)+',left='+findLeftPosition(1000))
    newwin.focus();
    return;
}
function findTopPosition(windowHeight)
{
    return (window.screen.height/2 - windowHeight/2);
}
function findLeftPosition(windowWidth)
{                
    return (window.screen.width/2 - windowWidth/2);
}

strhref = new String(window.document.location.href)
if (strhref.indexOf("v=1") != -1)
{
	alert("Vous êtes maintenant inscrit à notre liste de diffusion.");
}
if (strhref.indexOf("v=0") != -1)
{
	alert("Ce courriel est déjà inscrit dans notre liste de diffusion.");
}
-->