	(function($)
	{
		$.fn.addOption = function(t, v) 
		{
			return this.each(function()
			{
				this[this.length] = new Option(t, v);
				return this;
			});
			  
		};
	})(jQuery);

	(function($)
	{
		$.fn.realAppendTo = function(v) 
		{
			return this.each(function()
			{
				var obj = document.getElementById(v);
				if (obj != null) obj.innerHTML += this.innerHTML;
				return this;
			});
			  
		};
	})(jQuery);

	(function($)
	{
		$.fn.selectedByValue = function(v) 
		{
			return this.each(function()
			{
				for (i=0;i<this.options.length;i++)
				{
					if (this.options[i].value == v) 
					{
						this.selectedIndex = i;
						break;
					}
				}
				return this;
			});
			  
		};
	})(jQuery);
