var ie = window.navigator.appName == "Microsoft Internet Explorer";var firefox = window.navigator.userAgent.search("Firefox")>0;function getObjectByID(blocName) {	//On enleve les espaces eventuels	blocName = trim(blocName);		//On recupere le champ	if ( ie ){		return document.all[blocName];	} else if (firefox) {		return document.getElementById(blocName);	} else {		return document.getElementById(blocName);	}}function getMultiObjectByID(blocName) {	//On enleve les espaces eventuels	blocName = trim(blocName);		//On recupere le champ	if ( ie ){		return document.all[blocName];	} else if (firefox) {		return document.getElementsByName(blocName);	} else {		return document.getElementById(blocName);	}}function getObjectValue(blocName) {	//On enleve les espaces eventuels	blocName = trim(blocName);		//On recupere le champ	if ( ie ){		return document.all[blocName];	} else if (firefox) {		return document.getElementsByName(blocName)[0];	} else {		return document.getElementById(blocName);	}}function trim(entry) {	//On enleve les espaces en debut et fin de phrase	if (entry.charAt(0)==' ') entry = entry.substring(1,entry.length);	if (entry.charAt(entry.length)==' ') entry = entry.substring(0,entry.length-1);	return entry;}function replaceSubstring(chaine,source,replace) {	//On remplace un caractere par un autre	if (chaine!="") {		if (source!="") {			while (chaine.search(source)>0) {				chaine = chaine.replace(source,replace);			}		}	}	return chaine;}function getUndefinedValue(champ) {	result="";	for (j=0;j<champ.length;j++) {		if (champ[j].checked) {			result = champ[j].value;		}	}	return result;}function getSelectoneValue(fname) {	champ=getMultiObjectByID(fname);	result="";	if (champ) {		for (j=0;j<champ.length;j++) {			if (ie&&champ[j].selected&&champ[j].text!="") {				result = champ[j].text;			} else if (firefox&&champ[j].value!="") {				result = champ[j].value;			}		}	}	return result;}function setSelectoneValue(fname,entry) {	champ=getMultiObjectByID(fname);	if (champ) {		for (j=0;j<champ.length;j++) {			if (ie&&champ[j].text==entry) {				champ[j].selected=true;			} else {				if (firefox) {				champ[j].value=entry;			} }		}	}}function openPage(width,height,myUrl) {win_ref = window.open('','','width='+width+',height='+height+',menubar=1,status=1,scrollbars=auto,resizable=1');win_ref.location.href = myUrl;}function openFile(myUrl) {win_ref = window.open('','','width=600,height=600,menubar=1,status=1,scrollbars=auto,resizable=1');win_ref.location.href = myUrl;}function getDBPath() {url = location.href;path = url.substring(0,url.toLowerCase().search(".nsf")+4)+"/";return path;}function urlEncode(myUrl) {var array1 = new Array();array1[0] = "@url"array1[1] = "@&"var array2 = new Array();array2[0] = getDBPath()array2[1] = "%26"for (i=0;i<array1.length;i++) {while(myUrl.search(array1[i])!=-1) {myUrl = myUrl.replace(array1[i],array2[i]);}}return myUrl;}function openUrl(myUrl) {myUrl = urlEncode(myUrl);location.href = myUrl;}function getRandomFromList(list) {var entry="";listExplode = list;if (listExplode.length>0) {num = parseInt(Math.random()*listExplode.length);if (num>listExplode.length||num<0) num = listExplode.length;entry = listExplode[num];}return entry;}function showID(id) {	// fonction qui affiche le block	menu = getObjectByID(id);	if (menu) menu.style.display = "";}function hideID(id) {	// fonction qui affiche le block	menu = getObjectByID(id);	if (menu) menu.style.display = "none";}function displayID(id) {	// fonction qui affiche le block	menu = getObjectByID(id);	if (menu) {		if (menu.style.display == "none"){			// On affiche			menu.style.display = "";		} else {			// On affiche pas			menu.style.display = "none";		}	}}function changeElementInnertext(element,entry) {	document.getElementById(element).innerHTML = entry;	//getObjectByID(element).innerText = entry;}function setItemValue(fieldname,entry) {	champ = getObjectValue(fieldname);	if (champ) champ.value = entry;}function getCle(entry) {  var cle = entry;  cle = cle.substring(0,8);  return cle;}function bfk_ActiveClass(IDlien, LaClasse) {  // Permet de changer la class	if (document.getElementById) {		document.getElementById(IDlien).className=LaClasse;	}}function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);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;}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; }}var ie = window.navigator.appName == "Microsoft Internet Explorer";var firefox = window.navigator.userAgent.search("Firefox")>0;var url = location.href;var path = url.substring(0,url.toLowerCase().search(".nsf")+4);function getObjectByID(blocName) {	//On recupere le champ	if ( ie ){		return document.all[blocName];	} else if (firefox) {		return document.getElementById(blocName);	} else {		return document.getElementById(blocName);	}}// -->