
function loadProductList()
{
	var tmpSel,type,sensor,channels,display,i,model,field;
	tmpSel = document.getElementById('type');
	if (tmpSel.options[tmpSel.selectedIndex].value.toString() != '') {
		type = tmpSel.options[tmpSel.selectedIndex].value;
	}
	tmpSel = document.getElementById('sensortype');
	if (tmpSel.options[tmpSel.selectedIndex].value.toString() != '') {
		sensor = tmpSel.options[tmpSel.selectedIndex].value;
	}
	tmpSel = document.getElementById('channels');
	if (tmpSel.options[tmpSel.selectedIndex].value.toString() != '') {
		channels = parseInt(tmpSel.options[tmpSel.selectedIndex].value);
	}
	tmpSel = document.getElementById('display');
	if (tmpSel.options[tmpSel.selectedIndex].value.toString() != '') {
		display = tmpSel.options[tmpSel.selectedIndex].value;
	}
	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(type) && model.Type != type) { continue; }
		if (Boolean(sensor) && model.InputSensor != sensor) { continue; }
		if (channels > Number(model.NumberOfChannels)) { continue; }
		if (Boolean(display) && model.Display != display) { continue; }
		// Additional properties needed for compare chart
		model.RS232_485Output = (model.RS232_485Output.toLowerCase() == 'true' ? 'Yes' : 'No');
		model.ShuntCal = (model.ShuntCal.toLowerCase() == 'true' ? 'Yes' : 'No');
		model.TareFeature = (model.TareFeature.toLowerCase() == 'true' ? 'Yes' : 'No');
		model.PlugNPlay = (model.PlugNPlay.toLowerCase() == 'true' ? 'Yes' : 'No');
		model.UserSelectableFiltering = (model.UserSelectableFiltering.toLowerCase() == 'true' ? 'Yes' : 'No');
		results[model.ModelNumber] = model;
	}
	displayProductList();
}

// Define overlib help texts
/*
var help_texts = {
		'type':{
			'text':'',
			'caption':'Instruments',
			'hpos':LEFT
		},
		'sensor':{
			'text':'',
			'caption':'Sensors',
			'hpos':LEFT
		},
		'channels':{
			'text':'',
			'caption':'Channels',
			'hpos':LEFT
		},
		'display':{
			'text':'',
			'caption':'Display',
			'hpos':LEFT
		}
};
*/
var compareHeaders = {'ModelNumber':'Model','ApplicationNotes':'Typical Applications','OutputOfSensor':'Output Of Sensor','Excitation':'Excitation','AlarmOutputs':'Alarm Outputs','AnalogOutput':'Analog Output','PowerSupply':'Power Supply','DisplayDigits':'Display Digits','RS232_485Output':'RS 232/485 Output','ShuntCal':'Shunt Cal','TareFeature':'Tare Feature','PlugNPlay':'Plug-N-Play','PeakHold':'Peak Hold','UserSelectableFiltering':'User Selectable Filtering'};