var total = 0; var a1 = 10; var b1 = 10; var c1 = 10; var d1 = 10; var e1 = 10; var a2 = 10; var b2 = 10; var c2 = 10; var a3 = 10; var b3 = 10; var c3 = 10; var d3 = 10; var a4 = 10; var b4 = 10; var c4 = 10; var a5 = 10; var b5 = 10; var c5 = 10; var a6 = 10; var b6 = 10; var a7 = 10; var b7 = 10; var c7 = 10; var a8 = 10; var b8 = 10; var c8 = 10; var d8 = 10; var e8 = 1; var a9 = 10; var b9 = 10; var c9 = 10; var a10 = 10; var b10 = 10; var c10 = 10; var d10 = 10; function x() { if (document.myform.c1st[0].checked == true) {total += a1} if (document.myform.c1st[1].checked == true) {total += b1} if (document.myform.c1st[2].checked == true) {total += c1} if (document.myform.c1st[3].checked == true) {total += d1} if (document.myform.c1st[4].checked == true) {total += e1} if (document.myform.c2nd[0].checked == true) {total += a2} if (document.myform.c2nd[1].checked == true) {total += b2} if (document.myform.c2nd[2].checked == true) {total += c2} if (document.myform.c3rd[0].checked == true) {total += a3} if (document.myform.c3rd[1].checked == true) {total += b3} if (document.myform.c3rd[2].checked == true) {total += c3} if (document.myform.c3rd[3].checked == true) {total += d3} if (document.myform.c4th[0].checked == true) {total += a4} if (document.myform.c4th[1].checked == true) {total += b4} if (document.myform.c4th[2].checked == true) {total += c4} if (document.myform.c5th[0].checked == true) {total += a5} if (document.myform.c5th[1].checked == true) {total += b5} if (document.myform.c5th[2].checked == true) {total += c5} if (document.myform.c6th[0].checked == true) {total += a6} if (document.myform.c6th[1].checked == true) {total += b6} if (document.myform.c7th[0].checked == true) {total += a7} if (document.myform.c7th[1].checked == true) {total += b7} if (document.myform.c7th[2].checked == true) {total += c7} if (document.myform.c8th[0].checked == true) {total += a8} if (document.myform.c8th[1].checked == true) {total += b8} if (document.myform.c8th[2].checked == true) {total += c8} if (document.myform.c8th[3].checked == true) {total += d8} if (document.myform.c8th[4].checked == true) {total += e8} if (document.myform.c9th[0].checked == true) {total += a9} if (document.myform.c9th[1].checked == true) {total += b9} if (document.myform.c9th[2].checked == true) {total -= c9} if (document.myform.c10th[0].checked == true) {total += a10} if (document.myform.c10th[1].checked == true) {total += b10} if (document.myform.c10th[2].checked == true) {total += c10} if (document.myform.c10th[3].checked == true) {total += d10} alert ("Είσαι " +total+ " % Cult άτομο.") total -= total } function b() { total -= total }