function lobj(nom) {  
	if (document.layers)zenom=document.layers[nom];  
	else zenom=(document.all && !document.getElementById)?document.all[nom]:document.getElementById(nom);  
	return zenom;
	}

function boujY(kel,ou) {lobj(kel).style.top=ou+"px";}

function cal(kel,plus) {
	D=document;
	gk=(window.Event)?1:0;
	de=(!D.documentElement.clientWidth)?D.body:D.documentElement ;
	dest=(gk)?window.pageYOffset:de.scrollTop;
	if(plus)dest+=plus;
	boujY(kel,(dest));
	}

function deco(truc,tex) {
  dec=unescape(truc);
  ote=/\+/g;
  de=dec.replace(ote, " ");
  otenl=/\n/g;
  if(!tex)de=de.replace(otenl, "<br>");
  return de;
  }
 
function soum(formu,act,targ) {
	with(eval("document."+formu)) {
		action=(act)? act:document.URL;
		target=(targ)? targ:"_self";
		submit();
		}
	}
	
function autre() {
	lobj('TDautreact').style.display=(document.formcont.activite.selectedIndex==10)? "block":"none";
	}
	
function suppdevis(lid) {
	with(document.formcont) {
		suppr.value=lid;
		page.value='codeo';
		//action="codeo.html";
		submit();
		}
	}
	
function par(koi) {
	with(document.search)
		if(koi!="recherche" || rech.value.length>2) {
			page.value=koi;
			submit();
			}
		else {
			alert(error.value);
			return false;
			}
	}

function cliclac(lid) {
	var i=0;
	while(i++ < 5) {
		lobj("menu"+i).className=(i==lid)? 'vis':'hid';
		}
	}