function addOption(object,text,value) { object.options[object.options.length] = new Option(text, value); }