the argument to function "setOptions(chosen)".. Where from is it getting values? Maybe i missed it.. anyways do not use .length property to add and option i.e (selbox.options[selbox.options.length] = new Option('10 Mbps','225')
instead use (selbox.options[selbox.options] = new Option('10 Mbps','225')