I can't believe that I'm posting this as a problem. It's so basic, but I can't get it to work. I have a variable: passed. I want to use it in two different functions: checkit and validate. Here's the code:
Code:
passed = true;

function checkit(what){
:
:
:
:
if (!checked){
passed = false;
return false;
}
}

function validate(what){
if (!passed){
:
:
:
:
}
}
I've read all the posts and the google search articles and nothing I try works. The value of 'passed' isn't passed to the validate function even when I force it to be false (set it to false as the first line in the checkit function).

Can anyone take pity on a newbie and tell me what I'm doing wrong?