//**********************************************************
//fonction ouvre les sous-rubrique 
//window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=20; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';
	}

}


//**********************************************************
function ealliance(url) {
	 var wind=window.open('/e-alliance/inscription.asp','','status=yes,scrollbars=yes,width=590,height=550');
	}
function ealliance2(url) {
	 location.href="/pages/societe/service-e-alliance.asp";
	}

//function popAide(theURL) {	
	//		  window.open(theURL);	
//}
function popAide(url) {
	var wind=window.open(url, "Aide", "left=0,top=0,scrollbars=yes,width=720,height=600,status=yes,resizable=yes");
	wind.opener=self;
	wind.focus();
}

function popAide1(url) {
	var wind=window.open(url, "Aide", "left=0,top=0,scrollbars=yes,width=700,height=500,status=yes,resizable=yes");
	wind.opener=self;
	wind.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
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;
}

//**********************************************************
//fonction pour les statistiques
function trackEvent(URL, TITLE){
	// On fait appel à la fonction WebTrends
		dcsMultiTrack('DCS.dcsuri', URL, 'WT.ti', TITLE);
}

//**********************************************************
//fonction estSaisi teste la présence d'au moins un 
//caractère non vide
// entrée : une chaîne
// sortie : true si ch est saisie: ch non nulle et s'il y a au moins un caractère non blanc
function estSaisi(ch) {
	return (ch.length>0&&ch.replace(/[\s ]/gi,"").length>0) ;
}

