// Procédures globales du projet
function prListeEfface(pListe)
{
	document.getElementById(pListe).length = 0;
}

function prListeAjoute(pListe, pText,pValeur)
{
	
	document.getElementById(pListe).options[document.getElementById(pListe).options.length] =  new Option(pText,pValeur);
	
}

function prListeSelectParValeur(pListe,pOption)
{
	document.getElementById(pListe).value = pOption;
}

function prListeValeur(pListe)
{
	
	var i = document.getElementById(pListe).selectedIndex;
	return document.getElementById(pListe).options[i].value;
}


function prListeEffaceItem(pListe)
{
	document.getElementById(pListe).options[document.getElementById(pListe).options.selectedIndex] = null;
}

function prDeplace(pListeS, pListeD)
{
	
	
	var objOrigine = document.getElementById(pListeS);
	var objDestination = document.getElementById(pListeD);
	var valret = objOrigine.options[objOrigine.options.selectedIndex].value;
	var ADeplacer = new Option(objOrigine.options[objOrigine.options.selectedIndex].text, objOrigine.options[objOrigine.options.selectedIndex].value);
	objDestination.options[objDestination.length]=ADeplacer;
	objOrigine.options[objOrigine.options.selectedIndex]=null;
	return 	valret;
}

function prSelectValue(pCombo)
{
	var x=document.getElementById(pCombo);
	return x.options[x.selectedIndex].value ;
}
// Syntaxe :
//prComboSelect ()
//
// Paramètres :
//	Aucun
// Valeur de retour :
// 	Aucune
// Exemple :
// Indiquez ici un exemple d'utilisation.
//
//Procédure prComboSelect()
//
//
function prSelectValueParent(pCombo)
{

	var x=parent.document.getElementById(pCombo);
		return x.options[x.selectedIndex].value ;

	
}
// Résumé : <indiquez ici ce que fait la procédure>
// Syntaxe :
//prSelectValueParent ()
//
// Paramètres :
//	Aucun
// Valeur de retour :
// 	Aucune
//
// Exemple :
// Indiquez ici un exemple d'utilisation.
//
//Procédure prSelectValueParent()
//
//
