var Fonts = new Array(28);

	Fonts[0] = "Arial";
	Fonts[1] = "Airfoil_Script";
	Fonts[2] = "Alako";
	Fonts[3] = "Arrierre_Garde";
	Fonts[4] = "Artistik";
	Fonts[5] = "Parking_Lot";
	Fonts[6] = "Caslon";
	Fonts[7] = "Cowboys";
	Fonts[8] = "Dali";
	Fonts[9] = "Escapade";
	Fonts[10] = "Girls_are_weird";
	Fonts[11] = "Imperator";
	Fonts[12] = "Futura";
	Fonts[13] = "Military";
	Fonts[14] = "Monogram";
	Fonts[15] = "Old_English";
	Fonts[16] = "Old_Newsprint";
	Fonts[17] = "Ornate";
	Fonts[18] = "Papyrus";
	Fonts[19] = "Pristina";
	Fonts[20] = "Rustic";
	Fonts[21] = "Script";
	Fonts[22] = "Simple_Script";
	Fonts[23] = "Stencil_Export";
	Fonts[24] = "Stencil_Font";
	Fonts[25] = "Sticks";
	Fonts[26] = "Times_New_Roman";
	Fonts[27] = "Whimsical";


var Size  = new Array(15)

	Size[0] = "1";
	Size[1] = "2";
	Size[2] = "3";
	Size[3] = "4";
	Size[4] = "5";
	Size[5] = "6";
	Size[6] = "7";
	Size[7] = "8";
	Size[8] = "9";
	Size[9] = "10";
	Size[10] = "12";
	Size[11] = "15";
	Size[12] = "18";
	Size[13] = "20";
	Size[14] = "22";
	Size[15] = "24";
	Size[16] = "28";
	Size[17] = "30";
	Size[18] = "32";
	Size[19] = "36";
	Size[20] = "40";
	Size[21] = "44";
	Size[22] = "48";


var Matrix = new Array(28);

Matrix[0] = new Array(15);
Matrix[1] = new Array(15);
Matrix[2] = new Array(15);
Matrix[3] = new Array(15);
Matrix[4] = new Array(15);
Matrix[5] = new Array(15);
Matrix[6] = new Array(15);
Matrix[7] = new Array(15);
Matrix[8] = new Array(15);
Matrix[9] = new Array(15);
Matrix[10] = new Array(15);
Matrix[11] = new Array(15);
Matrix[12] = new Array(15);
Matrix[13] = new Array(15);
Matrix[14] = new Array(15);
Matrix[15] = new Array(15);
Matrix[16] = new Array(15);
Matrix[17] = new Array(15);
Matrix[18] = new Array(15);
Matrix[19] = new Array(15);
Matrix[20] = new Array(15);
Matrix[21] = new Array(15);
Matrix[22] = new Array(15);
Matrix[23] = new Array(15);
Matrix[24] = new Array(15);
Matrix[25] = new Array(15);
Matrix[26] = new Array(15);
Matrix[27] = new Array(15);


//see array document for notes

Matrix[0][0] = "14,2.75,4.25,.50,23,72 points";
Matrix[1][0] = "15,2.75,4.25,.50,26,72 points";
Matrix[2][0] = "16,2.75,4.25,.50,23,72 points";
Matrix[3][0] = "16,2.75,4.25,.50,18,72 points";
Matrix[4][0] = "16,2.75,4.25,.50,23,72 points";
Matrix[5][0] = "16,2.75,4.25,.50,19,72 points";
Matrix[6][0] = "16,2.75,4.25,.50,20,72 points";
Matrix[7][0] = "16,2.75,4.25,.50,19,72 points";
Matrix[8][0] = "17,2.75,4.25,.50,21,72 points";
Matrix[9][0] = "15,2.75,4.25,.50,42,72 points";
Matrix[10][0] = "16,2.75,4.25,.50,33,72 points";
Matrix[11][0] = "16,2.75,4.25,.50,20,72 points";
Matrix[12][0] = "14,2.75,4.25,.50,23,72 points";
Matrix[13][0] = "14,2.75,4.25,.50,23,72 points";
Matrix[14][0] = "18,2.75,4.25,.50,22,72 points";
Matrix[15][0] = "18,2.75,4.25,.50,22,72 points";
Matrix[16][0] = "17,2.75,4.25,.50,26,72 points";
Matrix[17][0] = "18,2.75,4.25,.50,22,72 points";
Matrix[18][0] = "16,2.75,4.25,.50,23,72 points";
Matrix[19][0] = "16,2.75,4.25,.50,23,72 points";
Matrix[20][0] = "16,2.75,4.25,.50,22,72 points";
Matrix[21][0] = "17,2.75,4.25,.50,23,72 points";
Matrix[22][0] = "16,2.75,4.25,.50,25,72 points";
Matrix[23][0] = "14,2.75,4.25,.50,23,72 points";
Matrix[24][0] = "14,2.75,4.25,.50,23,72 points";
Matrix[25][0] = "15,2.75,4.25,.50,37,72 points";
Matrix[26][0] = "16,2.75,4.25,.50,20,72 points";
Matrix[27][0] = "15,2.75,4.25,.50,26,72 points";




Matrix[0][1] = "14.50,2.75,4.25,.75,11,144 points";
Matrix[1][1] = "16,2.75,4.25,.75,28,144 points";
Matrix[2][1] = "17,2.75,4.25,.75,11,144 points";
Matrix[3][1] = "17,2.75,4.25,.75,8,144 points";
Matrix[4][1] = "17,2.75,4.25,.75,11,144 points";
Matrix[5][1] = "17,2.75,4.25,.75,9,144 points";
Matrix[6][1] = "17,2.75,4.25,.75,10,144 points";
Matrix[7][1] = "17,2.75,4.25,.75,10,144 points";
Matrix[8][1] = "18,2.75,4.25,.75,10,144 points";
Matrix[9][1] = "16,2.75,4.25,.75,21,144 points";
Matrix[10][1] = "17,2.75,4.25,.75,15,144 points";
Matrix[11][1] = "17,2.75,4.25,.75,10,144 points";
Matrix[12][1] = "14.50,2.75,4.25,.75,11,144 points";
Matrix[13][1] = "14.50,2.75,4.25,.75,11,144 points";
Matrix[14][1] = "19,2.75,4.25,.75,13,144 points";
Matrix[15][1] = "19,2.75,4.25,.75,13,144 points";
Matrix[16][1] = "18,2.75,4.25,.75,12,144 points";
Matrix[17][1] = "19,2.75,4.25,.75,13,144 points";
Matrix[18][1] = "17,2.75,4.25,.75,11,144 points";
Matrix[19][1] = "17,2.75,4.25,.75,11,144 points";
Matrix[20][1] = "17,2.75,4.25,.75,11,144 points";
Matrix[21][1] = "18,2.75,4.25,.75,10,144 points";
Matrix[22][1] = "17,2.75,4.25,.75,11,144 points";
Matrix[23][1] = "14.50,2.75,4.25,.75,11,144 points";
Matrix[24][1] = "14.50,2.75,4.25,.75,11,144 points";
Matrix[25][1] = "16,2.75,4.25,.75,18,144 points";
Matrix[26][1] = "17,2.75,4.25,.75,10,144 points";
Matrix[27][1] = "16,2.75,4.25,.75,13,144 points";

Matrix[0][2] = "15,3.25,4.50,.85,7,216 points";
Matrix[1][2] = "17,3.25,4.50,.85,8,216 points";
Matrix[2][2] = "18,3.25,4.50,.85,7,216 points";
Matrix[3][2] = "18,3.25,4.50,.85,6,216 points";
Matrix[4][2] = "18,3.25,4.50,.85,7,216 points";
Matrix[5][2] = "18,3.25,4.50,.85,6,216 points";
Matrix[6][2] = "18,3.25,4.50,.85,5,216 points";
Matrix[7][2] = "18,3.25,4.50,.85,5,216 points";
Matrix[8][2] = "19,3.25,4.50,.85,6,216 points";
Matrix[9][2] = "17,3.25,4.50,.85,15,216 points";
Matrix[10][2] = "18,3.25,4.50,.85,10,216 points";
Matrix[11][2] = "18,3.25,4.50,.85,7,216 points";
Matrix[12][2] = "15,3.25,4.50,.85,7,216 points";
Matrix[13][2] = "15,3.25,4.50,.85,7,216 points";
Matrix[14][2] = "20,3.25,4.50,.85,9,216 points";
Matrix[15][2] = "20,3.25,4.50,.85,9,216 points";
Matrix[16][2] = "19,3.25,4.50,.85,7,216 points";
Matrix[17][2] = "20,3.25,4.50,.85,9,216 points";
Matrix[18][2] = "18,3.25,4.50,.85,8,216 points";
Matrix[19][2] = "18,3.25,4.50,.85,7,216 points";
Matrix[20][2] = "18,3.25,4.50,.85,7,216 points";
Matrix[21][2] = "19,3.25,4.50,.85,8,216 points";
Matrix[22][2] = "18,3.25,4.50,.85,8,216 points";
Matrix[23][2] = "15,3.25,4.50,.85,7,216 points";
Matrix[24][2] = "15,3.25,4.50,.85,7,216 points";
Matrix[25][2] = "17,3.25,4.50,.85,12,216 points";
Matrix[26][2] = "18,3.25,4.50,.85,5,216 points";
Matrix[27][2] = "17,3.25,4.50,.85,8,216 points";

Matrix[0][3] = "16,3.25,4.50,.95,6,288 points";
Matrix[1][3] = "18,3.25,4.50,.95,5,288 points";
Matrix[2][3] = "19,3.25,4.50,.95,6,288 points";
Matrix[3][3] = "19,3.25,4.50,.95,4,288 points";
Matrix[4][3] = "19,3.25,4.50,.95,6,288 points";
Matrix[5][3] = "19,3.25,4.50,.95,5,288 points";
Matrix[6][3] = "19,3.25,4.50,.95,5,288 points";
Matrix[7][3] = "19,3.25,4.50,.95,5,288 points";
Matrix[8][3] = "20,3.25,4.50,.95,6,288 points";
Matrix[9][3] = "18,3.25,4.50,.95,11,288 points";
Matrix[10][3] = "19,3.25,4.50,.95,7,288 points";
Matrix[11][3] = "17,3.25,4.50,.95,5,288 points";
Matrix[12][3] = "16,3.25,4.50,.95,6,288 points";
Matrix[13][3] = "16,3.25,4.50,.95,6,288 points";
Matrix[14][3] = "21,3.25,4.50,.95,6,288 points";
Matrix[15][3] = "21,3.25,4.50,.95,6,288 points";
Matrix[16][3] = "20,3.25,4.50,.95,6,288 points";
Matrix[17][3] = "21,3.25,4.50,.95,6,288 points";
Matrix[18][3] = "19,3.25,4.50,.95,6,288 points";
Matrix[19][3] = "19,3.25,4.50,.95,6,288 points";
Matrix[20][3] = "19,3.25,4.50,.95,6,288 points";
Matrix[21][3] = "20,3.25,4.50,.95,6,288 points";
Matrix[22][3] = "19,3.25,4.50,.95,6,288 points";
Matrix[23][3] = "16,3.25,4.50,.95,6,288 points";
Matrix[24][3] = "16,3.25,4.50,.95,6,288 points";
Matrix[25][3] = "18,3.25,4.50,.95,11,288 points";
Matrix[26][3] = "19,3.25,4.50,.95,5,288 points";
Matrix[27][3] = "18,3.25,4.50,.95,7,288 points";

Matrix[0][4] = "16.50,3.75,5.85,1.25,5,360 points";
Matrix[1][4] = "18.50,3.75,5.85,1.25,4,360 points";
Matrix[2][4] = "19.50,3.75,5.85,1.25,4,360 points";
Matrix[3][4] = "19.50,3.75,5.85,1.25,3,360 points";
Matrix[4][4] = "19.50,3.75,5.85,1.25,5,360 points";
Matrix[5][4] = "19.50,3.75,5.85,1.25,5,360 points";
Matrix[6][4] = "19.50,3.75,5.85,1.25,4,360 points";
Matrix[7][4] = "19.50,3.75,5.85,1.25,4,360 points";
Matrix[8][4] = "20.50,3.75,5.85,1.25,5,360 points";
Matrix[9][4] = "18.50,3.75,5.85,1.25,9,360 points";
Matrix[10][4] = "19.50,3.75,5.85,1.25,6,360 points";
Matrix[11][4] = "17.50,3.75,5.85,1.25,4,360 points";
Matrix[12][4] = "16.50,3.75,5.85,1.25,5,360 points";
Matrix[13][4] = "16.50,3.75,5.85,1.25,5,360 points";
Matrix[14][4] = "21.50,3.75,5.85,1.25,5,360 points";
Matrix[15][4] = "21.50,3.75,5.85,1.25,5,360 points";
Matrix[16][4] = "20.50,3.75,5.85,1.25,4,360 points";
Matrix[17][4] = "21.50,3.75,5.85,1.25,5,360 points";
Matrix[18][4] = "19.50,3.75,5.85,1.25,4,360 points";
Matrix[19][4] = "19.50,3.75,5.85,1.25,5,360 points";
Matrix[20][4] = "16.50,3.75,5.85,1.25,5,360 points";
Matrix[21][4] = "19.50,3.75,5.85,1.25,5,360 points";
Matrix[22][4] = "20.50,3.75,5.85,1.25,5,360 points";
Matrix[23][4] = "16.50,3.75,5.85,1.25,5,360 points";
Matrix[24][4] = "16.50,3.75,5.85,1.25,5,360 points";
Matrix[25][4] = "19.50,3.75,5.85,1.25,5,360 points";
Matrix[26][4] = "19.50,3.75,5.85,1.25,4,360 points";
Matrix[27][4] = "18.50,3.75,5.85,1.25,5,360 points";

Matrix[0][5] = "17,3.75,5.85,1.50,4,432 points";
Matrix[1][5] = "19,3.75,5.85,1.50,3,432 points";
Matrix[2][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[3][5] = "20,3.75,5.85,1.50,2,432 points";
Matrix[4][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[5][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[6][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[7][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[8][5] = "21,3.75,5.85,1.50,4,432 points";
Matrix[9][5] = "19,3.75,5.85,1.50,8,432 points";
Matrix[10][5] = "20,3.75,5.85,1.50,5,432 points";
Matrix[11][5] = "18,3.75,5.85,1.50,4,432 points";
Matrix[12][5] = "17,3.75,5.85,1.50,4,432 points";
Matrix[13][5] = "17,3.75,5.85,1.50,4,432 points";
Matrix[14][5] = "22,3.75,5.85,1.50,4,432 points";
Matrix[15][5] = "22,3.75,5.85,1.50,4,432 points";
Matrix[16][5] = "21,3.75,5.85,1.50,4,432 points";
Matrix[17][5] = "22,3.75,5.85,1.50,4,432 points";
Matrix[18][5] = "20,3.75,5.85,1.50,3,432 points";
Matrix[19][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[20][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[21][5] = "21,3.75,5.85,1.50,4,432 points";
Matrix[22][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[23][5] = "17,3.75,5.85,1.50,4,432 points";
Matrix[24][5] = "17,3.75,5.85,1.50,4,432 points";
Matrix[25][5] = "19,3.75,5.85,1.50,8,432 points";
Matrix[26][5] = "20,3.75,5.85,1.50,4,432 points";
Matrix[27][5] = "19,3.75,5.85,1.50,4,432 points";

Matrix[0][6] = "17.50,3.75,5.85,2.50,3,504 points";
Matrix[1][6] = "19.50,3.75,5.85,2.50,3,504 points";
Matrix[2][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[3][6] = "20.50,3.75,5.85,2.50,2,504 points";
Matrix[4][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[5][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[6][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[7][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[8][6] = "21.50,3.75,5.85,2.50,3,504 points";
Matrix[9][6] = "19.50,3.75,5.85,2.50,7,504 points";
Matrix[10][6] = "20.50,3.75,5.85,2.50,4,504 points";
Matrix[11][6] = "18.50,3.75,5.85,2.50,3,504 points";
Matrix[12][6] = "17.50,3.75,5.85,2.50,3,504 points";
Matrix[13][6] = "17.50,3.75,5.85,2.50,3,504 points";
Matrix[14][6] = "22.50,3.75,5.85,2.50,3,504 points";
Matrix[15][6] = "22.50,3.75,5.85,2.50,3,504 points";
Matrix[16][6] = "21.50,3.75,5.85,2.50,3,504 points";
Matrix[17][6] = "22.50,3.75,5.85,2.50,3,504 points";
Matrix[18][6] = "20.50,3.75,5.85,2.50,2,504 points";
Matrix[19][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[20][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[21][6] = "21.50,3.75,5.85,2.50,3,504 points";
Matrix[22][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[23][6] = "17.50,3.75,5.85,2.50,3,504 points";
Matrix[24][6] = "17.50,3.75,5.85,2.50,3,504 points";
Matrix[25][6] = "19.50,3.75,5.85,2.50,7,504 points";
Matrix[26][6] = "20.50,3.75,5.85,2.50,3,504 points";
Matrix[27][6] = "19.50,3.75,5.85,2.50,3,504 points";

Matrix[0][7] = "20.70,3.75,7.50,3.00,3,576 points";
Matrix[1][7] = "23,3.75,7.50,3.00,3,576 points";
Matrix[2][7] = "24.15,3.75,7.50,3.00,3,576 points";
Matrix[3][7] = "24.15,3.75,7.50,3.00,2,576 points";
Matrix[4][7] = "24.15,3.75,7.50,3.00,3,576 points";
Matrix[5][7] = "24.15,3.75,7.50,3.00,3,576 points";
Matrix[6][7] = "24.15,3.75,7.50,3.00,2,576 points";
Matrix[7][7] = "24.15,3.75,7.50,3.00,2,576 points";
Matrix[8][7] = "25.30,3.75,7.50,3.00,3,576 points";
Matrix[9][7] = "23,3.75,7.50,3.00,6,576 points";
Matrix[10][7] = "24.15,3.75,7.50,3.00,4,576 points";
Matrix[11][7] = "21.85,3.75,7.50,3.00,2,576 points";
Matrix[12][7] = "20.70,3.75,7.50,3.00,3,576 points";
Matrix[13][7] = "20.70,3.75,7.50,3.00,3,576 points";
Matrix[14][7] = "26.45,3.75,7.50,3.00,3,576 points";
Matrix[15][7] = "26.45,3.75,7.50,3.00,3,576 points";
Matrix[16][7] = "25.30,3.75,7.50,3.00,3,576 points";
Matrix[17][7] = "26.45,3.75,7.50,3.00,3,576 points";
Matrix[18][7] = "20.50,3.75,5.85,2.50,2,504 points";
Matrix[19][7] = "24.15,3.75,7.50,3.00,3,576 points";
Matrix[20][7] = "24.15,3.75,7.50,3.00,3,576 points";
Matrix[21][7] = "25.30,3.75,7.50,3.00,3,576 points";
Matrix[22][7] = "24.15,3.75,7.50,3.00,3,576 points";
Matrix[23][7] = "20.70,3.75,7.50,3.00,3,576 points";
Matrix[24][7] = "20.70,3.75,7.50,3.00,3,576 points";
Matrix[25][7] = "24.15,3.75,7.50,3.00,3,576 points";
Matrix[26][7] = "24.15,3.75,7.50,3.00,2,576 points";
Matrix[27][7] = "23,3.75,7.50,3.00,3,576 points";

Matrix[0][8] = "21.28,4.25,7.50,3.50,2,648 points";
Matrix[1][8] = "23.58,4.25,7.50,3.50,2,648 points";
Matrix[2][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[3][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[4][8] = "24.73,4.25,7.50,3.50,3,648 points";
Matrix[5][8] = "24.73,4.25,7.50,3.50,3,648 points";
Matrix[6][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[7][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[8][8] = "25.88,4.25,7.50,3.50,3,648 points";
Matrix[9][8] = "23.58,4.25,7.50,3.50,5,648 points";
Matrix[10][8] = "24.73,4.25,7.50,3.50,4,648 points";
Matrix[11][8] = "22.43,4.25,7.50,3.50,2,648 points";
Matrix[12][8] = "21.28,4.25,7.50,3.50,2,648 points";
Matrix[13][8] = "21.28,4.25,7.50,3.50,2,648 points";
Matrix[14][8] = "27.03,4.25,7.50,3.50,2,648 points";
Matrix[15][8] = "27.03,4.25,7.50,3.50,2,648 points";
Matrix[16][8] = "25.58,4.25,7.50,3.50,2,648 points";
Matrix[17][8] = "27.03,4.25,7.50,3.50,2,648 points";
Matrix[18][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[19][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[20][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[21][8] = "25.58,4.25,7.50,3.50,2,648 points";
Matrix[22][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[23][8] = "21.28,4.25,7.50,3.50,2,648 points";
Matrix[24][8] = "21.28,4.25,7.50,3.50,2,648 points";
Matrix[25][8] = "23.58,4.25,7.50,3.50,6,648 points";
Matrix[26][8] = "24.73,4.25,7.50,3.50,2,648 points";
Matrix[27][8] = "23.58,4.25,7.50,3.50,3,648 points";

Matrix[0][9] = "21.85,4.25,7.50,4.00,2,720 points";
Matrix[1][9] = "24.15,4.25,7.50,4.00,2,720 points";
Matrix[2][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[3][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[4][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[5][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[6][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[7][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[8][9] = "26.45,4.25,7.50,4.00,2,720 points";
Matrix[9][9] = "24.15,4.25,7.50,4.00,4,720 points";
Matrix[10][9] = "25.30,4.25,7.50,4.00,3,720 points";
Matrix[11][9] = "23,4.25,7.50,4.00,2,720 points";
Matrix[12][9] = "21.85,4.25,7.50,4.00,2,720 points";
Matrix[13][9] = "21.85,4.25,7.50,4.00,2,720 points";
Matrix[14][9] = "27.60,4.25,7.50,4.00,2,720 points";
Matrix[15][9] = "27.60,4.25,7.50,4.00,2,720 points";
Matrix[16][9] = "26.45,4.25,7.50,4.00,2,720 points";
Matrix[17][9] = "27.60,4.25,7.50,4.00,2,720 points";
Matrix[18][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[19][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[20][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[21][9] = "26.45,4.25,7.50,4.00,2,720 points";
Matrix[22][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[23][9] = "21.85,4.25,7.50,4.00,2,720 points";
Matrix[24][9] = "21.85,4.25,7.50,4.00,2,720 points";
Matrix[25][9] = "24.15,4.25,7.50,4.00,5,720 points";
Matrix[26][9] = "25.30,4.25,7.50,4.00,2,720 points";
Matrix[27][9] = "24.15,4.25,7.50,4.00,3,720 points";

Matrix[0][10] = "24.60,4.25,7.50,5.00,2,864 points";
Matrix[1][10] = "27,4.25,7.50,5.00,2,864 points";
Matrix[2][10] = "28.20,4.25,7.50,5.00,2,864 points";
Matrix[3][10] = "29.40,4.25,7.50,5.00,1,864 points";
Matrix[4][10] = "28.20,4.25,7.50,5.00,2,864 points";
Matrix[5][10] = "28.20,4.25,7.50,5.00,2,864 points";
Matrix[6][10] = "28.20,4.25,7.50,5.00,1,864 points";
Matrix[7][10] = "28.20,4.25,7.50,5.00,1,864 points";
Matrix[8][10] = "29.40,4.25,7.50,5.00,2,864 points";
Matrix[9][10] = "27,4.25,7.50,5.00,4,864 points";
Matrix[10][10] = "28.20,4.25,7.50,5.00,3,864 points";
Matrix[11][10] = "25.80,4.25,7.50,5.00,2,864 points";
Matrix[12][10] = "24.60,4.25,7.50,5.00,2,864 points";
Matrix[13][10] = "24.60,4.25,7.50,5.00,2,864 points";
Matrix[14][10] = "30.60,4.25,7.50,5.00,2,864 points";
Matrix[15][10] = "30.60,4.25,7.50,5.00,2,864 points";
Matrix[16][10] = "30.60,4.25,7.50,5.00,2,864 points";
Matrix[17][10] = "30.60,4.25,7.50,5.00,2,864 points";
Matrix[18][10] = "28.20,4.25,7.50,5.00,2,864 points";
Matrix[19][10] = "28.20,4.25,7.50,5.00,2,864 points";
Matrix[20][10] = "28.20,4.25,7.50,5.00,2,864 points";
Matrix[21][10] = "29.40,4.25,7.50,5.00,2,864 points";
Matrix[22][10] = "28.20,4.25,7.50,5.00,2,864 points";
Matrix[23][10] = "24.60,4.25,7.50,5.00,2,864 points";
Matrix[24][10] = "24.60,4.25,7.50,5.00,2,864 points";
Matrix[25][10] = "27,4.25,7.50,5.00,5,864 points";
Matrix[26][10] = "28.20,4.25,7.50,5.00,1,864 points";
Matrix[27][10] = "27,4.25,7.50,5.00,2,864 points";

Matrix[0][11] = "29.90,4.25,7.50,6.00,1,1080 points";
Matrix[1][11] = "31.20,4.25,7.50,6.00,1,1080 points";
Matrix[2][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[3][11] = "33.80,4.25,7.50,6.00,1,1080 points";
Matrix[4][11] = "32.50,4.25,7.50,6.00,2,1080 points";
Matrix[5][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[6][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[7][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[8][11] = "33.80,4.25,7.50,6.00,1,1080 points";
Matrix[9][11] = "31.20,4.25,7.50,6.00,3,1080 points";
Matrix[10][11] = "32.50,4.25,7.50,6.00,2,1080 points";
Matrix[11][11] = "31.20,4.25,7.50,6.00,1,1080 points";
Matrix[12][11] = "29.90,4.25,7.50,6.00,1,1080 points";
Matrix[13][11] = "29.90,4.25,7.50,6.00,1,1080 points";
Matrix[14][11] = "35.10,4.25,7.50,6.00,1,1080 points";
Matrix[15][11] = "35.10,4.25,7.50,6.00,1,1080 points";
Matrix[16][11] = "35.10,4.25,7.50,6.00,1,1080 points";
Matrix[17][11] = "35.10,4.25,7.50,6.00,1,1080 points";
Matrix[18][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[19][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[20][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[21][11] = "33.80,4.25,7.50,6.00,1,1080 points";
Matrix[22][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[23][11] = "29.90,4.25,7.50,6.00,1,1080 points";
Matrix[24][11] = "29.90,4.25,7.50,6.00,1,1080 points";
Matrix[25][11] = "31.20,4.25,7.50,6.00,3,1080 points";
Matrix[26][11] = "32.50,4.25,7.50,6.00,1,1080 points";
Matrix[27][11] = "31.20,4.25,7.50,6.00,2,1080 points";

Matrix[0][12] = "33.80,4.75,12.50,7.00,1,1296 points";
Matrix[1][12] = "35.10,4.75,12.50,7.00,1,1296 points";
Matrix[2][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[3][12] = "37.70,4.75,12.50,7.00,1,1296 points";
Matrix[4][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[5][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[6][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[7][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[8][12] = "37.70,4.75,12.50,7.00,1,1296 points";
Matrix[9][12] = "35.10,4.75,12.50,7.00,3,1296 points";
Matrix[10][12] = "36.40,4.75,12.50,7.00,2,1296 points";
Matrix[11][12] = "35.10,4.75,12.50,7.00,1,1296 points";
Matrix[12][12] = "33.80,4.75,12.50,7.00,1,1296 points";
Matrix[13][12] = "33.80,4.75,12.50,7.00,1,1296 points";
Matrix[14][12] = "39,4.75,12.50,7.00,1,1296 points";
Matrix[15][12] = "39,4.75,12.50,7.00,1,1296 points";
Matrix[16][12] = "39,4.75,12.50,7.00,1,1296 points";
Matrix[17][12] = "39,4.75,12.50,7.00,1,1296 points";
Matrix[18][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[19][12] = "36.40,4.75,12.50,7.000,1,1296 points";
Matrix[20][12] = "36.40,4.75,12.50,7.000,1,1296 points";
Matrix[21][12] = "37.70,4.75,12.50,7.00,1,1296 points";
Matrix[22][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[23][12] = "33.80,4.75,12.50,7.00,1,1296 points";
Matrix[24][12] = "33.80,4.75,12.50,7.00,1,1296 points";
Matrix[25][12] = "35.10,4.75,12.50,7.00,2,1296 points";
Matrix[26][12] = "36.40,4.75,12.50,7.00,1,1296 points";
Matrix[27][12] = "35.10,4.75,12.50,7.00,1,1296 points";

Matrix[0][13] = "36.45,4.75,12.50,9.00,1,1440 points";
Matrix[1][13] = "39.15,4.75,12.50,9.00,1,1440 points";
Matrix[2][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[3][13] = "41.85,4.75,12.50,9.00,1,1440 points";
Matrix[4][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[5][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[6][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[7][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[8][13] = "41.85,4.75,12.50,9.00,1,1440 points";
Matrix[9][13] = "37.80,4.75,12.50,9.00,2,1440 points";
Matrix[10][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[11][13] = "39.15,4.75,12.50,9.00,1,1440 points";
Matrix[12][13] = "36.45,4.75,12.50,9.00,1,1440 points";
Matrix[13][13] = "36.45,4.75,12.50,9.00,1,1440 points";
Matrix[14][13] = "44.55,4.75,12.50,9.00,1,1440 points";
Matrix[15][13] = "44.55,4.75,12.50,9.00,1,1440 points";
Matrix[16][13] = "43.20,4.75,12.50,9.00,1,1440 points";
Matrix[17][13] = "44.55,4.75,12.50,9.00,1,1440 points";
Matrix[18][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[19][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[20][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[21][13] = "41.85,4.75,12.50,9.00,1,1440 points";
Matrix[22][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[23][13] = "36.45,4.75,12.50,9.00,1,1440 points";
Matrix[24][13] = "36.45,4.75,12.50,9.00,1,1440 points";
Matrix[25][13] = "39.15,4.75,12.50,9.00,2,1440 points";
Matrix[26][13] = "40.50,4.75,12.50,9.00,1,1440 points";
Matrix[27][13] = "39.15,4.75,12.50,9.00,1,1440 points";

Matrix[0][14] = "42.05,4.75,12.50,11.50,1,1584 points";
Matrix[1][14] = "44.95,4.75,12.50,11.50,1,1584 points";
Matrix[2][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[3][14] = "47.85,4.75,12.50,11.50,1,1584 points";
Matrix[4][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[5][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[6][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[7][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[8][14] = "47.85,4.75,12.50,11.50,1,1584 points";
Matrix[9][14] = "43.50,4.75,12.50,11.50,2,1584 points";
Matrix[10][14] ="46.40,4.75,12.50,11.50,1,1584 points";
Matrix[11][14] = "44.95,4.75,12.50,11.50,1,1584 points";
Matrix[12][14] = "42.05,4.75,12.50,11.50,1,1584 points";
Matrix[13][14] = "42.05,4.75,12.50,11.50,1,1584 points";
Matrix[14][14] = "50.75,4.75,12.50,11.50,1,1584 points";
Matrix[15][14] = "50.75,4.75,12.50,11.50,1,1584 points";
Matrix[16][14] = "49.30,4.75,12.50,11.50,1,1584 points";
Matrix[17][14] = "50.75,4.75,12.50,11.50,1,1584 points";
Matrix[18][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[19][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[20][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[21][14] = "47.85,4.75,12.50,11.50,1,1584 points";
Matrix[22][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[23][14] = "42.05,4.75,12.50,11.50,1,1584 points";
Matrix[24][14] = "42.05,4.75,12.50,11.50,1,1584 points";
Matrix[25][14] = "44.95,4.75,12.50,11.50,2,1584 points";
Matrix[26][14] = "46.40,4.75,12.50,11.50,1,1584 points";
Matrix[27][14] = "44.95,4.75,12.50,11.50,1,1584 points";

Matrix[0][15] = "45,5,13.50,12.50,1,1728 points";
Matrix[1][15] = "50,5,13.50,12.50,1,1728 points";
Matrix[2][15] = "48,5,13.50,12.50,1,1728 points";
Matrix[3][15] = "48,5,13.50,12.50,1,1728 points";
Matrix[4][15] = "48,5,13.50,12.50,1,1728 points";
Matrix[5][15] = "48,5,13.50,12.50,1,728 points";
Matrix[6][15] = "50,5,13.50,12.50,1,1728 points";
Matrix[7][15] = "52,5,13.50,12.50,1,1728 points";
Matrix[8][15] = "50,5,13.50,12.50,1,1728 points";
Matrix[9][15] = "46,5,13.50,12.50,2,1728 points";
Matrix[10][15] ="48,5,13.50,12.50,1,1728 points";
Matrix[11][15] = "48,5,13.50,12.50,1,1728 points";
Matrix[12][15] = "47,5,13.50,12.50,1,1728 points";
Matrix[13][15] = "45,5,13.50,12.50,1,1728 points";
Matrix[14][15] = "52,5,13.50,12.50,1,1728 points";
Matrix[15][15] = "52,5,13.50,12.50,1,1728 points";
Matrix[16][15] = "52,5,13.50,12.50,1,1728 points";
Matrix[17][15] = "52,5,13.50,12.50,1,1728 points";
Matrix[18][15] = "50,5,13.50,12.50,1,1728 points";
Matrix[19][15] = "48,5,13.50,12.50,1,1728 points";
Matrix[20][15] = "48,5,13.50,12.50,1,1728 points";
Matrix[21][15] = "49,5,13.50,12.50,1,1728 points";
Matrix[22][15] = "58,5,13.50,12.50,1,1728 points";
Matrix[23][15] = "50,5,13.50,12.50,1,1728 points";
Matrix[24][15] = "46,5,13.50,12.50,1,1728 points";
Matrix[25][15] = "47,5,13.50,12.50,2,1728 points";
Matrix[26][15] = "48,5,13.50,12.50,1,1728 points";
Matrix[27][15] = "47,5,13.50,12.50,1,1728 points";

Matrix[0][16] = "46.50,6,13.50,12.50,1,2016 points";
Matrix[1][16] = "51.50,6,13.50,12.50,1,2016 points";
Matrix[2][16] = "49.50,6,13.50,12.50,1,2016 points";
Matrix[3][16] = "48,6,13.50,12.50,1,2016 points";
Matrix[4][16] = "48,6,13.50,12.50,1,2016 points";
Matrix[5][16] = "48,6,13.50,12.50,1,2016 points";
Matrix[6][16] = "50,6,13.50,12.50,1,2016 points";
Matrix[7][16] = "52,6,13.50,12.50,1,2016 points";
Matrix[8][16] = "50,6,13.50,12.50,1,2016 points";
Matrix[9][16] = "46,6,13.50,12.50,2,2016 points";
Matrix[10][16] ="48,6,13.50,12.50,1,2016 points";
Matrix[11][16] = "48,6,13.50,12.50,1,2016 points";
Matrix[12][16] = "47,6,13.50,12.50,1,2016 points";
Matrix[13][16] = "45,6,13.50,12.50,1,2016 points";
Matrix[14][16] = "52,6,13.50,12.50,1,2016 points";
Matrix[15][16] = "52,6,13.50,12.50,1,2016 points";
Matrix[16][16] = "52,6,13.50,12.50,1,2016 points";
Matrix[17][16] = "52,6,13.50,12.50,1,2016 points";
Matrix[18][16] = "50,6,13.50,12.50,1,2016 points";
Matrix[19][16] = "48,6,13.50,12.50,1,2016 points";
Matrix[20][16] = "48,6,13.50,12.50,1,2016 points";
Matrix[21][16] = "49,6,13.50,12.50,1,2016 points";
Matrix[22][16] = "52,6,13.50,12.50,1,2016 points";
Matrix[23][16] = "52,6,13.50,12.50,1,2016 points";
Matrix[24][16] = "46,6,13.50,12.50,1,2016 points";
Matrix[25][16] = "47,6,13.50,12.50,2,2016 points";
Matrix[26][16] = "48,6,13.50,12.50,1,2016 points";
Matrix[27][16] = "47,6,13.50,12.50,1,2016 points";

Matrix[0][17] = "48,7,13.50,12.50,1,2160 points";
Matrix[1][17] = "53,7,13.50,12.50,1,2160 points";
Matrix[2][17] = "51,7,13.50,12.50,1,2160 points";
Matrix[3][17] = "49,7,13.50,12.50,1,2160 points";
Matrix[4][17] = "52,7,13.50,12.50,1,2160 points";
Matrix[5][17] = "52,7,13.50,12.50,1,2160 points";
Matrix[6][17] = "53,7,13.50,12.50,1,2160 points";
Matrix[7][17] = "55,7,13.50,12.50,1,2160 points";
Matrix[8][17] = "53,7,13.50,12.50,1,2160 points";
Matrix[9][17] = "49,7,13.50,12.50,2,2160 points";
Matrix[10][17] ="51,7,13.50,12.50,1,2160 points";
Matrix[11][17] = "51,7,13.50,12.50,1,2160 points";
Matrix[12][17] = "50,7,13.50,12.50,1,2160 points";
Matrix[13][17] = "48,7,13.50,12.50,1,2160 points";
Matrix[14][17] = "55,7,13.50,12.50,1,2160 points";
Matrix[15][17] = "55,7,13.50,12.50,1,2160 points";
Matrix[16][17] = "55,7,13.50,12.50,1,2160 points";
Matrix[17][17] = "55,7,13.50,12.50,1,2160 points";
Matrix[18][17] = "53,7,13.50,12.50,1,2160 points";
Matrix[19][17] = "51,7,13.50,12.50,1,2160 points";
Matrix[20][17] = "51,7,13.50,12.50,1,2160 points";
Matrix[21][17] = "53,7,13.50,12.50,1,2160 points";
Matrix[22][17] = "53,7,13.50,12.50,1,2160 points";
Matrix[23][17] = "53,7,13.50,12.50,1,2160 points";
Matrix[24][17] = "49,7,13.50,12.50,1,2160 points";
Matrix[25][17] = "51,7,13.50,12.50,2,2160 points";
Matrix[26][17] = "51,7,13.50,12.50,1,2160 points";
Matrix[27][17] = "50,7,13.50,12.50,1,2160 points";

Matrix[0][18] = "49,8,13.50,12.75,1,2304 points";
Matrix[1][18] = "54,8,13.50,12.75,1,2304 points";
Matrix[2][18] = "52,8,13.50,12.75,1,2304 points";
Matrix[3][18] = "50,8,13.50,12.75,1,2304 points";
Matrix[4][18] = "53,8,13.50,12.75,1,2304 points";
Matrix[5][18] = "53,8,13.50,12.75,1,2304 points";
Matrix[6][18] = "54,8,13.50,12.75,1,2304 points";
Matrix[7][18] = "56,8,13.50,12.75,1,2304 points";
Matrix[8][18] = "54,8,13.50,12.75,1,2304 points";
Matrix[9][18] = "50,8,13.50,12.75,2,2304 points";
Matrix[10][18] ="52,8,13.50,12.75,1,2304 points";
Matrix[11][18] = "52,8,13.50,12.75,1,2304 points";
Matrix[12][18] = "51,8,13.50,12.75,1,2304 points";
Matrix[13][18] = "49,8,13.50,12.75,1,2304 points";
Matrix[14][18] = "56,8,13.50,12.75,1,2304 points";
Matrix[15][18] = "56,8,13.50,12.75,1,2304 points";
Matrix[16][18] = "56,8,13.50,12.75,1,2304 points";
Matrix[17][18] = "56,8,13.50,12.75,1,2304 points";
Matrix[18][18] = "54,8,13.50,12.75,1,2304 points";
Matrix[19][18] = "52,8,13.50,12.75,1,2304 points";
Matrix[20][18] = "52,8,13.50,12.75,1,2304 points";
Matrix[21][18] = "54,8,13.50,12.75,1,2304 points";
Matrix[22][18] = "54,8,13.50,12.75,1,2304 points";
Matrix[23][18] = "54,8,13.50,12.75,1,2304 points";
Matrix[24][18] = "50,8,13.50,12.75,1,2304 points";
Matrix[25][18] = "52,8,13.50,12.75,2,2304 points";
Matrix[26][18] = "52,8,13.50,12.75,1,2304 points";
Matrix[27][18] = "51,8,13.50,12.75,1,2304 points";

Matrix[0][19] = "0,9,14,26,1,2596 points";
Matrix[1][19] = "0,9,14,26,1,2596 points";
Matrix[2][19] = "0,9,14,26,1,2596 points";
Matrix[3][19] = "0,9,14,26,1,2596 points";
Matrix[4][19] = "0,9,14,26,1,2596 points";
Matrix[5][19] = "0,9,14,26,1,2596 points";
Matrix[6][19] = "0,9,14,26,1,2596 points";
Matrix[7][19] = "0,9,14,26,1,2596 points";
Matrix[8][19] = "0,9,14,26,1,2596 points";
Matrix[9][19] = "0,9,14,26,2,2596 points";
Matrix[10][19] ="0,9,14,26,1,2596 points";
Matrix[11][19] = "0,9,14,26,1,2596 points";
Matrix[12][19] = "0,9,14,26,1,2596 points";
Matrix[13][19] = "0,9,14,26,1,2596 points";
Matrix[14][19] = "0,9,14,26,1,2596 points";
Matrix[15][19] = "0,9,14,26,1,2596 points";
Matrix[16][19] = "0,9,14,26,1,2596 points";
Matrix[17][19] = "0,9,14,26,1,2596 points";
Matrix[18][19] = "0,9,14,26,1,2596 points";
Matrix[19][19] = "0,9,14,26,1,2596 points";
Matrix[20][19] = "0,9,14,26,1,2596 points";
Matrix[21][19] = "0,9,14,26,1,2596 points";
Matrix[22][19] = "0,9,14,26,1,2596 points";
Matrix[23][19] = "0,9,14,26,1,2596 points";
Matrix[24][19] = "0,9,14,26,1,2596 points";
Matrix[25][19] = "0,9,14,26,2,2596 points";
Matrix[26][19] = "0,9,14,26,1,2596 points";
Matrix[27][19] = "0,9,14,26,1,2596 points";

Matrix[0][20] = "0,9.50,14,27,1,2880 points";
Matrix[1][20] = "0,9.50,14,27,1,2880 points";
Matrix[2][20] = "0,9.50,14,27,1,2880 points";
Matrix[3][20] = "0,9.50,14,27,1,2880 points";
Matrix[4][20] = "0,9.50,14,27,1,2880 points";
Matrix[5][20] = "0,9.50,14,27,1,2880 points";
Matrix[6][20] = "0,9.50,14,27,1,2880 points";
Matrix[7][20] = "0,9.50,14,27,1,2880 points";
Matrix[8][20] = "0,9.50,14,27,1,2880 points";
Matrix[9][20] = "0,9.50,14,27,2,2880 points";
Matrix[10][20] ="0,9.50,14,27,1,2880 points";
Matrix[11][20] = "0,9.50,14,27,1,2880 points";
Matrix[12][20] = "0,9.50,14,27,1,2880 points";
Matrix[13][20] = "0,9.50,14,27,1,2880 points";
Matrix[14][20] = "0,9.50,14,27,1,2880 points";
Matrix[15][20] = "0,9.50,14,27,1,2880 points";
Matrix[16][20] = "0,9.50,14,27,1,2880 points";
Matrix[17][20] = "0,9.50,14,27,1,2880 points";
Matrix[18][20] = "0,9.50,14,27,1,2880 points";
Matrix[19][20] = "0,9.50,14,27,1,2880 points";
Matrix[20][20] = "0,9.50,14,27,1,2880 points";
Matrix[21][20] = "0,9.50,14,27,1,2880 points";
Matrix[22][20] = "0,9.50,14,27,1,2880 points";
Matrix[23][20] = "0,9.50,14,27,1,2880 points";
Matrix[24][20] = "0,9.50,14,27,1,2880 points";
Matrix[25][20] = "0,9.50,14,27,2,2880 points";
Matrix[26][20] = "0,9.50,14,27,1,2880 points";
Matrix[27][20] = "0,9.50,14,27,1,2880 points";

Matrix[0][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[1][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[2][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[3][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[4][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[5][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[6][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[7][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[8][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[9][21] = "0,10,14.50,28.50,2,3168 points";
Matrix[10][21] ="0,10,14.50,28.50,1,3168 points";
Matrix[11][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[12][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[13][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[14][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[15][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[16][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[17][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[18][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[19][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[20][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[21][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[22][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[23][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[24][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[25][21] = "0,10,14.50,28.50,2,3168 points";
Matrix[26][21] = "0,10,14.50,28.50,1,3168 points";
Matrix[27][21] = "0,10,14.50,28.50,1,3168 points";

Matrix[0][22] = "0,11,15,30,1,3456 points";
Matrix[1][22] = "0,11,15,30,1,3456 points";
Matrix[2][22] = "0,11,15,30,1,3456 points";
Matrix[3][22] = "0,11,15,30,1,3456 points";
Matrix[4][22] = "0,11,15,30,1,3456 points";
Matrix[5][22] = "0,11,15,30,1,3456 points";
Matrix[6][22] = "0,11,15,30,1,3456 points";
Matrix[7][22] = "0,11,15,30,1,3456 points";
Matrix[8][22] = "0,11,15,30,1,3456 points";
Matrix[9][22] = "0,11,15,30,2,3456 points";
Matrix[10][22] ="0,11,15,30,1,3456 points";
Matrix[11][22] = "0,11,15,30,1,3456 points";
Matrix[12][22] = "0,11,15,30,1,3456 points";
Matrix[13][22] = "0,11,15,30,1,3456 points";
Matrix[14][22] = "0,11,15,30,1,3456 points";
Matrix[15][22] = "0,11,15,30,1,3456 points";
Matrix[16][22] = "0,11,15,30,1,3456 points";
Matrix[17][22] = "0,11,15,30,1,3456 points";
Matrix[18][22] = "0,11,15,30,1,3456 points";
Matrix[19][22] = "0,11,15,30,1,3456 points";
Matrix[20][22] = "0,11,15,30,1,3456 points";
Matrix[21][22] = "0,11,15,30,1,3456 points";
Matrix[22][22] = "0,11,15,30,1,3456 points";
Matrix[23][22] = "0,11,15,30,1,3456 points";
Matrix[24][22] = "0,11,15,30,1,3456 points";
Matrix[25][22] = "0,11,15,30,2,3456 points";
Matrix[26][22] = "0,11,15,30,1,3456 points";
Matrix[27][22] = "0,11,15,30,1,3456 points";



function preview (dsize)
{

	

	// Find the index of the selected font
	
	var fIndex = document.forms[0].font[document.forms[0].font.selectedIndex].value;
	var fName = fIndex + '.TTF';
	fName = fName.replace(/ /,"_");
	for( var i = 0; i<Fonts.length; i++)
	{
	
		
		if(Fonts[i] == fIndex)
		{
			fIndex = i;
		}	
	
	} 

	//alert(fIndex);

	// Find the index of the selected Size
	
	
	var sIndex = document.forms[0].lettersize[document.forms[0].lettersize.selectedIndex].value;
	
	for( var i = 0; i<Size.length; i++)
	{
	
		if(Size[i] == sIndex)
		{
			sIndex = i;
		}	
	
	} 

	//Find the Alignment
	
	var align = '';
	
	if(document.forms[0].align[0].checked == true)
		align = "L";
		
	if(document.forms[0].align[1].checked == true)
		align = "C";
	if(document.forms[0].align[2].checked == true)
		align = "R";
	
	
	
	//Find if they wanted it divieded
	var divide = '';
	
	if(document.forms[0].divide[0].checked == true)
		divide = 'Y';
	if(document.forms[0].divide[1].checked == true)
		divide = 'N';
	


	//Find the Max length
	
	var cmaxw = document.forms[0].maxw.value;

	//
	if(cmaxw == '')
		cmaxw = -1;
	else
	{
		cmaxw = parseInt(cmaxw);
		if(isNaN(cmaxw))
		{
			cmaxw = -1;
		}
	}
	

	
	//if(cmaxw == '')
	//	cmaxw = 0;		

	//alert(fIndex + ' ' + sIndex);

	var strValues = Matrix[fIndex][sIndex];
	
	var arrValues = strValues.split(",");
	
	
	var basePrice = parseFloat(arrValues[0]);
	var price10 = parseFloat(arrValues[1]);
	var price14 = parseFloat(arrValues[2]);
	var Extra = parseFloat(arrValues[3]);
	//var Max = parseInt(arrValues[4]);
	var Max = 26;

	var Text = document.forms[0].text.value;
	
	var regExp = /\s+/g; 
	
	var Text2 = Text.replace(regExp,'');
	
	var Len = Text2.length;
	
	
	//var Len = Text.length;
	var strTmp = '';
	var epCnt = 0;
	
	
	
	var extrachars = 0;
	var price = 0;
	var extraPrice = 0;
	var fontsize = 24 + (sIndex + 4);
	
	if(basePrice > 0)
	{

		extrachars = Len - 5;
		
		if(extrachars < 0) 
			extrachars = 0;
	
		extraPrice = Extra * extrachars;
		price = basePrice + extraPrice;
	}
	else
	{
		price = Len * Extra;
	}
	
	//alert(cmaxw);
	
	if(Len > 0 && cmaxw > 0 && divide != '')
	{
	//document.getElementById("Chars").innerHTML = Len;
	//document.getElementById("lineChars").innerHTML = Max;
	
	//document.getElementById("Extra").innerHTML = extrachars;
	
	//document.getElementById("Cost").innerHTML = "$" + extraPrice.toFixed(2);
	
	price10 = price + price10;
	price14 = price + price14;
	price15 = price14 + (price14 * .05);
	price40 = price10 + (price10 * .6);
	
	document.getElementById("DisplayPrice").innerHTML = "$" + price.toFixed(2);
	document.getElementById("DisplayPrice10").innerHTML = "$" + price10.toFixed(2);
	document.getElementById("DisplayPrice14").innerHTML = "$" + price14.toFixed(2);
	document.getElementById("DisplayPrice15").innerHTML = "$" + price15.toFixed(2);
	document.getElementById("DisplayPrice40").innerHTML = "$" + price40.toFixed(2);
	
	document.getElementById("DupDisplayPrice").innerHTML = "$" + (price / 2).toFixed(2);
	document.getElementById("DupDisplayPrice10").innerHTML = "$" + (price10 / 2).toFixed(2);
	document.getElementById("DupDisplayPrice14").innerHTML = "$" + (price14 / 2).toFixed(2);
	document.getElementById("DupDisplayPrice15").innerHTML = "$" + (price15 / 2).toFixed(2);
	document.getElementById("DupDisplayPrice40").innerHTML = "$" + (price40 / 2).toFixed(2);
	
	var strDiv = ""
	
	
	if(Len > Max)
	{
		
	//	var tmp = '';
			
	//	for(var t=0; t<Len; t++)
	//	{
	
		
	//	tmp = tmp + Text.substr(t,Max) + '\n';
		
	//	t = t + (Max -1);
			 
	//	}
	
	//	tmp = tmp + Text.substr(t,Max);
		
	
	//	Text = tmp;	
	}
	/*
	else
	{
	*/
	
	if (parseInt(dsize) == 1)
	{ 
	
		
		strDiv = strDiv + "<img src=\"/cgi-bin/aptilis.exe?file=E:/Home/stencilease/public_html/cgi-bin/prev.se.txt&usersaid="
		strDiv = strDiv +  escape(Text) 
		strDiv = strDiv + "&font=" + fName + "&size=" + fontsize + "\">";
	}
	
	if (parseInt(dsize) == 2)
	{ 
		strDiv = strDiv + "<img src=\"/cgi-bin/aptilis.exe?file=E:/Home/stencilease/public_html/cgi-bin/prev.se.txt&usersaid="
		strDiv = strDiv +  escape(Text) 
		strDiv = strDiv + "&font=" + fName + "&size=" + fontsize * 2 + "\">";
	}
	
	
	/*
	}	
	//"<img src=/cgi-bin/aptilis.exe?file=prev.se.txt&usersaid=" + escape(Text) + "&font=" + fName + ">";
	*/
	
	
	document.getElementById("PrevImage").innerHTML = strDiv;
	
	//document.getElementById("PrevSize").innerHTML = "Letters shown in the preview box are " + Size[sIndex] + "\" high";	
	
	document.getElementById("price").value = price.toFixed(2);
	
	document.getElementById("price10").value = price10.toFixed(2);
	document.getElementById("price14").value = price14.toFixed(2);
	document.getElementById("price15").value = price15.toFixed(2);
	document.getElementById("price40").value = price40.toFixed(2);
	
	document.getElementById("describe").value = Text;
	
	document.getElementById("id").value = Size[sIndex] + '-' + fName.replace(/.TTF/," ") + '-' + align + '-' + divide + '-' + cmaxw ;
	
	//var objCart = document.getElementById("cart");
	//objCart.style.visibility = "visable";
	
	//alert(strDiv);
	
	//alert(document.getElementById("id").value);

	window.location="#preview";
	
	}
	else
	{
		if(Len <=0)
			alert('Please enter some text');
		else
		{
			if(cmaxw == -1 )
			{
				alert("Please enter the maximim stencil length");
			}
			else
			{
				if(divide == '')
					alert("Please indicate if you would like your stencil divided");
			}
		}
	}
}

function Go()
{
	var Text = document.forms[0].text.value;
	var Len = Text.length;
	if (Len > 0)
	{
	preview();
	document.forms[0].submit();
	return false;
	}
}


function Go10()
{


	var Text = document.forms[0].text.value;
	var Len = Text.length;
	if (Len > 0)
	{
		preview();
		document.getElementById("price").value = document.getElementById("price10").value;
		document.getElementById("id").value = document.getElementById("id").value + '-10';
		document.forms[0].submit();
		return false;
	}
}

function Go14()
{
	var Text = document.forms[0].text.value;
	var Len = Text.length;
	if (Len > 0)
	{
		preview();
		document.getElementById("price").value = document.getElementById("price14").value;
		document.getElementById("id").value = document.getElementById("id").value + '-14';
		document.forms[0].submit();
		return false;
	}
}

function Go15()
{
	var Text = document.forms[0].text.value;
	var Len = Text.length;
	if (Len > 0)
	{
		preview();
		document.getElementById("price").value = document.getElementById("price15").value;
		document.getElementById("id").value = document.getElementById("id").value + '-15';
		document.forms[0].submit();
		return false;
	}
}

function Go40()
{
	var Text = document.forms[0].text.value;
	var Len = Text.length;
	if (Len > 0)
	{
		preview();
		document.getElementById("price").value = document.getElementById("price40").value;
		document.getElementById("id").value = document.getElementById("id").value + '-60';
		document.forms[0].submit();
		return false;
	}
}