
function C_validerFiltre(p_idSousOnglet){
this.identifiant = p_idSousOnglet;
this.executer();
return this.resultat;
}
function C_finaliserExecution(){
try {
this.xmlhttp.send(null);
var familleFiltre = this.identifiant.charAt(0).toUpperCase() +
this.identifiant.substring(1, this.identifiant.length);
valeurFiltre = document.getElementById("filtre" + familleFiltre).value;
verrouFiltrage = false;
} catch(e) {    	
var avertissement = new ExceptionAEF("WC002");
avertissement.afficher();
window.setTimeout("verrouFiltrage = false", 120);
}
return this.resultat;
}
function C_setOptions(self){
var identifiant = 'valeurs' + self.identifiant.charAt(0).toUpperCase() 
+ self.identifiant.substring(1, self.identifiant.length);
var champ = document.getElementById(identifiant);
if (self.xmlhttp.readyState == 4) {
texte = self.xmlhttp.responseText;
if (texte.length > 0) {
try {
reponse = self.xmlhttp.responseText;
eval('list = ' + reponse);
} catch(e) {
e = new ExceptionAEF('WC003');    	
e.ajouterReference("Client.js", 80);
e.afficher();
var list = new Array(0);
}
for (var i=(champ.options.length-1); i>=0; i--) {
champ.options[i] = null;
}
champ.selectedIndex = -1;
for (i = 0; i < list.length; i++) {
optionValue = list[i][0];
optionLabel = list[i][1];
newOption = new Option(optionLabel, optionValue);
newOption.setAttribute('title', optionLabel);
champ.options[i] = newOption;
}
}
}
return champ.id;
}
function ClientListeFiltre() {
this.parent = ClientService;
this.parent();
this.identifiant = null;
this.validerFiltre = C_validerFiltre;
this.handlerEvenement = C_setOptions;
this.finaliserExecution = C_finaliserExecution;
}
