prod = new Array( new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Anywhere Hard Surface Daily Sanitizing Spray","HC AWH TS HS SSEM") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Bleach Pen" + String.fromCharCode(8482) + " Gel","LD CBP SR BL PN EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Clean-Up Cleaner with Bleach Dilutable", "HC CLC BD BL RGEM"), new Array("Clorox" + String.fromCharCode(174) + " Clean-Up Cleaner with Bleach Spray","HC CLC TS BL SPEM"), new Array("Clorox" + String.fromCharCode(174) + " Clean-Up Cleaner with Bleach Spray Fresh Scent","HC CLC TS BL FS EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Wipes Fresh Scent", "HC CLD WC DW FSEM"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Wipes Fresh Scent Travel Pack","HC CLD WP DW TPEM"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Wipes Lemon Scent","HC CLD WC DW LMEM"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Wipes Lavanda Scent","HC CLD WC DW LVEM"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Wipes Orange Scent Kitchen","HC CLD WC DW KIEM") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Bleach","LD CBL HL UL RS EMA"), new Array("Clorox" + String.fromCharCode(174) + " Bleach Citrus Blend","LD CBL HL UL CL EMA"), new Array("Clorox" + String.fromCharCode(174) + " Bleach Clean Linen","LD CBL HL UL MW EMA"), new Array("Clorox" + String.fromCharCode(174) + " Bleach Lavender","LD CBL HL OD CL EMA"), new Array("Clorox" + String.fromCharCode(174) + " Bleach Fresh Meadow","LD CBL HL UL MW EMA"), new Array("Clorox" + String.fromCharCode(174) + " Bleach Mountain Fresh","LD CBL HL UL MR EMA"), new Array("Clorox" + String.fromCharCode(174) + " Outdoor Cleaner","LD CBL HL OD CL EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " UltimateCare" + String.fromCharCode(8482) + " Premium Bleach - Soft Cotton","LD CBL HL UC SC EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Dry Clorox" + String.fromCharCode(174) + " 2","LD CX2 BL UL OS EMA"), new Array("Liquid Clorox" + String.fromCharCode(174) + " 2","LD CX2 LB UL OS EMA"), new Array("Liquid Clorox" + String.fromCharCode(174) + " 2 Free & Clear","LD CX2 LB UL FC EMA"), new Array("Liquid Clorox" + String.fromCharCode(174) + " 2 Fresh Meadow","LD CX2 LB UL MW EMA"), new Array("Liquid Clorox" + String.fromCharCode(174) + " 2 Lavender","LD CX2 LB UL LV EMA"), new Array("Dry Clorox" + String.fromCharCode(174) + " 2 Free & Clear","LD CX2 BL UL FC EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Bathroom Cleaner","HC CLB TS DS SP EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Automatic Toilet Bowl Cleaner (Original)","HC CLT AU TB OREM"), new Array("Clorox" + String.fromCharCode(174) + " Blue Automatic Toilet Bowl Cleaner","HC CLT AU TF TBEM"), new Array("Clorox" + String.fromCharCode(174) + " Toilet Bowl Cleaner - with Bleach (Fresh Scent)","HC CLT MA TB FSEM"), new Array("Clorox" + String.fromCharCode(174) + " Toilet Bowl Cleaner - with Bleach (Rain Clean)","HC CLT MA TB RCEM"), new Array("Clorox" + String.fromCharCode(174) + " Toilet Bowl Cleaner - for Tough Stains","HC CLT MA TS TBEM"), new Array("Clorox" + String.fromCharCode(174) + " Bleach & Blue Automatic Toilet Bowl Cleaner", "HC CLT AU BB DSEM") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " ToiletWand" + String.fromCharCode(8482) + " System","HC CLT TW WD TCEM"), new Array("Clorox" + String.fromCharCode(174) + " ToiletWand" + String.fromCharCode(8482) + " System Refills","HC CLT TW WR DHEM") ), new Array( new Array("-- Choose a Product --","0"), new Array("The Tool","HC CLR SK MS MSEM"), new Array("The Advanced Floor Cleaner","HC CLR MC AD OSEM"), new Array("The Pads","HC CLR MP AB ABEM") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " BathWand" + String.fromCharCode(8482),"HC CBW SK WD TC EMA"), new Array("Clorox" + String.fromCharCode(174) + " BathWand" + String.fromCharCode(8482) + " Refills","HC CBW SR WR DP EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Clean Up the Classroom Multimedia Kit","HC HNW PR CCMMEMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Floor and Surface Cleaner - Crisp Citrus","HC CLD BD FS CC EMA"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Floor and Surface Cleaner - Refreshing Clean","HC CLD BD FS RC EMA"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Kitchen Cleaner - Crisp Citrus","HC CLD TS KT CC EMA"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Kitchen Cleaner - Refreshing Clean","HC CLD TS KT RC EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Plus Liquid Bleach - High Efficiency","LD CBL HL HE HE EMA"), new Array("Clorox" + String.fromCharCode(174) + " Plus Liquid Bleach - Anti-Allergen","LD CBL HL PL AA EMA"), new Array("Clorox" + String.fromCharCode(174) + " Plus Liquid Bleach - Cold Water","LD CBL HL PL CW EMA"), new Array("Clorox" + String.fromCharCode(174) + " Plus Liquid Bleach - Splash-Less", "LD CBL HL GL AV EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Spray - Fresh Scent","HC CLD AS DS FSEM"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Spray - Spring Mist","HC CLD AS DS SMEM"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Spray - Sunshine Breeze","HC CLD AS DS") ), new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " FreshCare" + String.fromCharCode(174) + " All Purpose Dishcloths", "LD FRC TW DC AP EMA"), new Array("Clorox" + String.fromCharCode(174) + " FreshCare" + String.fromCharCode(174) + " Kitchen Dishcloths", "LD FRC TW DC KT EMA"), new Array("Clorox" + String.fromCharCode(174) + " FreshCare" + String.fromCharCode(174) + " All Purpose Towels", "LD FRC TW TL AP EMA"), new Array("Clorox" + String.fromCharCode(174) + " FreshCare" + String.fromCharCode(174) + " Kitchen Towels", "LD FRC TW TL KT EMA") ) ); function fillSelectFromArray(selectCtrlName, itemArray, goodPrompt, badPrompt, defaultItem) { var i, j; var prompt; var selectCtrl = document.getElementById(selectCtrlName) // empty existing items for (i = selectCtrl.options.length; i >= 0; i--) { selectCtrl.options[i] = null; } prompt = (itemArray != null) ? goodPrompt : badPrompt; if (prompt == null) { j = 0; } else { selectCtrl.options[0] = new Option(prompt); j = 1; } if (itemArray != null) { // add new items for (i = 0; i < itemArray.length; i++) { selectCtrl.options[j] = new Option(itemArray[i][0]); if (itemArray[i][1] != null) { selectCtrl.options[j].value = itemArray[i][1]; } j++; } // select first item (prompt) for sub list selectCtrl.options[0].selected = true; } }