Вариант тянущейся textarea ....
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>изменение размера textarea</title>
<style type="text/css">
body {
background-color:#004B52;
}
textarea{
background-color: #FF0000;
color:yellow;
}
</style>
<script language="JavaScript" type="text/javascript">
function flexibleTextarea(b) {
var a = document.getElementById(b) || b;
if (a) {
a.style.overflow = "hidden";
var e = a.rows = a.rows > 0 ? a.rows : 2;
b = a.cols = a.cols > 0 ? a.cols : 20;
var g = RegExp("([^\r\n]{" + b + "})([^\r\n])"),
f = RegExp("[^\n]{" + b + "}\n?$|[^\n]{0," + b + "}\n");
a.onkeyup = a.onkeydown = function () {
a.value = a.value.replace(g, "$1\r\n$2");
for (var c = 0, d = a.value; d.search(f) >= 0;) {
c++;
d = d.replace(f, "")
}
c += 2;
if (c < e) c = e;
a.rows = c
}
}
};
window.onload = function(){
flexibleTextarea('textarea');
flexibleTextarea('textarea1');
}
</script>
</head>
<body>
<textarea id='textarea' rows="3" cols="50" ></textarea>
<br />
<textarea id='textarea1' ></textarea>
</body>
</html>