<!--
var NN4=(document.layers)?1:0;
var IE4=(document.all)?1:0;
var NN6=(document.getElementById)?1:0;
var cache="";

function SmartPop(theURL,winName,features) {
	popup=window.open(theURL,winName,features);
	popup.focus();
}

function SmartShowHide() { //© 2002 SmartPixel - pour GRIP21
	args=SmartShowHide.arguments;
	if (cache+""!="") window.clearTimeout(cache);
	for (i=0;i<args.length;i+=2) {
		id=args[i];
		if (NN4) root=document.layers[id];
		else if (IE4) root=document.all[id].style;
		else if (NN6) root=document.getElementById(id).style;
		root.visibility=(args[i+1]=="on")?"visible":"hidden";
	}
}

function SmartClear(state) { //© 2002 SmartPixel - pour GRIP21
	 cache=(state)?window.setTimeout("SmartShowHide('m1','','m2','','m3','','m4','')",100):window.clearTimeout(cache);
}

function SmartCell() { //© 2002 SmartPixel - pour GRIP21
	var args=SmartCell.arguments;
	for (i=0;i<args.length;i+=2) {
		element=args[i];
		classe=args[i+1];
		var el=document.getElementById(element);
		el.className=classe;
	}
}

if(NN4) {
	addon="<style type=text/css>"+
	"UL.menu {padding:0;margin:0 0 0 -40px;list-style:none;border:0}"+
	"</style>";
	document.write (addon);
}
//-->
function verif_recherche(){
      pb="";
	  if (checkmot(document.form.recherche.value)==false) pb+="Le caractère ';' est interdit\n";
	  if (document.form.recherche.value=='') pb+="Critère de recherche manquant\n";
	  if (pb=="") {
				 return true;
      }else {
                 alert(pb);
                 return false;
	}
}

function verif_recherchebis(){
      pb="";
	  crit="";
	  if (checkmot(document.form.recherche.value)==false) pb+="Le caractère ';' est interdit\n";
	  if (document.form.recherche.value=='') pb+="Critère de recherche manquant\n";
	  if (document.form.reflexion.checked==true) crit+="r";
	  if (document.form.connaissance.checked==true) crit+="c";
	  lien="recherche.php?crit="+crit
	  document.form.action=lien;
	  if (pb=="") {
				 return true;
      }else {
                 alert(pb);
                 return false;
	}
}

function checkmot(chaine){
	var pattern=';'
	var res=chaine.match(pattern);
	if (res) return false;
	else return 1;
}