if (!form.birthday.value) || !form.birthmonth.value || !form.birthyear.value)
[B]LOOKS LIKE AN EXTRA BRACKET ON THE FIRST CONDITION[/B]
{
alert("Please enter your birthdate.");
form.birthday.focus();
return false; [/QUOTE]
if (isNaN(form.birthday.value) || isNaN(form.birthmonth.value ) || isNaN(form.birthday.value)) [/QUOTE]
As I understand it "NaN" is a special value in Javascript, and isNaN tests for that value. I don't think you can use it generally (others, I am sure you will correct me if I am wrong). You need to do something to obtain it. Thus try the following:-
[CODE]
if (isNaN(parseInt(form.birthday.value)) || isNaN(parseInt(form.birthmonth.value)) || isNaN(parseInt(form.birthday.value))
[/CODE]
Of course the above offers only limited validation, and you may wish to explore using regular expressions to validate your form.