Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<script>
function checknumber(data) {
[color red]var checkOK = "()-0123456789. ";[/color]
var checkStr = data.value;
var allValid = true;
var allNum = "";
for (i = 0; i < checkStr.length; i++) {
ch = checkStr.charAt(i);
for (j = 0; j < checkOK.length; j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length) {
allValid = false;
break;
}
if (ch != ",")
allNum += ch;
}
if (!allValid) {
alert("Please enter a valid phone number");
data.value = "";
return (false);
}
}
</script>