function lancerannu()
{
	
	document.formcontact.submit();
}

function Lancer_recherche()
{
	//top.frames["menu"].location="/pages/contacts/menu-g-contacts.html";
	//top.frames["menu-h"].location="/pages/contacts/menu-h-contact.html";
	//document.formrecherche.communes.value=top.JS_COMMUNE_ID;
	document.formrecherche.submit();
}


function Lancer(pageid)
{

	mode_utilisation=1;
	//hum hummm !
	if (mode_utilisation==0) 
	{
	 	if (pageid=='CGD000000000011') top.frames["centre"].document.location="/bilan/bilan.htm";
		
	}else {
		with(document.MonForm)
		{
			page_id.value=pageid;
			type.value="0";
			target="centre";				
			submit();
		}
	}
	
	if ((pageid=='CHA000000000001')||(pageid=='CHA000000000002')||(pageid=='CHA000000000003'))
	{	//séjourner
		
		txtloca=new String(top.frames["menu"].location);	
		if (txtloca.indexOf("sejourner/menu-g-sej.html")==-1) {
		
			top.frames["menu"].location="/pages/sejourner/menu-g-sej.html";
			top.frames["menu-h"].location="/pages/sejourner/menu-jau.html";
			}

	}
	if ((pageid=='CHA000000000004')||(pageid=='CHA000000000005')||(pageid=='CHA000000000006')||(pageid=='CHA000000000007'))
	{	//mairie
	
		txtloca=new String(top.frames["menu"].location);
		if (txtloca.indexOf("/pages/mairie/menu-g-mairie.html")==-1) {
			top.frames["menu"].location="/pages/mairie/menu-g-mairie.html";
			top.frames["menu-h"].location="/pages/mairie/menu-h-mairie.html";
		}
	}
	if ((pageid=='CHA000000000008')||(pageid=='CHA000000000009')||(pageid=='CHA000000000010'))
	{	//vie locale
		txtloca=new String(top.frames["menu"].location);
		if (txtloca.indexOf("/pages/vie-locale/menu-g-vie-locale.html")==-1) {
			top.frames["menu"].location="/pages/vie-locale/menu-g-vie-locale.html";
			top.frames["menu-h"].location="/pages/vie-locale/menu-h-vie-locale.html";
		}

	}
	if ((pageid=='CHA000000000011')||(pageid=='CHA000000000012'))
	{	//vie éconoomique
		txtloca=new String(top.frames["menu"].location);
		if (txtloca.indexOf("/pages/economie/menu-g-eco.html")==-1) {
			top.frames["menu"].location="/pages/economie/menu-g-eco.html";
			top.frames["menu-h"].location="/pages/economie/menu-h-eco.html";
		}

	}
	if ((pageid=='CHA000000000013')||(pageid=='CHA000000000014'))
	{	//contacts
		txtloca=new String(top.frames["menu"].location);
		if (txtloca.indexOf("/pages/contacts/menu-g-contacts.html")==-1) {
			top.frames["menu"].location="/pages/contacts/menu-g-contacts.html";
			top.frames["menu-h"].location="/pages/contacts/menu-h-contact.html";
		}

	}

}





function mont(id)
{
document.forms[0].bloc_id.value=id;
document.forms[0].action='/cgi-bin/monte_bloc.exe';
document.forms[0].submit();
}

function desc(id)
{
document.forms[0].bloc_id.value=id;
document.forms[0].action='/cgi-bin/desc_bloc.exe';
document.forms[0].submit();
}

function Supprimer(id)
{
var ok=false;
ok=confirm("êtes vous sur de vouloir supprimer ce bloc ?");
if (ok) {
	document.forms[0].bloc_id.value=id;
	document.forms[0].action='/cgi-bin/suppr_bloc.exe';
	document.forms[0].submit();
	}
}

function modification(id)
{
	document.forms[0].bloc_id.value=id;
	document.forms[0].action='/cgi-bin/bloc_fic_modif.exe';
	document.forms[0].submit();
	
}


function charger(exec)
{
document.forms[0].action=exec;
document.forms[0].submit();
}


function window_admin()
{
var passwd;
open("/administration/login.htm","abonnement","scrollbars=no,width=200,height=200");

}




function window_exit_adm()
{
top.frames["menu-h"].MonForm.modification.value=0;
top.frames["menu-h"].MonForm.password.value="";
document.forms[0].submit();
}


