function resizeTextarea ( it, min_rows, max_rows ) {
	
	var cols = it.cols;
	
	var iLength = it.value.length;
	var aLines = it.value.split("\n");

	var iRows = aLines.length;
	for(var i = 0; i < aLines.length; i++){
		if(aLines[i].length > cols - 5) {
			iRows += Math.floor(aLines[i].length / cols);
		}
	}

	it.rows = Math.min(Math.max(iRows, min_rows), max_rows);
	
	return true;
}