var validChars = ", +-0123456789()";
if(document.getElementById(FinalControlID17).value.trim() !="")
{
var sControlValue = document.getElementById(FinalControlID17).value.trim();
for (var i = 0; i < sControlValue.length; i++)
{
if(validChars.indexOf(sControlValue.charAt(i)) == -1)
{
alert ("Please enter a valid Phone Number");
document.getElementById(FinalControlID17).select();
return false;
}
}
}
Monday, June 2, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment