var ch = '9';
if (isLetter(ch))
document.write("yes<br />");
else
document.write("no<br />");
var ch = 'a';
if (isLetter(ch))
document.write("yes<br />");
else
document.write("no<br />");
function isLetter(ch){
return ch.length === 1 && ch.match(/[a-z]/i);
}
/*
run:
no
yes
*/