que hace el if javascript:funcion() ?? no se supone que le pasas javascript al evento?
			Código (html4strict) [Seleccionar] 
<input name="texto" type="text" class="bar" id="texto" onkeydown="if(event.keycode == 13) valida()" size="57"maxlength="2048" />
				
 vanilla forums es todavia mas simple xD