// $Id$

function Array_remove(idx)
{
	if(idx >= 0 && idx < this.length)
	{
		while(idx < this.length)
			this[idx] = this[++idx]
		this.length = this.length-1
	}
}
function Array_indexOf(object)
{
	for(var x = 0; x < this.length; x++)
		if(this[x] == object)
			return x
	return -1
}
function Array_init()
{
	Array.prototype.remove = Array_remove
	Array.prototype.indexOf = Array_indexOf
}

Array_init()

