function doSearch ( s, s2, lang, category ) //MT 02/04/2008 : on passe par un agent de recherche{	if (s2.selectedIndex == 0)	{	openDbRelativeURL("Recherche?OpenAgent&Query=" + s.value +"&SearchMax=0&Combo=&Lang="+lang+"&RestrictToCategory="+category);	}	else	{			openDbRelativeURL("Recherche?OpenAgent&Query=" + s.value +"&SearchMax=0&Combo="+s2.options[s2.selectedIndex].value+"&Lang="+lang+"&RestrictToCategory="+category);	}}function doSearchLocal ( s, s2, lang, category ){	openDbRelativeURL("vArticlesTous?SearchView&Query=" + s.value+"&SearchMax=0&Combo="+s2.options[s2.selectedIndex].value+"&Lang="+lang+"&RestrictToCategory="+category);	}function openDbRelativeURL( url, target ){//Check we have a target window;target = (target == null ) ? window : target;//Work out the path of the database;path = location.pathname.split('.nsf')[0] + '.nsf/';target.location.href = path + url;}function returnFalse(s, s2, lang, category){	var reg=new RegExp("(&quot;|\")", "g");		category = category.replace(reg, "'");	//guess the field if not supplied	s = (s == null) ? document.forms[0].Query : s;	//if you want to do the search, use this line	if (s.value.length>3)	{	doSearch(s, s2, lang, category);	}	else	{	alert("Votre recherche doit comporter au moins 4 caract\u00E8res.");		//	doSearch(s, lang);	}		//if you want to alert the user, use this line	//alert('Please use the \'Go!!\' button to do a search');		//this line should always be here!!	return false;}function returnFalseLocal(s, s2, lang, category){	var reg=new RegExp("(&quot;|\")", "g");		category = category.replace(reg, "'");	//guess the field if not supplied	s = (s == null) ? document.forms[0].Query : s;		//if you want to do the search, use this line	if (s.value.length>3)	{	doSearchLocal(s, s2, lang, category);	}	else	{	alert("Votre recherche doit comporter au moins 4 caract\u00E8res.");	}		return false;}function MM_openBrWindow(theURL,winName,features) {window.open(theURL,winName,features);};function closeWin(){opener=self;ID = self.setTimeout("\"self.close();\"",100);}