function getListOfProducts()
{
	var span = document.getElementById("listOfProducts");
	var fieldValue = document.getElementById("searchTerm").value;

	var products =
[
{"name": "AC100 / AC420", "description": "High accuracy amplifiers", "link": "products/electronics/ac100.html"},
{"name": "ALUSYS", "description": "Heat flux and temperature measurement system for use in the study of aluminium smelters / furnaces.", "link": "products/heatFlux/alusys.html"},
{"name": "BS01", "description": "Belt Heat Flux Sensor", "link": "products/heatFlux/bs01.html"},
{"name": "CHF01 / CHF02", "description": "Change-of-heat-flux sensor", "link": "products/heatFlux/chf01.html"},
{"name": "CRC series", "description": "Calibration Reference Cylinder for thermal conductivity calibration suitable for TP09, TP07, TP02/TP08", "link": "products/thermalConductivity/CRCseries.html"},
{"name": "DT01", "description": "Differential Temperature sensor", "link": "products/electronics/dt01.html"},
{"name": "DT06", "description": "Miniature needle type differential temperature sensor", "link": "products/electronics/dt06.html"},
{"name": "FTN01", "description": "Field Thermal Needle System.(heavy duty) for soil thermal conductivity measurement. Field use.", "link": "products/thermalConductivity/ftn01.html"},
{"name": "GT series", "description": "Guiding Tubes for TP07, TP02 and TP08", "link": "products/thermalConductivity/GTseries.html"},
{"name": "HF01", "description": "High temperature heat flux sensor.", "link": "products/heatFlux/hf01.html"},
{"name": "HF02", "description": "Flare radiation monitor / heat flux sensor", "link": "products/heatFlux/hf02.html"},
{"name": "HF03 LI19", "description": "Portable heat flux sensor, with read-out unit", "link": "products/heatFlux/hf03.html"},
{"name": "HF05", "description": "Industrial heat flux sensor", "link": "products/heatFlux/hf05.html"},
{"name": "HFP01", "description": "Heat Flux plate / heat flux sensor. Most popular model.", "link": "products/heatFlux/hfp01.html"},
{"name": "HFP01SC", "description": "Self calibrating Heat Flux plate. High accuracy model for soil use only", "link": "products/heatFlux/hfp01sc.html"},
{"name": "HFP03", "description": "Ultra sensitive heat flux plate", "link": "products/heatFlux/hfp03.html"},
{"name": "IR02", "description": "Far Infra Red (FIR) radiation sensor.", "link": "products/solarRadiation/ir02.html"},
{"name": "LI18", "description": "High accuracy hand-held read-out unit", "link": "products/electronics/li18.html"},
{"name": "LI19", "description": "High accuracy hand-held read-out unit", "link": "products/electronics/li19.html"},
{"name": "LP02", "description": "Solar radiation sensor/ pyranometer", "link": "products/solarRadiation/lp02.html"},
{"name": "MTN01", "description": "Multi-purpose Thermal Needle System (heavy duty) for soil thermal conductivity measurement. Lab use.", "link": "products/thermalConductivity/mtn01.html"},
{"name": "NAM01", "description": "Nanovolt amplifier.", "link": "products/electronics/nam01.html"},
{"name": "NF01", "description": "Needle type heat flux sensor", "link": "products/heatFlux/nf01.html"},
{"name": "NF02", "description": "Miniature needle type heat flux sensor.", "link": "products/heatFlux/nf02.html"},
{"name": "NR01", "description": "4 component net-radiation sensor", "link": "products/solarRadiation/nr01.html"},
{"name": "PLT01", "description": "Plate Thermometer for fire research", "link": "products/electronics/plt01.html"},
{"name": "PU series", "description": "Heat Flux sensor, special models; small / large sizes, high temperatures, flexible.", "link": "products/heatFlux/PUseries.html"},
{"name": "RA01", "description": "2 component radiation meter", "link": "products/solarRadiation/ra01.html"},
{"name": "RC01", "description": "Radiation Convection heat flux sensor for studies of ovens", "link": "products/heatFlux/rc01.html"},
{"name": "RHF01", "description": "Ring heat flux sensor for fouling sensors in boilers", "link": "products/heatFlux/RHFseries.html"},
{"name": "SBG01", "description": "Water Cooled Heat Flux Sensor", "link": "products/heatFlux/sbg01.html"},
{"name": "SR11", "description": "First class solar radiation sensor/pyranometer", "link": "products/solarRadiation/sr11.html"},
{"name": "ST01", "description": "Soil temperature sensor", "link": "products/heatFlux/st01.html"},
{"name": "STP01", "description": "Soil temperature profile sensor", "link": "products/heatFlux/stp01.html"},
{"name": "THASYS", "description": "Thin heater Apparatus, analysis of thermal conductivity of plastics and composites", "link": "products/thermalConductivity/thasys.html"},
{"name": "THISYS", "description": "Apparatus for thermal conductivity measurement of thin samples plastics composites metals", "link": "products/thermalConductivity/thisys.html"},
{"name": "TNS01", "description": "Thermal Needle System (heavy duty) for soil thermal conductivity measurement. Lab and field use.", "link": "products/thermalConductivity/tns01.html"},
{"name": "TP01", "description": "Thermal Properties sensor", "link": "products/thermalConductivity/tp01.html"},
{"name": "TP02", "description": "Non-Steady-State Probe for thermal conductivity measurement", "link": "products/thermalConductivity/tp02.html"},
{"name": "TP08", "description": "Small version of TP02", "link": "products/thermalConductivity/tp08.html"},
{"name": "TPSYS02", "description": "Thermal Conductivity Measurement system with needle type TP02 or TP08", "link": "products/thermalConductivity/tpsys02.html"},
{"name": "TRSYS01", "description": "High Accuracy Thermal Resistance Measurement System for analysis of buiding envelopes and walls", "link": "products/thermalConductivity/trsys01.html"},
{"name": "WS01", "description": "Wind Speed sensor", "link": "products/electronics/ws01.html"}
];

	var numberOfProducts = products.length;

	var foundProducts = new Array();
	var j = 0;

	if (fieldValue.match(/[^a-zA-Z0-9]/))
		span.innerHTML = 'Only letters or numbers are permitted.';
	else if (fieldValue == '')
		span.innerHTML = 'Found products';
	else
	{
		for (i=0; i<numberOfProducts; i++)
		{
			if (products[i].name.match( new RegExp(fieldValue, 'i') ))
			{
				foundProducts[j] = products[i];
				j++;
			}
		}

		var numberFoundProducts = foundProducts.length;
		span.innerHTML = '';

		if (numberFoundProducts == 0)
			span.innerHTML = 'nothing found';
		else
		{
			for (i=0; i<numberFoundProducts; i++)
			{
				if (i<10)
					span.innerHTML += "<a href=" + foundProducts[i].link + ">" + foundProducts[i].name + '</a>, ' + foundProducts[i].description + '<br />';
			}
		}
	}
}
