function FindID(id)
{
	if(document.layers) return document.layers[id];
	if(document.all && !document.getElementById) return document.all[id];
	if(document.all && document.getElementById) return document.getElementById(id);
	if(!document.all && document.getElementById) return document.getElementById(id);
}

function maj_champs(texte){
	return texte.split('+').join('[plus]');
}

function voir(id){
	FindID(id).style.display = "block";
}
	
function hide(id){
	FindID(id).style.display = "none";
}

function visible(id){
	FindID(id).style.visibility = "visible";
}
	
function cache(id){
	FindID(id).style.visibility = "hidden";
}

function prechargimg()
{ 
	var doc=document; 
	if(doc.images){ if(!doc.precharg) doc.precharg=new Array();
	var i,j=doc.precharg.length,x=prechargimg.arguments; for(i=0; i<x.length; i++)
	if (x[i].indexOf("#")!=0){ doc.precharg[j]=new Image; doc.precharg[j++].src=x[i];}}
}

function wincenter(page,largeur,hauteur,options)
{
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}
