function checkalpha(e)
{
var a=e.keyCode;
if(!((a>=65 && a<=90) || (a>=97 && a<=122)))
{
e.keyCode=0;
}
}
The above function work well in internet explorer for checking characters only in name
but same code not working in Mozila Firefox
please give me solution