// JavaScript Document function thermostat (item_no) { // thermostats 2008 price_array = new Array( '40020','2','Hunter Replacement Mechanical Thermostat (Heat Only)','825', '40035','2','Hunter Replacement Mechanical Thermostat (Heat & Cool)','1250', '40170','2','Hunter Mechanical Electronic Thermostat (Heat & Cool)','1500', '42999','2','Hunter Just Right Digital Thermostat','1750', '42996','2','Hunter Just Right Digital Thermostat','2400', '44110','2','Hunter Programmable Thermostat','2200', '44260','2','Hunter Programmable Thermostat','3200', '44360','2','Hunter Programmable Thermostat','4200', '44550','2','Hunter Programmable Thermostat','5350', '44660','2','Hunter Programmable Thermostat','5900', '44668','2','Hunter Programmable Thermostat','7100', '44758','2','Hunter Programmable Thermostat','1545', '44860','2','Hunter Programmable Thermostat','6700'); for (var loop = 0; loop < price_array.length; loop = loop + 4) { if(item_no == price_array[loop]) { shipcost_and_addcart(parseInt(price_array[loop+1]), (price_array[loop+2]), parseInt(price_array[loop]), parseInt(price_array[loop+3])); return; } } return('ERROR'); }