	// ===================================================================================
	// ===================================================================================
	// Affichage des warnings (messages erreur/attente/barres de progression)
	// -----------------------------------------------------------------------------------
	// Création	: 07/03/2008 - SEB
	// M. à j.	: XX/XX/XXXX - XXX - ...
	// 			: XX/XX/XXXX - XXX - ...
	//
	// ===================================================================================
	// ===================================================================================

	// Affichage d'un message d'attente figé
	// Arguments :
	//
	function wngCreerMsgAttente(arg_msg1, arg_msg2, arg_mas)
	{
		if (arg_mas) wngActiverMasque();
		getId('blocMsgBouton').style.display = '';
		getId('blocMsgImg').src = wngPathImg + 'waiting.gif';
		getId('blocMsgImg').style.display = 'inline';
		getId('blocMsg').style.visibility = "visible";
		getId('blocMsgHaut').innerHTML = arg_msg1;
		getId('blocMsgBas').innerHTML = arg_msg2;
		getId('blocMsgBorImg').style.textAlign = 'center';
		getId('blocMsgBorImg').style.borderWidth = '0px';
		getId('blocMsgImg').style.width = '32px';
		getId('blocMsgImg').style.height = '32px';
		var blocHauteur = getId('blocMsg').clientHeight;
		var blocLargeur = getId('blocMsg').clientWidth;
		getId('blocMsg').style.left = '50%';
		getId('blocMsg').style.top = '33%';
		getId('blocMsg').style.marginLeft = eval(-blocLargeur/2) + 'px';
		getId('blocMsg').style.marginTop = eval(-blocHauteur/3) + 'px';
	}

	// Affichage d'un message d'erreur
	// Arguments :
	//
	function wngCreerMsgErreur(arg_msg1, arg_msg2)
	{
		wngActiverMasque();
		getId('blocMsgBouton').style.display = '';
		getId('blocMsgImg').src = wngPathImg + 'warning.gif';
		getId('blocMsgImg').style.display = 'inline';
		getId('blocMsg').style.visibility = "visible";
		getId('blocMsgHaut').innerHTML = arg_msg1;
		getId('blocMsgBas').innerHTML = arg_msg2;
		getId('blocMsgBorImg').style.textAlign = 'center';
		getId('blocMsgBorImg').style.borderWidth = '0px';
		getId('blocMsgImg').style.width = '32px';
		getId('blocMsgImg').style.height = '32px';
		var blocHauteur = getId('blocMsg').clientHeight;
		var blocLargeur = getId('blocMsg').clientWidth;
		getId('blocMsg').style.left = '50%';
		getId('blocMsg').style.top = '33%';
		getId('blocMsg').style.marginLeft = eval(-blocLargeur/2) + 'px';
		getId('blocMsg').style.marginTop = eval(-blocHauteur/3) + 'px';
	}
	
	// Affichage d'un message d'info
	// Arguments :
	//
	function wngCreerMsgInfo(arg_msg1, arg_msg2)
	{
		wngActiverMasque();
		getId('blocMsgBouton').style.display = '';
		getId('blocMsgImg').src = wngPathImg + 'info.gif';
		getId('blocMsgImg').style.display = 'inline';
		getId('blocMsg').style.visibility = "visible";
		getId('blocMsgHaut').innerHTML = arg_msg1;
		getId('blocMsgBas').innerHTML = arg_msg2;
		getId('blocMsgBorImg').style.textAlign = 'center';
		getId('blocMsgBorImg').style.borderWidth = '0px';
		getId('blocMsgImg').style.width = '32px';
		getId('blocMsgImg').style.height = '32px';
		var blocHauteur = getId('blocMsg').clientHeight;
		var blocLargeur = getId('blocMsg').clientWidth;
		getId('blocMsg').style.left = '50%';
		getId('blocMsg').style.top = '33%';
		getId('blocMsg').style.marginLeft = eval(-blocLargeur/2) + 'px';
		getId('blocMsg').style.marginTop = eval(-blocHauteur/3) + 'px';
	}

	function wngSupprimerMsg()
	{
		wngDesactiverMasque();
		try
		{
			if (getId("rep_focus").value != '')
			{
				setTimeout('getId(getId("rep_focus").value).focus();', 250);
				setTimeout('getId(getId("rep_focus").value).select();', 250);
			}
		}
		catch(e){}
		getId("blocMsg").style.visibility = "hidden";
	}
	
	function wngCreerMsgAttenteDyn(arg_msg)
	{
		wngActiverMasque();
		getId('blocMsgBouton').style.display = 'none';
		getId('blocMsgImg').src = wngPathImg + 'waiting_dyn.gif';
		getId('blocMsgImg').style.display = 'block';
		getId('blocMsg').style.visibility = "visible";
		getId('blocMsgHaut').innerHTML = 'Veuillez patienter...';
		getId('blocMsgBas').innerHTML = arg_msg;
		getId('blocMsgBorImg').style.textAlign = 'left';
		getId('blocMsgBorImg').style.borderWidth = '1px';
		var blocHauteur = getId('blocMsg').clientHeight;
		var blocLargeur = getId('blocMsg').clientWidth;
		getId('blocMsg').style.left = '50%';
		getId('blocMsg').style.top = '33%';
		getId('blocMsg').style.marginLeft = eval(-blocLargeur/2) + 'px';
		getId('blocMsg').style.marginTop = eval(-blocHauteur/3) + 'px';
	}
	
	// Incrémentation d'une barre de progression
	function wngIncrMsgAttenteDyn(arg_cpt, arg_txt)
	{
		var larg = eval(arg_cpt);
		var blocLargeur = eval(getId('blocMsg').clientWidth - 12);
		if (larg <= 100)
		{
			if (larg <= 75)
			{
				if (!ie) getId('blocMsgImg').style.opacity = eval( (larg/100) + 0.25);
				else getId('blocMsgImg').style.filter = 'alpha(opacity=' + eval( larg + 25) + ')';
			}
			getId('blocMsgHaut').innerHTML='Veuillez patienter...  ' + arg_cpt + ' %';
			getId('blocMsgImg').style.width = eval(blocLargeur * (larg/100)) + 'px';
			getId('blocMsgImg').style.height = '20px';
			if (arg_txt != "") getId('blocMsgBas').innerHTML = arg_txt;
		}
	}
