String.prototype.trim = function()
{
    return this.replace(/(^\s*)|(\s*$)/g, "");
}

Error.prototype.toString = function() {
    return "JSÒì³£::"+(this.name?this.name:"´íÎó")+" / Code: 0x"
         + this.number.toString(16)
         + "\nÐÅÏ¢: "
         + this.description;
}

Array.prototype.delByIndex=function(n) 
{
	if(n<0)
		return this;
	else
		return this.slice(0,n).concat(this.slice(n+1,this.length));
}

window.input = function(sTitle , sDefaultValue)
{
	return prompt(sTitle , sDefaultValue);
}

window.Reset = function(){window.location = location.href;}
window.GoTo = function(sURL){window.location.href = sURL;}