// JavaScript Document
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jerome Caron |  */
team = new Array(
new Array(new Array("Aluminium Furniture - CM Factory", "Aluminium Furniture - CM Factory"),
new Array("Mercury Range - XGR Factory", "Mercury Range - XGR Factory"),
new Array("Peeled Bamboo Furniture - CTL Factory", "Peeled Bamboo Furniture - CTL Factory"),
new Array("Sapphire Range - XGM Factory", "Sapphire Range - XGM Factory"),
new Array("Landmark Cast Aluminium Garden Furniture - IAC Factory", "Landmark Cast Aluminium Garden Furniture - IAC Factory"),
new Array("Majestique Hardwood Garden Furniture - IIM Factory","Majestique Hardwood Garden Furniture - IIM Factory"),
new Array("Majestique Oak Garden Furniture - IIM Factory","Majestique Oak Garden Furniture - IIM Factory"),
new Array("Majestique All Weather Furniture - IIM Factory","Majestique All Weather Furniture - IIM Factory"),
new Array("Majestique Supreme All Weather Furniture - XIC Factory","Majestique Supreme All Weather Furniture - XIC Factory"),
new Array("Classique Luxury Garden Furniture - IIX Factory","Classique Luxury Garden Furniture - IIX Factory"),
new Array("Polypropylene Garden Furniture - IPS Factory","Polypropylene Garden Furniture - IPS Factory"),
new Array("Cast Aluminium Furniture, Umbrellas, Cast Iron Bases & Furniture - JL Factory","Cast Aluminium Furniture, Umbrellas, Cast Iron Bases & Furniture - JL Factory"),
new Array("Imperial Teak Furniture - LN Factory","Imperial Teak Furniture - LN Factory"),
new Array("The Pembroke Mixed Hardwood Furniture - MHF Factory","The Pembroke Mixed Hardwood Furniture - MHF Factory"),
new Array("County FSC Teak & Eucalyptus Furniture - MNE Factory","County FSC Teak & Eucalyptus Furniture - MNE Factory"),
new Array("Lifestyle All Weather Furniture - NM Factory","Lifestyle All Weather Furniture - NM Factory"),
new Array("Majestique Cushion Range - PHH Factory","Majestique Cushion Range - PHH Factory"),
new Array("Composite Garden Furniture - RP Factory","Composite Garden Furniture - RP Factory"),
new Array("Tay Nam Planters & Furniture - XFA Factory","Tay Nam Planters & Furniture - XFA Factory"),
new Array("Plastic Products - XBD Factory","Plastic Products - XBD Factory"),
new Array("Eclipse Range - XDW Factory","Eclipse Range - XDW Factory"),
new Array("Resin Furniture - TCE  Factory",
"Resin Furniture - TCE  Factory")
),

new Array(
new Array("Rattan, Metal, Seagrass, Lakegrass, Shelving, Baskets & Furniture - CS Factory","Rattan, Metal, Seagrass, Lakegrass, Shelving, Baskets & Furniture - CS Factory"),
new Array("Cane Furniture with cushions - FL Factory","Cane Furniture with cushions - FL Factory"),
new Array("Metal & MDF Dining Sets - EGV Factory","Metal & MDF Dining Sets - EGV Factory"),
new Array("Bespoke Furniture - HRF Factory","Bespoke Furniture - HRF Factory"),
new Array("Rubberwood Indoor Furniture - IIC Factory","Rubberwood Indoor Furniture - IIC Factory"),
new Array("Indian Furniture - ITF Factory","Indian Furniture - ITF Factory"),
new Array("Vietnamese Antique Pine Furniture - LTN Factory","Vietnamese Antique Pine Furniture - LTN Factory"),
new Array("Bentwood Furniture - SHY Factory","Bentwood Furniture - SHY Factory"),
new Array("Pine, Oak & Ash Wood Dining Sets - PF Factory","Pine, Oak & Ash Wood Dining Sets - PF Factory"),
new Array("Aura Dining Furniture - SKF Factory","Aura Dining Furniture - SKF Factory"),
new Array("American Oak Furniture - XKQ Factory","American Oak Furniture - XKQ Factory"),
new Array("Pulman Sofa Bed Range - XKV Factory","Pulman Sofa Bed Range - XKV Factory"),
new Array("Montrose Sofa Range - XKS Factory","Montrose Sofa Range - XKS Factory"),
new Array("Supreme Dining Furniture - XFM Factory","Supreme Dining Furniture - XFM Factory"),
new Array("Rattan Indoor Furniture - YJS Factory","Rattan Indoor Furniture - YJS Factory"),
new Array("Banqueting Furniture & Equipment - XEL Factory","Banqueting Furniture & Equipment - XEL Factory"),
new Array("Contemporary Indoor Furniture - STF Factory","Contemporary Indoor Furniture - STF Factory"),
new Array("Oak Furniture - XAA Factory","Oak Furniture - XAA Factory"),
new Array("Sherwood Range - PDE Factory","Sherwood Range - PDE Factory"),
new Array("Retro Furniture - XEJ Factory","Retro Furniture - XEJ Factory"),
new Array("Aldabra Indian Furniture - XEX Factory","Aldabra Indian Furniture - XEX Factory"),
new Array("Modern Sofas - YE Factory","Modern Sofas - YE Factory"),
new Array("Oak Furniture - XBS Factory","Oak Furniture - XBS Factory"),
new Array("The New Havana Range - XCT Factory","The New Havana Range - XCT Factory"),
new Array("Recycled Oak Furniture - XER Factory","Recycled Oak Furniture - XER Factory"),
new Array("Rattan Indoor Furniture - YJS Factory","Rattan Indoor Furniture - YJS Factory")

),
new Array(
new Array("Patio Heaters & BBQ's - CFG Factory","Patio Heaters & BBQ's - CFG Factory"),
new Array("Water Features - XFF Factory","Water Features - XFF Factory"),
new Array("Chimeneas & Pumps - XKJ Factory","Chimeneas & Pumps - XKJ Factory"),
new Array("Greenhouses & Metal Sheds - XKN Factory","Greenhouses & Metal Sheds - XKN Factory"),
new Array("Chimemeas, Fireplaces & Mail Boxes - XGL Factory","Chimeneas, Fireplaces & Mail Boxes - XGL Factory"),
new Array("Garden Sprays & Hoses - FT Factory","Garden Sprays & Hoses - FT Factory"),
new Array("Garden Products - GP  Factory","Garden Products - GP  Factory"),
new Array("Electric Patio Heaters - GT Factory","Electric Patio Heaters - GT Factory"),
new Array("Fire Pits, Grills & Chimeneas - DC Factory","Fire Pits, Grills & Chimeneas - DC Factory"),
new Array("Greenhouses, Burntwood, Umbrellas & Cast Iron Umbrella Bases - PZ Factory","Greenhouses, Burntwood, Umbrellas & Cast Iron Umbrella Bases - PZ Factory"),
new Array("Parasols & Gazebos - LHC Factory","Parasols & Gazebos - LHC Factory"),
new Array("Awnings, Gazebos & Parasols - XAC Factory","Awnings, Gazebos & Parasols - XAC Factory"),
new Array("Garden Tools - WGP Factory","Garden Tools - WGP Factory"),
new Array("Electric Patio Heaters - XDN Factory","Electric Patio Heaters - XDN Factory"),
new Array("Solar Lights - IAD Factory","Solar Lights - IAD Factory"),
new Array("Outdoor Playsets & Playhouses - XEC Factory","Outdoor Playsets & Playhouses - XEC Factory"),
new Array("Cast Iron Stoves - WE Factory","Cast Iron Stoves - WE Factory")
),


new Array(
new Array("Glass Blocks - XJH Factory","Glass Blocks - XJH"),
new Array("Polycarbonate Greenhouses - GR Factory","Polycarbonate Greenhouses - GR Factory"),
new Array("Luxury Spa Surround & Spa House Collection - IIX Factory","Luxury Spa Surround & Spa House Collection - IIX Factory"),
new Array("Willow Garden Products - HG Factory","Willow Garden Products - HG Factory"),
new Array("Fencing, Trellis & Hanging Baskets - IAB Factory,","Fencing, Trellis & Hanging Baskets - IAB Factory"),
new Array("Fencing & Garden Products - IIU Factory","Fencing & Garden Products - IIU Factory"),
new Array("Burntwood Items - LG Factory","Burntwood Items - LG Factory"),
new Array("Citronella Candles - XFP Factory","Citronella Candles - XFP Factory"),
new Array("Sandstone, Slate & Granite - VC Factory","Sandstone, Slate & Granite - VC Factory"),
new Array("Rubber Tile - XAY Factory","Rubber Tile - XAY Factory")
),

new Array(
new Array("Shredders, Laminators & Trimmers - XZN Factory","Shredders, Laminators & Trimmers - XZN Factory"),
new Array("Mesh Stationary Products - HO Factory","Mesh Stationary Products - HO Factory"),
new Array("Safes, Cash Boxes & Key Boxes - MTW Factory,","Safes, Cash Boxes & Key Boxes - MTW Factory"),
new Array("Safes - XGD Factory,","Safes - XGD Factory,")
),

new Array(
new Array("Electric Patio Heaters - GT Factory","Electric Patio Heaters - GT Factory"),
new Array("Trampolines, Play Houses & Basketball Nets - CNT Factory","Trampolines, Play Houses & Basketball Nets - CNT Factory"),
new Array("Games Tables - XDU Factory","Games Tables - XDU Factory"),
new Array("Artificial Trees - XHJ Factory","Artificial Trees - XHJ Factory"),
new Array("Metal Gazebos - XFN Factory","Metal Gazebos - XFN Factory"),
new Array("Outdoor & Fishing Products - XFP Factory","Outdoor & Fishing Products - XFP Factory"),
new Array("Gazebos, Greenhouses & Tents - NE Factory","Gazebos, Greenhouses & Tents - NE Factory"),
new Array("Gazebos, Party Tents, Greenhouses & Folding Chairs - NM Factory","Gazebos, Party Tents, Greenhouses & Folding Chairs - NM Factory"),
new Array("Trampolines, Outdoor Games & Swings - OK Factory","Trampolines, Outdoor Games & Swings - OK Factory"),
new Array("Luxury Saunas - PK Factory","Luxury Saunas - PK Factory"),
new Array("Folding Tables & Picnic Sets - PHZ Factory","Folding Tables & Picnic Sets - PHZ Factory"),
new Array("Spas - SPA Factory","Spas - SPA Factory"),
new Array("Swimming Pools & Inflatables - SSE Factory","Swimming Pools & Inflatables - SSE Factory"),
new Array("Outdoor & Camping Products - STO Factory","Outdoor & Camping Products - STO Factory"),
new Array("Children's Play Products - STP Factory","Children's Play Products - STP Factory"),
new Array("Children's Play Sets & Toys - TYM Factory","Children's Play Sets & Toys - TYM Factory"),
new Array("Camping Furniture - XAG Factory","Camping Furniture - XAG Factory"),
new Array("Blow Mould Furniture - YIT Factory","Blow Mould Furniture - YIT Factory"),
new Array("Gas BBQ's, Party Coolers & Wine Cellars - ZJE Factory","Gas BBQ's, Party Coolers & Wine Cellars - ZJE Factory")
),

new Array(
new Array("Stainless Steel Cookware - ESC Factory","Stainless Steel Cookware - ESC Factory"),
new Array("Electric Fans - GLE Factory","Electric Fans - GLE Factory"),
new Array("Mobility Products - XGJ Factory","Mobility Products - XGJ Factory"),
new Array("TV Stands & Tables - CLD Factory","TV Stands & Tables - CLD Factory"),
new Array("Fans - CRY Factory","Fans - Cry Factory"),
new Array("Toilet Seats & Bathroom Scales - IW Factory","Toilet Seats & Bathroom Scales - IW Factory"),
new Array("Bathroom Cabinets- XGO Factory","Bathroom Cabinets - XGO Factory"),
new Array("Heaters - XCS Factory","Heaters - XCS Factory")
),


new Array(
new Array("Tool Boxes - XAO Factory","Tool Boxes - XAO Factory"),
new Array("Ladders & Tools - TJ Factory","Ladders & Tools - TJ Factory")
),

new Array(
new Array("Mobility Products - XGJ Factory","Mobility Products - XGJ Factory"),
new Array("Bathroom Mobility - XJN Factory","Bathroom Mobility - XJN Factory")
),

new Array(
new Array("Office Chairs - YM Factory","Office Chairs - YM Factory"),
new Array("Banqueting Furniture - XEL Factory","Banqueting Furniture - XEL Factory"),
new Array("Contract Furniture - XAB Factory","Contract Furniture - XAB Factory")
),

new Array(
new Array("Christmas Items - NM Factory","Christmas Items - NM Factory")
),

new Array(
new Array("Pet Products - HTP Factory","Pet Products - HTP Factory"),
new Array("Pet Houses and Garden Furniture - XIP Factory","Pet Houses and Garden Furniture - XIP Factory"),
new Array("Pet Houses - XDF Factory","Pet Houses - XDF Factory")
),

new Array(
new Array("Indoor Pottery Sets - HAS Factory","Indoor Pottery Sets - HAS Factory"),
new Array("Vietnamese Glazed, Zinc, Terracotta and Terazo Pots - XEF Factory","Vietnamese Glazed, Zinc, Terracotta and Terazo Pots - XEF Factory"),
new Array("Haras Pottery - XKQ Factory","Haras Pottery - XKQ Factory"),
new Array("Pottery, Zinc, Metal Items & Recycled Furniture - LTN Factory","Pottery, Zinc, Metal Items & Recycled Furniture - LTN Factory"),
new Array("Delta Pottery - XKD Factory","Delta Pottery - XKD Factory")
),

new Array(
new Array("Eco Friendly Bamboo Furniture - BEG Factory","Eco Friendly Bamboo Furniture - BEG Factory"),
new Array("Eco Friendly Wood Polymer Composite Decking - XJU Factory","Eco Friendly Wood Polymer Composite Decking - XJU Factory")
)

);
function fillSelectFromArray(selectCtrl, itemArray, goodPrompt, badPrompt, defaultItem) {
var i, j;
var prompt;
// 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;
   }
}
