rem: if (i + step == sel.options.length) 
add: if (i + step == sel.options.length - 1) 
context: function selectMove(id, step) {    var sel = $('r'+id);    var i = 0;    while (i < sel.options.length) {        if (sel.options[i].selected) {            if (i+step < 0 || i+step > sel.options.length) {                return;            }	    if (i + step == sel.options.length)		sel.appendChild(sel.options[i]);	    else		sel.insertBefore(sel.options[i], sel.options[i+step]);            return;        }        i++;    }}
meta: 6601	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6601/47b04b4d221ceda80f2a4f39dffaadaddb431294/functions.js/buggy/javascript/functions.js