function adjust() {
	// Opera isn't just broken. It's really twisted.
	if (this.scrollHeight && this.clientHeight) {
		if (this.scrollHeight > this.clientHeight)
			this.rows += 1;
	}
}

function init() {
	if (!document.getElementById)
		return;

	document.getElementById("comment").rows=3;
	document.getElementById("comment").onkeypress = adjust;
}
window.onload = init;