
function StringBuffer(_sz){this._size=0;this.buffer=new Array(isNaN(_sz)?0:parseInt(_sz));}
new StringBuffer(0);StringBuffer.prototype.append=function(){if(arguments.join!=this._undef){this.buffer[this._size]=arguments.join("");this._size++;}else{for(var i=0;i<arguments.length;i++){this.buffer[this._size]=arguments[i];this._size++;}}
return this;}
StringBuffer.prototype.write=StringBuffer.prototype.append;StringBuffer.prototype.size=function(){return this._size;}
StringBuffer.prototype.toString=function(){var str=this.buffer.join("");this.clear();this.append(str);return str;}
StringBuffer.prototype.clear=function(){for(var i=this._size-1;i>=0;i--){this.buffer[i]=null;}
this._size=0;}
StringBuffer.prototype.flush=function(){var str=this.toString();document.write(str);this.clear();}
