prod = new Array( new Array( new Array("-- Choose a Product --","0"), new Array("Clorox" + String.fromCharCode(174) + " Automatic Toilet Bowl Cleaner","HC CLT AU TB ORPD"), new Array("Clorox" + String.fromCharCode(174) + " Disinfecting Wipes Kitchen (Orange Scent)","HC CLD WC DW KIEM"), new Array("Clorox" + String.fromCharCode(174) + " Oxi Magic" + String.fromCharCode(8482) + " Multi-Purpose Stain Remover","LD OXM SR LQ MP EMA"), new Array("Clorox" + String.fromCharCode(174) + " ReadyMop" + String.fromCharCode(174) + " Mopping System","HC CLR SK MS MSEM"), new Array("CS Clorox Anywhere Hard Surface Sanitizing Spray","CP CAW TS HS SS EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Bleach Toilet Bowl Cleaner - Manual","CP TB CL TC TB EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Clean-Up" + String.fromCharCode(174) + " Disinfectant Cleaner with Bleach","CP CC BD BL BD EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Disinfecting All Purpose Spray", "CP DC TS AP CL EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Disinfecting All Purpose Cleaner", "CP DC BD AP CN EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Disinfecting Bathroom Cleaner","CP CLB TS DS SP EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Disinfecting Spray","CP DC AS DS FS EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Disinfecting Wipes - Fresh Scent","HC CLD WC DW FSPD"), new Array("CS Clorox" + String.fromCharCode(174) + " Disinfecting Wipes - Lemon Fresh","HC CLD WC DW LMEM"), new Array("CS Clorox" + String.fromCharCode(174) + " Germicidal Spray","CP DC TS GM SP EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Germicidal Wipes","CP DC WC GW GM EMA"), new Array("CS Clorox" + String.fromCharCode(174) + " Pro Quaternary Disinfecting Cleaner", "CP DC BD QD CL EMA"), new Array("CS Ultra Clorox" + String.fromCharCode(174) + " Germicidal Bleach","CP CXB HC UL GM EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("CS Formula 409" + String.fromCharCode(174) + " Cleaner Degreaser Disinfectant","CP FO TS DG OR EMA"), new Array("CS Formula 409" + String.fromCharCode(174) + " Glass & Surface Cleaner","CP FO TS SC SP EMA"), new Array("CS Formula 409" + String.fromCharCode(174) + " Heavy Duty Degreaser Disinfectant","CP FO TS HD DD EMA"), new Array("CS Formula 409" + String.fromCharCode(174) + " Multi-Surface Floor Cleaner Concentrate","CP FO BD MS CC EMA"), new Array("CS Formula 409" + String.fromCharCode(174) + " Orange Cleaner Degreaser","CP FO TS DG OP PPD") ), new Array( new Array("-- Choose a Product --","0"), new Array("Handi Wipes" + String.fromCharCode(174) + " Reusable Cloths","HC HAN TW RU RUPD") ), new Array( new Array("-- Choose a Product --","0"), new Array("Lestoil" + String.fromCharCode(174) + " Concentrated Heavy Duty Cleaner","HC LES BD HD HDEM") ), new Array( new Array("-- Choose a Product --","0"), new Array("Liquid Plumr" + String.fromCharCode(174) + " Foaming Pipe Snake" + String.fromCharCode(174) + " Clog Remover","HC LIQ DO FS FSPD"), new Array("CS Liquid Plumr" + String.fromCharCode(174) + " Heavy Duty Clog Remover","CP LP DO HD CR PPD") ), new Array( new Array("-- Choose a Product --","0"), new Array("CS Pine-Sol" + String.fromCharCode(174) + " Cleaner - Lemon Fresh","CP PS BD DI LF PPD"), new Array("CS Pine-Sol" + String.fromCharCode(174) + " Cleaner - Orange Energy","HC PIN BD RG OEEM"), new Array("CS Pine-Sol" + String.fromCharCode(174) + " Cleaner - Original Pine","CP PS BD DI CP PPD") ), new Array( new Array("-- Choose a Product --","0"), new Array("CS S.O.S" + String.fromCharCode(8482) + " Pot & Pan Detergent","CP SS BD PP DE EMA"), new Array("CS S.O.S" + String.fromCharCode(174) + " Steel Wool Soap Pads","SP SS SP SW SP 15EM") ), new Array( new Array("-- Choose a Product --","0"), new Array("CS Tilex" + String.fromCharCode(174) + " Disinfects Instant Mildew Remover","CP TI TS MM RS EMA"), new Array("CS Tilex" + String.fromCharCode(174) + " Soap Scum Remover & Disinfectant","CP TI TS SS RD EMA") ), new Array( new Array("-- Choose a Product --","0"), new Array("CS Green Works" + String.fromCharCode(8482) + " Dilutable Cleaner", "CP GW BD DL CL EMA"), new Array("CS Green Works" + String.fromCharCode(8482) + " All Purpose Cleaner Spray", "CP GW TS AP SP EMA"), new Array("CS Green Works" + String.fromCharCode(8482) + " Glass & Surface Cleaner Spray", "CP GW TS GS SP EMA"), new Array("CS Green Works" + String.fromCharCode(8482) + " Glass & Surface Cleaner Refill", "CP GW TS GS RF EMA"), new Array("CS Green Works" + String.fromCharCode(8482) + " General Bathroom Cleaner Spray", "CP GW TS BT SP EMA"), new Array("Green Works" + String.fromCharCode(8482) + " Natural Toilet Bowl Cleaner", "HC GW MA TB OR 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; } }