// text_area.js

//---------------------------------------------------------
function TextArea(o)
	{
	if (o.parent == undefined) o.parent = document.getElementsByTagName("body")[0];
	this.elem = document.createElement("textarea");
	this.elem.obj = this;
	if (o.value != undefined) elem.value = o.value;
	var s = this.elem.style;
	if (o.top != undefined) s.position = "absolute";
	if (o.top != undefined) s.top = o.top;
	if (o.left != undefined) s.left = o.left;
	if (o.height != undefined) s.height = o.height;
	if (o.width != undefined) s.width = o.width;
	if (o.border != undefined) s.border = o.border;

	o.parent.appendChild(this.elem);
	}

//---------------------------------------------------------
TextArea.prototype.AddText = function(text)
	{
	this.elem.value = this.elem.value + text;	
	}

