<!-- You need a Java Enabled Browser to use the Bandpass Enclosure Calculator.
// COPYRIGHT © S.Westenskow 1997-2000 e-mail: XSSpl@hotmail.com ***
var d = 1.00
function table1(){
var Qts = document.forms[0].elements[3].value
var Vas = document.forms[0].elements[4].value
if (document.forms[0].elements[0].value > 1){Vas = Vas * document.forms[0].elements[0].value}
	else{Vas = Vas}
if (document.forms[0].elements[1].checked && document.forms[0].elements[0].value > 1){Vas = Vas * 0.25}
	else{Vas = Vas}
var Fs  = document.forms[0].elements[5].value
if (Qts < 0.18 || Qts > 0.28){alert("These calculations are only accurate for Qts values ranging from 0.18-0.28"); a=0; b=0; c=0; f=0; g=0; h=0}
	else{
		if (Qts >= 0.18 && Qts < 0.19){a=0.190; b=1.95; c=0.440; f=2.37; g=1.052; h=-2.3}
		else{
			if (Qts >= 0.19 && Qts < 0.20){a=0.200; b=1.96; c=0.460; f=2.41; g=1.013; h=-1.9}
		else{
			if (Qts >= 0.20 && Qts < 0.21){a=0.212; b=1.96; c=0.465; f=2.41; g=1.070; h=-1.4}
		else{
			if (Qts >= 0.21 && Qts < 0.22){a=0.215; b=1.98; c=0.470; f=2.46; g=1.076; h=-1.1}
		else{
			if (Qts >= 0.22 && Qts < 0.23){a=0.217; b=2.02; c=0.510; f=2.59; g=1.06; h=-0.9}
		else{
			if (Qts >= 0.23 && Qts < 0.24){a=0.223; b=2.032; c=0.530; f=2.64; g=1.06; h=-0.6}
		else{
			if (Qts >= 0.24 && Qts < 0.25){a=0.230; b=2.04; c=0.550; f=2.68; g=1.06; h=-0.3}
		else{
			if (Qts >= 0.25 && Qts < 0.26){a=0.252; b=2.01; c=0.580; f=2.62; g=1.06; h=0.2}
		else{
			if (Qts >= 0.26 && Qts < 0.27){a=0.27; b=1.988; c=0.6; f=2.57; g=1.06; h=0.6}
		else{
			if (Qts >= 0.27 && Qts < 0.28){a=0.294; b=1.96; c=0.63; f=2.51; g=1.064; h=1.1}
		else{
			if (Qts == 0.28){a=0.308; b=1.95; c=0.66; f=2.5; g=1.06; h=1.4}
}}}}}}}}}}}
var Vf = Math.round((a * Vas)*1000)/1000
var Vr = Math.round((c * Vas)*1000)/1000 
var Fbf = Math.round((b * Fs)*100)/100
var Fbr = Math.round((d * Fs)*100)/100
var F3h = Math.round((f * Fs)*100)/100
var F3l = Math.round((g * Fs)*100)/100
document.forms[0].elements[6].value=Vf
document.forms[0].elements[7].value=Vr
document.forms[0].elements[8].value=Fbf
document.forms[0].elements[9].value=Fbr
document.forms[0].elements[10].value=F3l + " - " + F3h
document.forms[0].elements[11].value= "  " +h
}
// -->
