<script type="text/javascript">
function submitByEnter()
{
if(event.keyCode == 13)
{
login();
document.getElementByIdx_x("password").value="";
}
}
</script>
<form class="mainmenu" onkeydown="submitByEnter();">