function resizeTextarea(id) {
    var elem = document.getElementById(id);
    var toWhat = elem.value.length;
	if (toWhat > 34) {
	    var toWhatt = (Math.round(toWhat / 22)+3);
        elem.setAttribute('rows', toWhatt);
    } 
}
