function comboOject(lib){ this.a = new Array(22); this.catsIndex = -1; this.itemsIndex = 0; this.m = lib; } c = new comboOject('-> MODELE '); d = new comboOject('-> ZONE '); function getFormNum (formName) { var formNum =-1; for (i=0;i=0) { //formNum++; // reference next form, assume it follows in HTML with (document.forms[formNum].elements[elementNum+1]) { for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse order (bug workarnd) for(i=0;i0;i--){ if(options[i].value == val){ return i; } } } return 0; } function init(mrq,mod,loc,dpt){ mrq_i = getIndex(0,5,mrq); document.forms[0].elements[5].selectedIndex = mrq_i; relate(document.forms[0],5,mrq_i,c); document.forms[0].elements[6].selectedIndex = getIndex(0,6,mod); dpt_i = getIndex(0,8,dpt); document.forms[0].elements[8].selectedIndex = dpt_i; relate(document.forms[0],8,dpt_i,d); document.forms[0].elements[9].selectedIndex = getIndex(0,9,loc); } //--------------------------------------------------------------------------------- function typeChange() { return; if(self.document.frm.modele.selectedIndex > 1) { if (confirm("La sélection du type \nva annuler \nle choix du modèle.")) { self.document.frm.modele.selectedIndex=0; }else{ self.document.frm.type.selectedIndex=0; } } } function modeleChange() { return; if(self.document.frm.type.selectedIndex > 1) { if (confirm("La sélection du modèle \nva annuler \nle choix du type de véhicule.")) { self.document.frm.type.selectedIndex=0; }else{ self.document.frm.modele.selectedIndex=0; } } } function IEsetup(){ if(!document.all) return; IE5 = navigator.appVersion.indexOf("5.")!=-1; if(!IE5) { for (i=0;i