// JavaScript Document
Array.prototype.push = function(obj){
	this[this.length] = obj;
	return this.length;
}
Array.prototype.splice = function(pos,amount){
	var a = this.concat([]);
	this.length = 0;
	for(var i=0;i<a.length;i++){
		if(i>=pos && i<pos+amount)continue;
		this[this.length] = a[i];
	}
}