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.

I think I need help with a conditional function.

Hi
I appologise in advance that I know nothing about javascript
The following is a snippet of code that generates right or wrong answers from an online quiz. The script is in the header of this page.

Basically, what I want is a function that will give the visitor a link to the next quiz, BUT ONLY if they get 100% or 10/10. Would it require a new line? would it call the conditions of the +right+ function? I have been trying to add a function in the second to last table cell where it generates the +right+

Testing by way of a client-side technology, like Javascript, is generally a bad idea.

For example:
I know nothing of the subject matter but, with a View Source, I was able to get these correct answers:
var canswerarray=new Array()
canswerarray[0]='2';
canswerarray[1]='1';
canswerarray[2]='3';
canswerarray[3]='1';
canswerarray[4]='2';
canswerarray[5]='0';
canswerarray[6]='2';
canswerarray[7]='2';
canswerarray[8]='2';
canswerarray[9]='3';