function getMax(anumber, another) { return((anumber> another) ? anumber : another); }function resizeTextArea(t, minRows) {t.rows = minRows;t.setAttribute("wrap", "on");t.style.overflow = "auto";lines = t.value.split("\n");wraps=0;t.rows = getMax(lines.length+1+wraps, minRows);for(i=0;i<lines.length;i++) { if(lines[i].length>18) { wraps++; t.rows = getMax(lines.length+1+wraps, minRows);}}} function resizeOnClick(ta) { if(ta.rows == 3) { ta.rows = ta.rows + 1; } }

