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



ejs_box2_actual = 0;
ejs_box2_html_flag = 0;

function ejs_box2_go()
{
 	if(document.getElementById)
	{
	 	ejs_box2_char = 1;
	 	ejs_box2_affich(ejs_box2_actual)
	 	ejs_box2_actual++;
	 	if(ejs_box2_actual >= ejs_box2_message.length) ejs_box2_actual = 0;
		//document.write(ejs_box2_actual);
	}        
}

function ejs_box2_affich(lactual)
{
 	var pix = ejs_box2_message[lactual].charAt(ejs_box2_char);
 	if(pix == "<") ejs_box2_html_flag = 1;
 	if(pix == ">") ejs_box2_html_flag = 0;
	
 	var texte = ejs_box2_message[lactual].substring(0,ejs_box2_char);
 	document.getElementById("ejs_box2_box").innerHTML = texte;
 	
	if(ejs_box2_char < ejs_box2_message[lactual].length)
	{
	 	ejs_box2_char++;
	 	if(ejs_box2_html_flag == 1) ejs_box2_affich(lactual);
	 	else setTimeout("ejs_box2_affich("+lactual+")",50)
	}
	else setTimeout("ejs_box2_go()",3000)
}


// Affichage / masquage d'un objet spécifié par son attribut id
function toggle(object_id){
 var obj=document.getElementById(object_id)	
 	if(obj.style.display =='none')
 	{
 	obj.style.display='block'
 	}
 	else
 	{
  	obj.style.display='none'
	}
 }