problem with and IF statment on Submiting the form

problem with and IF statment on Submiting the form

am 22.05.2007 14:02:03 von Markus

Hallo

I have a problem when i click on the Submit button it does a validation but
i am having problem with the statement below. It does not submit the form if
the value of answer is more then 0.

if(document.FrontPage_Form1.answer2.value == "1")
{if(document.FrontPage_Form1.answer.value == "0")
alert("Please select Access Tables Requered!");
return false;
}
else
{
return false
}

Regards
Markus