// JavaScript Document // if discontinued, make item price ='0' function add_purifier_to_shopping_cart (item_no) { // purifiers updated 3.3.2010 price_array = new Array( '30703','6','Hunter QuietFlo True HEPA Air Purifiers','5350', '30090','15','Hunter QuietFlo True HEPA Air Purifiers','6550', '30085','15','Hunter QuietFlo True HEPA Air Purifiers','12125', '30095','15','Hunter QuietFlo True HEPA Air Purifiers','6845', '30185','15','Hunter QuietFlo True HEPA Air Purifiers','12125', '30241','16','Hunter QuietFlo True HEPA Air Purifiers','0', '30730','15','Hunter QuietFlo True HEPA Air Purifiers','13225', '30763','15','Hunter QuietFlo True HEPA Air Purifiers','14300', '30245','16','Hunter QuietFlo True HEPA Air Purifiers','14025', '30402','19','Hunter QuietFlo True HEPA Air Purifiers','16800', '30401','19','Hunter QuietFlo True HEPA Air Purifiers','17750', '30736','18','Hunter QuietFlo True HEPA Air Purifiers','17750', '30780','15','Hunter QuietFlo True HEPA Air Purifiers','18675', '30525','22','Hunter QuietFlo True HEPA Air Purifiers','0', '30706','6','Hunter PermaLife Air Purifiers','5825', '30190','15','Hunter PermaLife Air Purifiers','12700', '30750','15','Hunter PermaLife Air Purifiers','14950', '30756','18','Hunter PermaLife Air Purifiers','22425', '30546','22','Hunter PermaLife Air Purifiers','21240', '30027','6','Hunter HEPAtech Air Purifiers','4275', '30709','6','Hunter HEPAtech Air Purifiers','4385', '30057','12','Hunter HEPAtech Air Purifiers','6550', '30067','15','Hunter HEPAtech Air Purifiers','8400', '30124','15','Hunter HEPAtech Air Purifiers','9550', '30180','15','Hunter HEPAtech Air Purifiers','9550', '30710','15','Hunter HEPAtech Air Purifiers','11200', '30766','15','Hunter HEPAtech Air Purifiers','11200', '30212','18','Hunter HEPAtech Air Purifiers','11035', '30715','18','Hunter HEPAtech Air Purifiers','14950', '30770','18','Hunter HEPAtech Air Purifiers','15950', '30378','19','Hunter HEPAtech Air Purifiers','14950', '30526','22','Hunter HEPAtech Air Purifiers','15900', '30030','3','Hunter Personal Space Air Cleaners','4275', '30033','3','Hunter Personal Space Air Cleaners','4275', '30035','3','Hunter Personal Space Air Cleaners','4800', '30038','3','Hunter Personal Space Air Cleaners','4800'); 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'); } function add_filter_to_shopping_cart (item_no) { // purifier filters 2008 $$$ $1.00 added to cost for box charge price_array = new Array( '30900-1','2','Hunter HEPAtech Replacement Filter','1930', '30900-2','3','(2) Hunter HEPAtech Replacement Filters','3760', '30900-3','3','(3) Hunter HEPAtech Replacement Filters','5590', '30915-1','2','Hunter HEPAtech Replacement Filter','970', '30915-2','3','(2) Hunter HEPAtech Replacement Filters','1840', '30915-3','3','(3) Hunter HEPAtech Replacement Filters','2710', '30917-1','2','Hunter HEPAtech Replacement Filter','1125', '30917-2','3','(2) Hunter HEPAtech Replacement Filters','2150', '30917-3','3','(3) Hunter HEPAtech Replacement Filters','3175', '30920-1','2','Hunter HEPAtech Replacement Filter','1455', '30920-2','3','(2) Hunter HEPAtech Replacement Filters','2810', '30920-3','3','(3) Hunter HEPAtech Replacement Filters','4165', '30925-1','2','Hunter HEPAtech Replacement Filter','1800', '30925-2','3','(2) Hunter HEPAtech Replacement Filters','3500', '30925-3','3','(3) Hunter HEPAtech Replacement Filters','5200', '30928-1','2','Hunter HEPAtech Replacement Filter','2520', '30928-2','3','(2) Hunter HEPAtech Replacement Filters','4940', '30928-3','3','(3) Hunter HEPAtech Replacement Filters','7360', '30930-1','2','Hunter HEPAtech Replacement Filter','1930', '30930-2','3','(2) Hunter HEPAtech Replacement Filters','3760', '30930-3','3','(3) Hunter HEPAtech Replacement Filters','5590', '30931-1','2','Hunter HEPAtech Replacement Filter','2930', '30931-2','3','(2) Hunter HEPAtech Replacement Filters','5760', '30931-3','3','(3) Hunter HEPAtech Replacement Filters','8590', '30963-1','2','Hunter HEPAtech Replacement Filter','2470', '30963-2','3','(2) Hunter HEPAtech Replacement Filters','4840', '30963-3','3','(3) Hunter HEPAtech Replacement Filters','7210', '30965-1','2','Hunter HEPAtech Replacement Filter','2940', '30965-2','3','(2) Hunter HEPAtech Replacement Filters','5780', '30965-3','3','(3) Hunter HEPAtech Replacement Filters','8620', '30944-1','2','Hunter HEPAtech Replacement Filter','3395', '30944-2','3','(2) Hunter HEPAtech Replacement Filters','6690', '30944-3','3','(3) Hunter HEPAtech Replacement Filters','9985', '30901-1','0','Hunter QuietFlo & HEPAtech Pre-Filter','2595', '30901-2','0','(2) Hunter QuietFlo & HEPAtech Pre-Filters','4195', '30901-3','0','(3) Hunter QuietFlo & HEPAtech Pre-Filters','5295', '30936-1','2','Hunter QuietFlo True HEPAtech Filter','4480', '30936-2','3','(2) Hunter QuietFlo True HEPAtech Filters','8860', '30936-3','3','(3) Hunter QuietFlo True HEPAtech Filters','13240', '30938-1','2','Hunter QuietFlo True HEPAtech Filter','4950', '30938-2','3','(2) Hunter QuietFlo True HEPAtech Filters','9800', '30938-3','3','(3) Hunter QuietFlo True HEPAtech Filters','14650', '30940-1','2','Hunter QuietFlo True HEPAtech Filter','5350', '30940-2','3','(2) Hunter QuietFlo True HEPAtech Filters','10600', '30940-3','3','(3) Hunter QuietFlo True HEPAtech Filters','15850', '30943-1','2','Hunter QuietFlo True HEPAtech Filter','4740', '30943-2','3','(2) Hunter QuietFlo True HEPAtech Filters','9380', '30943-3','3','(3) Hunter QuietFlo True HEPAtech Filters','14020', '30960-1','2','Hunter QuietFlo True HEPAtech Filter','4950', '30960-2','3','(2) Hunter QuietFlo True HEPAtech Filters','9800', '30960-3','3','(3) Hunter QuietFlo True HEPAtech Filters','14650', '30962-1','2','Hunter QuietFlo True HEPAtech Filter','4480', '30962-2','3','(2) Hunter QuietFlo True HEPAtech Filters','8860', '30962-3','3','(3) Hunter QuietFlo True HEPAtech Filters','13240'); 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]), (price_array[loop]), parseInt(price_array[loop+3])); return; } } return('ERROR'); }