<!--
function creeObjet (libelle, libelleparent)
{
	this.libelle = libelle;
	this.libelleparent = libelleparent;
}

/*
 * nblistes : nombre de <SELECT>
 * elementsListes : tableau contenant les tableaux de toutes les lignes de chaque <SELECT>
 * strInit : 0 => pas d'initialisation; sinon la chaîne à initialiser avec '/' comme séparateur => on initialise à partir du champ caché
 * strAttributNameChampCache : nom du champ de type hidden
*/
function creationlistes (nblistes, elementsListes, strInit, strAttributNameChampCache)
{
	var i, j, n;
	var selectListe;
	var strValeurChampCache = "";
	var arrCorrespondances = new Array ();
	var strSelectionCourante, strSelectionParente = "";

	if (strInit != 0)
	{
		arrCorrespondances = strInit.split ('/');
	}

	for (i = 1; i <= nblistes; i++)
	{
		// Le formulaire a pour nom 'formulaire' dans ARTIC et 'formulaire_filtre' dans le PACK WEB
		if (typeof (document.formulaire) != "undefined")
		{
			selectListe = document.formulaire.elements[strAttributNameChampCache+i];
		}
		else
		{
			selectListe = document.formulaire_filtre.elements[strAttributNameChampCache+i];
		}

		if (typeof (arrCorrespondances[i-1]) != "undefined")
		{
			strSelectionCourante = arrCorrespondances[i-1];
		}
		else
		{
			if (selectListe.length > 0)
			{
				strSelectionCourante = selectListe.options[selectListe.options.selectedIndex].value;
			}
			else
			{
				strSelectionCourante = "";
			}
		}

		// On efface toutes les valeurs précédentes
		selectListe.length = 0;

		for (j = 0, n = elementsListes[i-1].length; j < n; j++)
		{
			if (elementsListes[i-1][j].libelleparent == strSelectionParente || j == 0 || i == 1)
			{
				selectListe.length++;
				selectListe.options[selectListe.length-1].text = elementsListes[i-1][j].libelle;
				selectListe.options[selectListe.length-1].value = elementsListes[i-1][j].libelle;
				if (elementsListes[i-1][j].libelle == strSelectionCourante)
				{
					selectListe.options[selectListe.length-1].selected = true;

					if (j != 0)
					{
						if (i == 1)
						{
							strValeurChampCache = strSelectionCourante;
						}
						else if (strValeurChampCache != "")
						{
							strValeurChampCache += "/" + strSelectionCourante;
						}
					}
				}
			}
		}

		strSelectionParente = selectListe.options[selectListe.options.selectedIndex].value;
	}

	// Le formulaire a pour nom 'formulaire' dans ARTIC et 'formulaire_filtre' dans le PACK WEB
	if (typeof (document.formulaire) != "undefined")
	{
		document.formulaire.elements[strAttributNameChampCache].value = strValeurChampCache;
	}
	else
	{
		document.formulaire_filtre.elements[strAttributNameChampCache].value = strValeurChampCache;
	}
}

function placeLogo(urlImg){ // FONCTION D'ECRITURE DE L'IMAGE EN FOND
var TableTarget = "PortalLayout";
	if (urlImg== ""){ // SI LE PARAMETRE DE LA FONCTION EST 0
	// PAS D'ECRITURE
	}else{ // SI LE PARAMETRE DE LA FONCTION EST 1
		// ON DEFINIT LA SOURCE DE L'IMAGE

		
		// ON APPLIQUE AU TABLEAU LES STYLES
		document.body.style.backgroundImage="url("+urlImg+")";
		document.body.style.backgroundPosition="right 111";
		document.body.style.backgroundRepeat="no-repeat";
	}
}

// -->