//***************************************************************************************************
//*****************************************************************************************************
var VALRES=0;
var TEXTVAL="";
var VALUEVAL=0;
var LNGDEST=0;
// Fonction ajout d'un destinataire
function stocke_val()
{
	VALRES=document.forms[0].ANNU.selectedIndex;
	LNGDEST=document.forms[0].DESTI.options.length;
	TEXTVAL=document.forms[0].ANNU.options[VALRES].text;
	VALUEVAL=document.forms[0].ANNU.options[VALRES].value;
	o=new Option(TEXTVAL,VALUEVAL,true,true);
	document.forms[0].DESTI.options[LNGDEST]=o;
}
// Fonction retrait d'un destinataire
function enleve_val()
{
	VALRES=document.forms[0].DESTI.selectedIndex;
	document.forms[0].DESTI.options[VALRES]=null;
}
// Fonction mise en paquet des clés et noms des  destinataires
function paquet()
{
	CPAQUET="";
	NPAQUET="";
	for (i=0;i<document.forms[0].DESTI.options.length;i++)
	{
		CPAQUET+=document.forms[0].DESTI.options[i].value+'|';
		NPAQUET+=document.forms[0].DESTI.options[i].text+'|';
	}
	document.forms[0].CDEST.value=CPAQUET;
	document.forms[0].NDEST.value=NPAQUET;
}
// Fonction demande d'affichage d'un message depuis petite boite
function affiche_mes()
{
	VALRES=document.forms[0].LMES.selectedIndex;
	document.forms[0].OPT.value=document.forms[0].NAT.value;
	document.forms[0].CLE.value=document.forms[0].LMES.options[VALRES].value;
	document.forms[0].submit();
}
// Fonction demande d'affichage d'un message depuis grande boite
function consult_mes(VALRES)
{
	document.forms[0].OPT.value=document.forms[0].NAT.value;
	document.forms[0].CLE.value=VALRES;
	document.forms[0].submit();
}
function suffit()
{
document.getElementById("puce").style.display='none';
}
function showit(x,y)
{
document.getElementById("puce").style.top=260+y;
document.getElementById("puce").style.left=210+x;
document.getElementById("puce").style.display='block';
}
function ouney()
{
	if (document.all)
	{ 
  	 	Fx=window.event.x+document.body.scrollLeft; 
   		Fy=window.event.y+document.body.scrollTop; 
 	} 
  	else
	{ 
   		Fx=e.pageX; 
   		Fy=e.pageY; 
	} 
	window.status=(Fx-15)+','+(Fy-148);
}
function change_image_id(image_id,IMG)
{
window.document.getElementById(image_id).src ='images_build/'+IMG;
}