
function sz(t) 
	{
	a = t.value.split('\n');
	b=1;
	for (x=0;x < a.length; x++) {
	 if (a[x].length >= t.cols) b+= Math.floor(a[x].length/t.cols);
	 }
	b+= a.length;
	if (b > t.rows) t.rows = b;
	}
	
function redraw(min_height){
		var el = document.getElementById('test');
		scrollHeight = el.scrollHeight + 2;
		if (scrollHeight > min_height)
			el.style.height = scrollHeight;
	}
	
