function gabarito()
{
var correct
correct=0
if (document.test.q1[1].checked==true)
{
   document.all.item("q1cross").style.display = "none"
   document.all.item("q1check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q1cross").style.display = ""
   document.all.item("q1check").style.display = "none"
}
if (document.test.q2[2].checked==true)
{
   document.all.item("q2cross").style.display = "none"
   document.all.item("q2check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q2cross").style.display = ""
   document.all.item("q2check").style.display = "none"
}
if (document.test.q3[2].checked==true)
{
   document.all.item("q3cross").style.display = "none"
   document.all.item("q3check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q3cross").style.display = ""
   document.all.item("q3check").style.display = "none"
}
if (document.test.q4[0].checked==true)
{
   document.all.item("q4cross").style.display = "none"
   document.all.item("q4check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q4cross").style.display = ""
   document.all.item("q4check").style.display = "none"
}
if (document.test.q5[2].checked==true)
{
   document.all.item("q5cross").style.display = "none"
   document.all.item("q5check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q5cross").style.display = ""
   document.all.item("q5check").style.display = "none"
}
if (document.test.q6[2].checked==true)
{
   document.all.item("q6cross").style.display = "none"
   document.all.item("q6check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q6cross").style.display = ""
   document.all.item("q6check").style.display = "none"
}
if (document.test.q7[1].checked==true)
{
   document.all.item("q7cross").style.display = "none"
   document.all.item("q7check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q7cross").style.display = ""
   document.all.item("q7check").style.display = "none"
}
if (document.test.q8[2].checked==true)
{
   document.all.item("q8cross").style.display = "none"
   document.all.item("q8check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q8cross").style.display = ""
   document.all.item("q8check").style.display = "none"
}
if (document.test.q9[0].checked==true)
{
   document.all.item("q9cross").style.display = "none"
   document.all.item("q9check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q9cross").style.display = ""
   document.all.item("q9check").style.display = "none"
}
if (document.test.q10[1].checked==true)
{
   document.all.item("q10cross").style.display = "none"
   document.all.item("q10check").style.display = ""
   correct=correct+1
}
else
{
   document.all.item("q10cross").style.display = ""
   document.all.item("q10check").style.display = "none"
}
alert(correct + " respostas corretas")
}