var Select = function(id){
	this.select = document.getElementById(id);
};

Select.prototype = {
	addOption : function(text, value, isSelected){
			this.select.options[this.select.options.length] = new Option(text, value, false, isSelected);
		},
	removeAllOptions : function(){
			var total = this.select.options.length;
			for(var i=this.select.options.length; i>=0; i--){ this.select.remove(i); }
		},
	removeOption : function(index){
			this.select.remove(index);
		},
	editOption : function(index, value, text){
			this.select.options[index].value = value;
			this.select.options[index].text  = text;
		}	
};

