code:
function startsWithAlpha(message) {
if(message.length == 0) { return false; }
var alpha = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM";
var firstChar = message.charAt(0);
for(i = 0; i < alpha.length; i++) {
if(alpha.charAt(i) == firstChar) {
return true;
}
}
return false;
}
This *should* work but I've not tested it and I've not coded in JS for ages.