function Select(){ this.options = new Array(); } Select.prototype.addOption = function(text,value){ this.options[this.options.length] = new Option(text,value); } Select.copy = function(select1,select2){ select2.options.length = select1.options.length; if (select1.selectedIndex) select2.selectedIndex = select1.selectedIndex; for (var i=0;i