	//Set up the function to score the test
function ScoreTest() {
	for (i=0; i<10; i++) {
		if (GivenAns[i] == AnswerKey[i]) {
			Score[0] = Score[0] + 1}
		};
	for (i=0; i<10; i++) {
		x = i + 10;
		if (GivenAns[x] == AnswerKey[x]) {
			Score[1] = Score[1] + 1}
		};
	for (i=0; i<10; i++) {
		x = i + 20;
		if (GivenAns[x] == AnswerKey[x]) {
			Score[2] = Score[2] + 1}
		};
	for (i=0; i<10; i++) {
		x = i + 30;
		if (GivenAns[x] == AnswerKey[x]) {
			Score[3] = Score[3] + 1}
		};
	Placement = "CCDM 103N-Pre-Algebra or CCDM 114N-Beginning Algebra";
	if (Score[0] >= 6) {
		if (Score[1] >= 6) {
		if (Score[2] >= 6) {
		if (Score[3] >= 6) {Placement = "MATH 191-Calc I, MATH 235-Calc for Tech StudentI, MATH 278-Descrete Math for CS, MATH 279-Intro to Finite Math or MATH 280-Intro to Linear Algebra";}
		}}
	}
	
	if (Score[0] >= 5) {
		if (Score[1] < 5 ) {
                if (Score[2] < 6) {
                if (Score[3] < 6) {Placement = "MATH 120-Intermediate Algebra or MATH 210G-Mathematics Appreciation";}
	}}}
	if (Score[0] + Score[1] >= 10){
                if (Score[2] < 6)  {
                if (Score[3] < 6)  {Placement = "MATH 121G-College Algebra, STAT 251-Stats for Business/Behavioral Sciences or STAT 271-Stats for Psychological Sciences"}
        }}
	if (Score[0]>= 8){
                if (Score[1]>= 6)  {
                if (Score[2]< 6)  {
                if (Score[3] < 6)  {Placement = "MATH 142G-Calc for the Bio & Mgmnt, MATH 190-Trig & Pre-Calc, MATH 230-Matrices and Linear Prog or HON-MATH 275G - Spirit and Evolution of Math"}
        }}
        }
        window.alert("Your scores are as follows: " +
			"\nPart I:   " + Score[0] + 
			"\nPart II:  " + Score[1] + 
			"\nPart III: " + Score[2] + 
			"\nPart IV:  " + Score[3] + 
			"\nYour placement is: " + Placement )
	return;
	}
//Initialize all arrays and variables

	AnswerKey = new Array("E", "E", "E", "A", "D", "C", "A", "B", "C", "D",
	"A", "A", "B", "D", "A", "C", "C", "A", "D", "B", "B", "C", "E", "E",
	"A", "D", "C", "D", "E", "A", "D", "D", "B", "B", "E", "B", "D", "B",
	"E", "C");
	GivenAns = new Array(40);
	for (i=0; i<40; i++) {
		GivenAns[i] = "F";
	}
	Score = new Array(0, 0, 0, 0);
