function polarPick18(crsovrspecs) {
		//DIMENSION RETURN ARRAY
	var itemsToSend=new Array(4);

	//LOAD LINKWITZ-RILEY 18DB TABLES
	var neg18a1=new Array(2.6756,2.4820,2.3919,2.3346,2.2937,2.2625,2.2377,
	2.2174,2.2004,2.1860,2.1736,2.1627,2.1532,2.1447,2.1372,2.1304,2.1242,
	2.1187,2.1136,2.1089,2.1046,2.1006,2.0969,2.0935,2.0903,2.0873,2.0846,
	2.0820,2.0795,2.0772,2.0750,2.0730,2.0710,2.0692,2.0674,2.0657,2.0641,
	2.0626,2.0612,2.0598,2.0585,2.0572,2.0560,2.0549,2.0538,2.0527,2.0517,
	2.0507,2.0498,2.0488,2.0480,2.0471,2.0463,2.0455,2.0447,2.0440,2.0433,
	2.0426,2.0419);

	var neg18b1=new Array(2.3133,2.2280,2.1872,2.1609,2.1418,2.1272,2.1155,
	2.1059,2.0978,2.0909,2.0850,2.0798,2.0752,2.0711,2.0675,2.0642,2.0612,2.0585,
	2.0560,2.0537,2.0516,2.0497,2.0479,2.0462,2.0447,2.0432,2.0418,2.0406,2.0394,
	2.0382,2.0372,2.0361,2.0352,2.0343,2.0334,2.0326,2.0318,2.0311,2.0304,2.0297,
	2.0290,2.0284,2.0278,2.0273,2.0267,2.0262,2.0257,2.0252,2.0247,2.0243,2.0238,
	2.0234,2.0230,2.0226,2.0222,2.0219,2.0215,2.0212,2.0209);

	var neg18h=new Array(7.0700,7.5411,8.6766,10.0538,11.5827,13.2290,14.9752,
	16.8107,18.7285,20.7233,22.7912,24.9287,27.1333,29.4025,31.7341,34.1264,
	36.5777,39.0865,41.6513,44.2710,46.9442,49.6699,52.4470,55.2746,58.1518,
	61.0777,64.0514,67.0723,70.1395,73.2523,76.4102,79.6123,82.8582,86.1472,
	89.4788,92.8524,96.2675,99.7236,103.2202,106.7568,110.3331,113.9485,117.6026,
	121.2950,125.0254,128.7933,132.5984,136.4403,140.3187,144.2331,148.1834,
	152.1691,156.1899,160.2457,164.3359,168.4640,172.6189,176.8111,181.0367);

	var pos18a1=new Array(1.4863,1.5607,1.6177,1.6625,1.6983,1.7276,1.7519,1.7724,
	1.7898,1.8048,1.8178,1.8292,1.8394,1.8484,1.8564,1.8637,1.8702,1.8762,1.8816,
	1.8866,1.8912,1.8954,1.8994,1.9030,1.9064,1.9095,1.9125,1.9153,1.9179,1.9203,
	1.9226,1.9248,1.9268,1.9288,1.9306,1.9324,1.9341,1.9356,1.9372,1.9386,1.9400,
	1.9413,1.9426,1.9438,1.9449,1.9460,1.9471,1.9481,1.9491,1.9501,1.9510,1.9519,
	1.9527,1.9535,1.9543,1.9551,1.9559,1.9566,1.9573,1.9579,1.9586);

	var pos18b1=new Array(1.7241,1.7667,1.7987,1.8234,1.8430,1.8588,1.8719,1.8827,
	1.8920,1.8999,1.9067,1.9127,1.9180,1.9227,1.9269,1.9306,1.9340,1.9371,1.9399,
	1.9425,1.9448,1.9470,1.9490,1.9509,1.9526,1.9543,1.9558,1.9572,1.9585,1.9598,
	1.9609,1.9620,1.9631,1.9641,1.9650,1.9659,1.9668,1.9676,1.9683,1.9691,1.9698,
	1.9704,1.9711,1.9717,1.9723,1.9728,1.9734,1.9739,1.9744,1.9749,1.9753,1.9758,
	1.9762,1.9766,1.9770,1.9774,1.9778,1.9782,1.9785,1.9789,1.9792);

	var pos18h=new Array(2.8246,3.9383,5.1735,6.5203,7.9700,9.5151,11.1496,
	12.8686,14.6679,16.5440,18.4936,20.5142,22.6033,24.7586,26.9781,29.2601,
	31.6029,34.0050,36.4648,38.9812,41.5528,44.1784,46.8571,49.5877,52.3693,
	55.2010,58.0820,61.0112,63.9881,67.0119,70.0818,73.1971,76.3573,79.5616,
	82.8095,86.1004,89.4337,92.8090,96.2256,99.6832,103.1812,106.7191,110.2966,
	113.9132,117.5684,121.2619,124.9933,128.7621,132.5681,136.4109,140.2900,
	144.2053,148.1563,152.1427,156.1642,160.2206,164.3115,168.4366,172.5956,
	176.7884,181.0145);

		//GET WOOFER CUTOFF FREQUENCY
	var fclow=crsovrspecs.lfreq3.value;
	
		//GET TWEETER CUTOFF FREQUENCY
	var fchigh=crsovrspecs.hfreq3.value;
	
		//CALCULATE BANDSPREAD AND OTHER OFTEN USED VARIABLE
	var s=fchigh/fclow;
	
		//VERIFY BANDSPREAD AND CORRECT WHERE NECESSARY
	if(crsovrspecs.polar[0].checked) {
		if(s<2) {
			var msg="The bandspread that you have chosen is less than\n";
			msg+="2 octaves, which is the lower limit of the Linkwitz-Riley\n";
			msg+="table used in this application for 18DB crossovers.\n";
			msg+="------------------------------------------------------------------------------------\n";
			msg+="Your tweeter crossover frequency and midrange high\n";
			msg+="crossover frequency will be raised to 2 octaves above\n";
			msg+="your woofer crossover frequency.";
			displayMessage(msg);
			s=2;
			var a1=pos18a1[0];
			var b1=pos18b1[0];
			var h=pos18h[0];
			fchigh=fclow*s;
			crsovrspecs.mhfreq3.value=fchigh;
			crsovrspecs.hfreq3.value=fchigh;	
		}
		else if(s>32) {
			var msg="The bandspread that you have chosen is greater than\n";
			msg+="32 octaves, which is the upper limit of the Linkwitz-Riley\n";
			msg+="table used in this application for 18DB crossovers.\n"; 
			msg+="--------------------------------------------------------------------------------------\n";
			msg+="Your tweeter crossover frequency and midrange high\n";
			msg+="crossover frequency will be lowered to 32 octaves above\n";
			msg+="your woofer crossover frequency.";
			displayMessage(msg);
			s=32;
			var a1=pos18a1[pos18a1.length-1];
			var b1=pos18b1[pos18b1.length-1];
			var h=pos18h[pos18h.length-1];
			fchigh=fclow*s;
			crsovrspecs.mhfreq3.value=fchigh;
			crsovrspecs.hfreq3.value=fchigh;
		}
		else {
			var comparator=2;
			for(i=0; i<61; i++) {
				if(comparator>s) {
						if(comparator-s<.25) {
							s=comparator;
							var a1=pos18a1[i];
							var b1=pos18b1[i];
							var h=pos18h[i];
							i=61;	
						}
						else {
							s=comparator-.5;
							var a1=pos18a1[i-1];
							var b1=pos18b1[i-1];
							var h=pos18h[i-1];
							i=61;
						}	
				}
			comparator=comparator+.5;
			}
		}
	}
	if(crsovrspecs.polar[1].checked) {
		if(s<3) {
			var msg="The bandspread that you have chosen is less than\n";
			msg+="3 octaves, which is the lower limit of the Linkwitz-Riley\n";
			msg+="table used in this application for 18DB crossovers.\n";
			msg+="------------------------------------------------------------------------------------\n";
			msg+="Your tweeter crossover frequency and midrange high\n";
			msg+="crossover frequency will be raised to 3 octaves above\n";
			msg+="your woofer crossover frequency.";
			displayMessage(msg);
			s=3;
			var a1=neg18a1[0];
			var b1=neg18b1[0];
			var h=neg18h[0];
			fchigh=fclow*s;
			crsovrspecs.mhfreq3.value=fchigh;
			crsovrspecs.hfreq3.value=fchigh;	
		}
		else if(s>32) {
			var msg="The bandspread that you have chosen is greater than\n";
			msg+="32 octaves, which is the upper limit of the Linkwitz-Riley\n";
			msg+="table used in this application for 18DB crossovers.\n"; 
			msg+="--------------------------------------------------------------------------------------\n";
			msg+="Your tweeter crossover frequency and midrange high\n";
			msg+="crossover frequency will be lowered to 32 octaves above\n";
			msg+="your woofer crossover frequency.";
			displayMessage(msg);
			s=32;
			var a1=neg18a1[neg18a1.length-1];
			var b1=neg18b1[neg18b1.length-1];
			var h=neg18h[neg18h.length-1];
			fchigh=fclow*s;
			crsovrspecs.mhfreq3.value=fchigh;
			crsovrspecs.hfreq3.value=fchigh;
		}
		else {
			var comparator=3;
			for(i=0; i<59; i++) {
				if(comparator>s) {
						if(comparator-s<.25) {
							s=comparator;
							var a1=neg18a1[i];
							var b1=neg18b1[i];
							var h=neg18h[i];
							i=59;	
						}
						else {
							s=comparator-.5;
							var a1=neg18a1[i-1];
							var b1=neg18b1[i-1];
							var h=neg18h[i-1];
							i=59;
						}	
				}
			comparator=comparator+.5;
			}
		}
	}
	itemsToSend[0]=s;
	itemsToSend[1]=a1;
	itemsToSend[2]=b1;
	itemsToSend[3]=h;
	return(itemsToSend);	
}

function specPick24(crsovrspecs) {
		//DIMENSION THE RETURN ARRAY
	var itemsToSend=new Array(5);

		//LOAD LINKWITZ-RILEY 24DB TABLES
	var pos24a1=new Array(2.4419,5.5548,2.6262,2.6737,2.7066,2.7304,2.7479,2.7612,
	2.7715,2.7797,2.7862,2.7915,2.7959,2.7995,2.8026,2.8052,2.8075,2.8094,2.8111,
	2.8125,2.8138,2.8149,2.8160,2.8169,2.8177,2.8184,2.8190,2.8196,2.8202,2.8207,
	2.8211,2.8215,2.8219,2.8222,2.8226,2.8229,2.8231,2.8234,2.8236,2.8238,2.8241,
	2.8242,2.8244,2.8246,2.8248,2.8249,2.8250,2.8252,2.8253,2.8254,2.8255,2.8256,
	2.8257,2.8258,2.8259,2.8260,2.8261,2.8261,2.8262,2.8263,2.8264);

	var pos24b1=new Array(3.7487,3.7758,3.8222,3.8597,3.8879,3.9089,3.9249,3.9371,3.9466,
	3.9542,3.9603,3.9653,3.9694,3.9728,3.9757,3.9781,3.9802,3.9820,3.9836,3.9850,3.9862,
	3.9873,3.9882,3.9891,3.9899,3.9905,3.9912,3.9917,3.9922,3.9927,3.9931,3.9935,3.9938,
	3.9942,3.9945,3.9948,3.9950,3.9953,3.9955,3.9957,3.9959,3.9961,3.9962,3.9964,3.9965,
	3.9967,3.9968,3.9969,3.9970,3.9972,3.9973,3.9974,3.9975,3.9975,3.9976,3.9977,3.9978,
	3.9979,3.9979,3.9980,3.9980);

	var pos24c1=new Array(2.7381,2.7480,2.7648,2.7784,2.7885,2.7960,2.8017,2.8061,2.8095,
	2.8122,2.8144,2.8161,2.8176,2.8188,2.8198,2.8207,2.8214,2.8221,2.8226,2.8231,2.8235,
	2.8239,2.8243,2.8246,2.8248,2.8251,2.8253,2.8255,2.8257,2.8258,2.8260,2.8261,2.8263,
	2.8264,2.8265,2.8266,2.8267,2.8267,2.8268,2.8269,2.8270,2.8270,2.8271,2.8271,2.8272,
	2.8273,2.8273,2.8273,2.8274,2.8274,2.8275,2.8275,2.8275,2.8276,2.8276,2.8276,2.8276,
	2.8277,2.8277,2.8277,2.8277);

	var pos24h=new Array(5.1100,6.7640,9.2810,12.4160,16.1030,20.3160,25.0430,30.2790,
	36.0190,42.2630,49.0090,56.2560,64.0030,72.2520,81.0010,90.2500,99.9990,110.2490,
	120.9990,132.2490,143.9980,156.2480,168.9980,182.2480,195.9980,210.2480,224.9980,
	240.2480,255.9980,272.2480,288.9980,306.2480,323.9980,342.2480,360.9990,380.2490,
	399.9990,420.2490,440.9990,462.2490,483.9990,506.2490,528.9990,552.2490,575.9990,
	600.2490,624.9990,650.2490,675.9990,702.2490,728.9990,756.2490,783.9990,812.2490,
	840.9990,870.2490,899.9990,930.2490,960.9990,992.2490,1023.9990);

		//GET WOOFER CUTOFF FREQUENCY
	var fclow=crsovrspecs.lfreq3.value;

		//GET TWEETER CUTOFF FREQUENCY
	var fchigh=crsovrspecs.hfreq3.value;
	
		//CALCULATE BANDSPREAD AND OTHER OFTEN USED VARIABLE
	var s=fchigh/fclow;

		//VERIFY BANDSPREAD AND CORRECT WHERE NECESSARY
	if(crsovrspecs.polar[0].checked) {
		if(s<2) {
			var msg="The bandspread that you have chosen is less than\n";
			msg+="2 octaves, which is the lower limit of the Linkwitz-Riley\n";
			msg+="table used in this application for 24DB crossovers.\n";
			msg+="------------------------------------------------------------------------------------\n";
			msg+="Your tweeter crossover frequency and midrange high\n";
			msg+="crossover frequency will be raised to 2 octaves above\n";
			msg+="your woofer crossover frequency.";
			displayMessage(msg);
			s=2;
			var a1=pos24a1[0];
			var b1=pos24b1[0];
			var c1=pos24c1[0];
			var h=pos24h[0];
			fchigh=fclow*s;
			crsovrspecs.mhfreq3.value=fchigh;
			crsovrspecs.hfreq3.value=fchigh;	
		}
		else if(s>32) {
			var msg="The bandspread that you have chosen is greater than\n";
			msg+="32 octaves, which is the upper limit of the Linkwitz-Riley\n";
			msg+="table used in this application for 24DB crossovers.\n"; 
			msg+="--------------------------------------------------------------------------------------\n";
			msg+="Your tweeter crossover frequency and midrange high\n";
			msg+="crossover frequency will be lowered to 32 octaves above\n";
			msg+="your woofer crossover frequency.";
			displayMessage(msg);
			s=32;
			var a1=pos24a1[pos24a1.length-1];
			var b1=pos24b1[pos24b1.length-1];
			var c1=pos24c1[pos24c1.length-1];
			var h=pos24h[pos24h.length-1];
			fchigh=fclow*s;
			crsovrspecs.mhfreq3.value=fchigh;
			crsovrspecs.hfreq3.value=fchigh;
		}
		else {
			var comparator=2;
			for(i=0; i<61; i++) {
				if(comparator>s) {
						if(comparator-s<.25) {
							s=comparator;
							var a1=pos24a1[i];
							var b1=pos24b1[i];
							var c1=pos24c1[i];
							var h=pos24h[i];
							i=61;	
						}
						else {
							s=comparator-.5;
							var a1=pos24a1[i-1];
							var b1=pos24b1[i-1];
							var c1=pos24c1[i-1];
							var h=pos24h[i-1];
							i=61;
						}	
				}
			comparator=comparator+.5;
			}
		}
	}
	itemsToSend[0]=s;
	itemsToSend[1]=a1;
	itemsToSend[2]=b1;
	itemsToSend[3]=c1;
	itemsToSend[4]=h;
	return(itemsToSend);
}