Try this
function fnvalidate() {
if (!form1.TextBox1.value.match(/^[a-zA-Z]+$/) && form1.TextBox1.value != "") {
form1.TextBox1.value = "";
form1.TextBox1.focus();
alert("only alphabets are allowed as UserName");
}
}
Call the function in onblur event of ur control on client side