Array.prototype.remove = function (dx)
{
if(isNaN(dx) || dx > this.length)
return false;
}
var n = 0;
for(var i =0; i < this.length; i++)
if(this[i] ! = this[dx])
this[n++] = this[i];
this.length - = 1;