// Fonctions de gestion des calques gauche
function openCredits()
{
	tempWin=window.open("/fr/popups/credits.php", "popup", "width=640,height=600,scrollbars=yes,resizable=1");
	tempWin.focus();
}

function openMentions()
{
	tempWin=window.open("/fr/popups/mentions-legales.php", "popup", "width=640,height=600,scrollbars=yes,resizable=1");
	tempWin.focus();
}

function openIntranet()
{
	tempWin=window.open("/fr/intranet/", "intranet", "width=760,height=600,scrollbars=yes,resizable=1");
	tempWin.focus();
}

function lsjs_openPlanSite()
{
	tempWin=window.open("/fr/popups/plan-site.php", "plansite",  "width=640,height=600,scrollbars=yes,resizable=1");
	tempWin.focus();
}


function openPage(hrefLien)
{
	tempWin=window.open(hrefLien, "pageNiv4", "width=640,height=600,scrollbars=yes,resizable=1");
	tempWin.focus();
}

function raccourciCommune()
{
	var tempObject=MM_findObj("communesSelect");
	var tempValSelected=tempObject.options[tempObject.selectedIndex].value;
	if(tempValSelected!="0")
	{
		window.document.location.href=tempValSelected;
	}
	else
	{
		alert("Veuillez choisir une commune dans la liste");
	}
}
function raccourciAnnuaire()
{
	var tempObject=MM_findObj("annuaireRubSelect");
	var tempValSelected=tempObject.options[tempObject.selectedIndex].value;
	if(tempValSelected!="0")
	{
		window.document.location.href="/fr/outils/annuaire-pratique.php?idRubrique="+tempValSelected;
	}
	else
	{
		alert("Veuillez choisir une rubrique dans la liste");
	}
}

function lancerRecherche(motCle)
	{
	if ((motCle!='')&&(motCle!='rechercher...'))
		{
		document.search.submit();
		return false;
		}
	else
		{
		alert('Veuillez saisir au moins un mot pour effectuer une recherche.');
		}		
	}

function openEvenement(ID_evenement)
{
	tempWin=window.open("/fr/popups/evenement.php?ID_agenda="+ID_evenement, "popup", "width=640,height=600,scrollbars=yes,resizable=1");
	tempWin.focus();
}
