<input type="text" value="1" onkeypress="if ((arguments[0] || window.event).keyCode == 13) paginate(this.value);">