<form name="form1" action="#">
<input type="text" οnkeydοwn="javascript:if(event.keyCode==13)submitForm();" />
</form>
<script>
function submitForm(){
document.form1.submit();
}
</script>
<form name="form1" action="#">
<input type="text" οnkeydοwn="javascript:if(event.keyCode==13)submitForm();" />
</form>
<script>
function submitForm(){
document.form1.submit();
}
</script>