The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

JavaScript really isn't that hard, and what you did seemed to me 100% correct at first glance; however, I did figure out what went wrong (very, very minor)

For some reason, when you call the function inside the scope of the radio button, it tries to call that function in that same scope and then propogates outward, trying to find a match for the function name to try to run. Atleast, this'd be my guess at what happened.

(or atleast it seems as if it does something similar from a few tests I ran).

Anyway, it finds a match in the first case and tries to run it as a function, but it can't, so that is where the error stems from. What you can do is just change the name of the function from "member" to something else, like "memberF" Example:

Thanks for the description, but I tried what you said, and it didn't work. I spent some time reading into it more (after reading your explaination) and couldn't figure it out. If I recall correctly it was giving me an 'object undefined error' for the 'Prod1' variable.