
function loadProductList()
{
	var tmpSel,group,formfactor,measurement,accuracy,capacity,amplified,i,model,field;
	tmpSel = document.getElementById('group');
	if (tmpSel.options[tmpSel.selectedIndex].value.toString() != '') {
		group = tmpSel.options[tmpSel.selectedIndex].value;
	}
	tmpSel = document.getElementById('formfactor');
	if (tmpSel.options[tmpSel.selectedIndex].value.toString() != '') {
		formfactor = tmpSel.options[tmpSel.selectedIndex].value;
	}
	tmpSel = document.getElementById('measurement');
	if (tmpSel.options[tmpSel.selectedIndex].value.toString() != '') {
		measurement = tmpSel.options[tmpSel.selectedIndex].value;
	}
	tmpSel = document.getElementById('accuracy');
	accuracy = Number(tmpSel.options[tmpSel.selectedIndex].value);
	tmpSel = document.getElementById('capacity');
	capacity = Number(tmpSel.options[tmpSel.selectedIndex].value);
	amplified = document.getElementById('amplified').checked;
	results = new Array();
	for (i=0; i<products.length; i++) {
		model = new Object();
		for (field in products[i]) {
			model[field] = products[i][field];
		}
		if (Boolean(group) && model.ProductGroup != group) { continue; }
		if (Boolean(formfactor) && model.FormFactor != formfactor) { continue; }
		if (Boolean(measurement) && model.Measurement != measurement) { continue; }
		if (accuracy < Number(model.Accuracy)) { continue; }
		if (capacity > Number(model.UpperCapacity)) { continue; }
		if (amplified && model.Amplified == 'false') { continue; }
		// Additional properties needed for compare chart
		model.Capacity = 'Up to ' + model.UpperCapacity + ' psi';
		model.Amplified = (model.Amplified ? 'Available' : 'Not Available');
		model.Accuracy += '%';
		model.MaxOperatingTemperature += '\u00B0 F';
		results[model.ModelNumber] = model;
	}
	displayProductList();
}

// Define overlib help texts
var help_texts = {/* Look at load if help links are needed */};

var compareHeaders = {'ModelNumber':'Model','ProductGroup':'Product Group','Measurement':'Measurement Type','Capacity':'Capacity','Accuracy':'Accuracy','FormFactor':'Form Factor','Amplified':'Amplification Option','MaxOperatingTemperature':'Max Operating Temperature'};