function getChoice(btns){
	for (var i = 0; i < btns.length; i++) {
		if (btns[i].checked) {
			return i + 1;
		}
	}
	return 0;
}
function calcScores(form){
    var s1 = 0;
    var g1 = 0;
    s1 += getChoice(form.t1cur);
    g1 += getChoice(form.t1tar);
    s1 += getChoice(form.t2cur);
    g1 += getChoice(form.t2tar);
    s1 += getChoice(form.t3cur);
    g1 += getChoice(form.t3tar);
    s1 += getChoice(form.t4cur);
    g1 += getChoice(form.t4tar);
    s1 += getChoice(form.t5cur);
    g1 += getChoice(form.t5tar);
    s1  = s1 * 20;
    g1 = g1 * 20;
    var s2 = 0;
    var g2 = 0;
    s2 += getChoice(form.t6cur);
    g2 += getChoice(form.t6tar);
    s2 += getChoice(form.t7cur);
    g2 += getChoice(form.t7tar);
    s2 += getChoice(form.t8cur);
    g2 += getChoice(form.t8tar);
    s2 += getChoice(form.t9cur);
    g2 += getChoice(form.t9tar);
    s2 += getChoice(form.t10cur);
    g2 += getChoice(form.t10tar);
    s2  = s2 * 20;
    g2 = g2 * 20;
    var s3 = 0;
    var g3 = 0;
    s3 += getChoice(form.t11cur);
    g3 += getChoice(form.t11tar);
    s3 += getChoice(form.t12cur);
    g3 += getChoice(form.t12tar);
    s3 += getChoice(form.t13cur);
    g3 += getChoice(form.t13tar);
    s3 += getChoice(form.t14cur);
    g3 += getChoice(form.t14tar);
    s3 += getChoice(form.t15cur);
    g3 += getChoice(form.t15tar);
    s3  = s3 * 20;
    g3 = g3 * 20;
    var s4 = 0;
    var g4 = 0;
    s4 += getChoice(form.t16cur);
    g4 += getChoice(form.t16tar);
    s4 += getChoice(form.t17cur);
    g4 += getChoice(form.t17tar);
    s4 += getChoice(form.t18cur);
    g4 += getChoice(form.t18tar);
    s4 += getChoice(form.t19cur);
    g4 += getChoice(form.t19tar);
    s4 += getChoice(form.t20cur);
    g4 += getChoice(form.t20tar);
    s4  = s4 * 20;
    g4 = g4 * 20;
    var s5 = 0;
    var g5 = 0;
    s5 += getChoice(form.t21cur);
    g5 += getChoice(form.t21tar);
    s5 += getChoice(form.t22cur);
    g5 += getChoice(form.t22tar);
    s5 += getChoice(form.t23cur);
    g5 += getChoice(form.t23tar);
    s5 += getChoice(form.t24cur);
    g5 += getChoice(form.t24tar);
    s5 += getChoice(form.t25cur);
    g5 += getChoice(form.t25tar);
    s5  = s5 * 20;
    g5 = g5 * 20;
    var s6 = 0;
    var g6 = 0;
    s6 += getChoice(form.t26cur);
    g6 += getChoice(form.t26tar);
    s6 += getChoice(form.t27cur);
    g6 += getChoice(form.t27tar);
    s6 += getChoice(form.t28cur);
    g6 += getChoice(form.t28tar);
    s6 += getChoice(form.t29cur);
    g6 += getChoice(form.t29tar);
    s6 += getChoice(form.t30cur);
    g6 += getChoice(form.t30tar);
    s6  = s6 * 20;
    g6 = g6 * 20;
    var s7 = 0;
    var g7 = 0;
    s7 += getChoice(form.t31cur);
    g7 += getChoice(form.t31tar);
    s7 += getChoice(form.t32cur);
    g7 += getChoice(form.t32tar);
    s7 += getChoice(form.t33cur);
    g7 += getChoice(form.t33tar);
    s7 += getChoice(form.t34cur);
    g7 += getChoice(form.t34tar);
    s7 += getChoice(form.t35cur);
    g7 += getChoice(form.t35tar);
    s7  = s7 * 20;
    g7 = g7 * 20;
    var newURL = self.location.protocol + '//' + self.location.host + self.location.pathname.substring(0,self.location.pathname.lastIndexOf('/')) + '/BASkillsTest2.html?';
    newURL = newURL + '(' + s1 + ':' + g1 + ')';
    newURL = newURL + '(' + s2 + ':' + g2 + ')';
    newURL = newURL + '(' + s3 + ':' + g3 + ')';
    newURL = newURL + '(' + s4 + ':' + g4 + ')';
    newURL = newURL + '(' + s5 + ':' + g5 + ')';
    newURL = newURL + '(' + s6 + ':' + g6 + ')';
    newURL = newURL + '(' + s7 + ':' + g7 + ')';
//    alert(newURL);
    if  (document.images)
        top.location.replace(newURL);
    else
        top.location.href = newURL;
}