j'ai changé le onclick par: onclick="ios++; insertOldSchool(this.form.Filtername, 'Insert', 'insert');"
le javascript:
var ios = 0;
var aos = 0;
function insertOldSchool(theSel)
{
var newText = document.getElementById('Filtername2').innerHTML;
var newValue = document.getElementById('Filtername2').innerHTML;
if (theSel.length == 0) {
var newOpt1 = new Option(newText, newValue);
theSel.options[0] = newOpt1;
theSel.selectedIndex = 0;
} else if (theSel.selectedIndex != -1) {
var selText = new Array();
var selValues = new Array();
var selIsSel = new Array();
var newCount = -1;
var newSelected = -1;
var i;
for(i=0; i<theSel.length; i++)
{
newCount++;
if (newCount == theSel.selectedIndex) {
selText[newCount] = newText;
selValues[newCount] = newValue;
selIsSel[newCount] = false;
newCount++;
newSelected = newCount;
}
selText[newCount] = theSel.options[i].text;
selValues[newCount] = theSel.options[i].value;
selIsSel[newCount] = theSel.options[i].selected;
}
for(i=0; i<=newCount; i++)
{
var newOpt = new Option(selText[i], selValues[i]);
theSel.options[i] = newOpt;
theSel.options[i].selected = selIsSel[i];
}
}
}