﻿<!--//

window.onload = function() {
	//detectFlash();
	if (FlashDetect.installed) {
	        var fo = new FlashObject("/Resources/new_flashtest.swf", "swf-test", "680", "520", "8", "#ffffff");
	        fo.addParam("wmode","transparent");
	        fo.write("practiceQuestions");
	    }
	}


function result1() {
	var x="document.CS1.Q1[2].checked" ; var y="document.CS1.Q2[7].checked"
	var q="First Bead = B, Second = H" ; var tot=0 ;
	for (i=0; i<=7; i++) { if (eval(document.CS1.Q1[i].checked)) {tot++}  } ;
	for (i=0; i<=7; i++) { if (eval(document.CS1.Q2[i].checked)) {tot++}  } ;
	if (tot==2) {q="Whilst imaginative, that is incorrect. \n\n Remember you have to continue the \n pattern - not improve it!" } ;
	if (eval(x)) {  q="The first bead is right - check the second!" } ;
	if (eval(y)) {  q="The second bead is right - check the first!" } ;
	if (eval(x) && eval(y)) { q="That is correct"  } ;
	alert(q) ;
	return  }
function result2() {
	var x="document.CS2.Q1[0].checked";  var y="document.CS2.Q2[6].checked"; 
	var q="First Bead = A, Second = D" ; var tot=0 ;
	for (i=0; i<=7; i++) { if (eval(document.CS2.Q1[i].checked)) {tot++}  } ;
	for (i=0; i<=7; i++) { if (eval(document.CS2.Q2[i].checked)) {tot++}  } ;
	if (tot==2) {q="Whilst imaginative, that is incorrect. \n\n Remember you have to continue the \n pattern - not improve it!" } ;
	if (eval(x)) {  q="The first bead is right - check the second!" } ;
	if (eval(y)) {  q="The second bead is right - check the first!" } ;
	if (eval(x) && eval(y)) { q="That is correct"  } ;
	alert(q) ;
	return  }
function result3() {
	x="document.CS3.Q1[2].checked" ; y="document.CS3.Q2[3].checked"
	var q="First Bead = B, Second = F" ; var tot=0 ;
	for (i=0; i<=7; i++) { if (eval(document.CS3.Q1[i].checked)) {tot++}  } ;
	for (i=0; i<=7; i++) { if (eval(document.CS3.Q2[i].checked)) {tot++}  } ;
	if (tot==2) {q="Whilst imaginative, that is incorrect. \n\n Remember you have to continue the \n pattern - not improve it!" } ;
	if (eval(x)) {  q="The first bead is right - check the second!" } ;
	if (eval(y)) {  q="The second bead is right - check the first!" } ;
	if (eval(x) && eval(y)) { q="That is correct"  } ;
	alert(q) ;
	return  }
function result4() {
	x="document.CS4.Q1[7].checked" ; y="document.CS4.Q2[5].checked" ;
	var q="First Bead = H, Second = G" ; var tot=0 ;
	for (i=0; i<=7; i++) { if (eval(document.CS4.Q1[i].checked)) {tot++}  } ;
	for (i=0; i<=7; i++) { if (eval(document.CS4.Q2[i].checked)) {tot++}  } ;
	if (tot==2) {q="Whilst imaginative, that is incorrect. \n\n Remember you have to continue the \n pattern - not improve it!" } ;
	if (eval(x)) {  q="The first bead is right - check the second!" } ;
	if (eval(y)) {  q="The second bead is right - check the first!" } ;
	if (eval(x) && eval(y)) { q="That is correct"  } ;
	alert(q) ;
	return  }
//-->
