Thanks,
I tried to no avail …..
function CheckSS(strng,x)
{
if (strng == "")
{
alert("You didn't enter a Social Security Number.");
HighlightRed(x);
document.getElementById("x").focus();
document.getElementById("x").scrollIntoView();return;
}
else
{
if ((strng.length < 9) || (strng.length > 9))
{
alert("The Social Security Number is the wrong length. Just use numbers, no dashes... like 123456789 not " + strng);
HighlightRed(x);
document.getElementById("x").focus();
document.getElementById("x").scrollIntoView();return;
}
else
{
var illegalChars = /W#/;
if (illegalChars.test(strng))
{
alert( "The Social Security Number contains illegal characters. Just use numbers, no dashes.");
HighlightRed(x);
document.getElementById("x").focus();
document.getElementById("x").scrollIntoView();return; }
}
HighlightWhite(x)
}
and the same thing happens. I know this must just be semantics, but I'm a bit lost.
Thanks so much,
Douglas McKibbin