<script>
function submitenter(myfield,e)
{
var key;
if (window.event)
key = window.event.keyCode;
else if (e)
key = e.which;
if (key>31)
if (key<128)
{
if (window.event)
window.event.keyCode=' !"#$%،گ)(×+و-./0123456789:ک,=.؟@ِذ}ىُىلآ÷ـ،/’د×؛َءٍف‘{ًْإ~جژچ^_پشذز ثبلاهتنمئدخحضقسفعرصطغظ<| >ّ'.charCodeAt(key-32);
else if (e)
e.which=' !"#$%،گ)(×+و-./0123456789:ک,=.؟@ِذ}ىُىلآ÷ـ،/’د×؛َءٍف‘{ًْإ~جژچ^_پشذز ثبلاهتنمئدخحضقسفعرصطغظ<| >ّ'.charCodeAt(key-32);
}
return true;
}
</script>
<input type="text" onkeypress="return submitenter(this,event)" name="Name" >