var totalquestions=10
var correctchoices=new Array()
correctchoices[1]='e'
correctchoices[2]='a'
correctchoices[3]='c'
correctchoices[4]='d'
correctchoices[5]='b'
correctchoices[6]='d'
correctchoices[7]='b'
correctchoices[8]='c'
correctchoices[9]='a'
correctchoices[10]='c'
function gradeit(){var incorrect=null
for (q=1;q<=totalquestions;q++){var thequestion=eval("document.myquiz.soru"+q)
	for (c=0;c<thequestion.length;c++){if (thequestion[c].checked==true)
		actualchoices[q]=thequestion[c].value}
	if (actualchoices[q]!=correctchoices[q]){ //process an incorrect choice
		if (incorrect==null)
		incorrect=q
		else
		incorrect+="/"+q}}
if (incorrect==null)
incorrect="a/b"
document.cookie='q='+incorrect
if (document.cookie=='')
alert("Tarayıcınız kurabiye / cookie kabul etmiyor. Lütfen ilgili ayarları yapınız.")
else
popupWin=window.open("snavNOT.htm","winNOT","width=450,height=340")}  

function showsolution(){var win2=window.open("","win2","width=180,height=350, scrollbars")
win2.focus()
win2.document.open()
win2.document.write('<title>B1 Çözümler</title>')
win2.document.write('<body bgcolor="#FFFFFF">')
win2.document.write('<center><p><b>Doğru Yanıtlar</b></p></center>')
win2.document.write('<center><font face="Times New Roman">')
for (i=1;i<=totalquestions;i++){
for (temp=0;temp<incorrect.length;temp++){if (i==incorrect[temp])
wrong=1}
if (wrong==1){win2.document.write("Soru "+i+"_ "+correctchoices[i].fontcolor("red")+"<br>")
wrong=0}
else
win2.document.write("Soru "+i+"_ "+correctchoices[i]+"<br>")}
win2.document.write('</center></font>')
win2.document.write("<center><p><small>Kırmızıyla gösterilenleri yanlış yanıtladınız.</small></p><p><small><a href='javascript:window.close()'>Pencereyi kapat</a></small></center>")
win2.document.close()}

