// JavaScript Document

function buildSelect(x) {
  if (x == "12") { 
    /* set choices 1 and 2 */
    option0 = new Option("  Please Select  ",0)
    option1 = new Option("Suede", "suede")
    option2 = new Option("Faux Fur", "faux fur")
    option3 = new Option("Velvet", "velvet")
	option4 = new Option("Canvas", "canvas")
	option5 = new Option("Upholstery", "upholstery")
	option6 = new Option("Leather", "leather")
	option7 = new Option("Cotton", "cotton")
	option8 = new Option("Blends", "blends")
	option9 = new Option("Satin", "satin")
	option10 = new Option("Quilt", "quilt")
	option11 = new Option("Lace", "lace")
	option12 = new Option("Other", "other")
	
    // write them
    document.form2.fieldB.options[0] = option0
    document.form2.fieldB.options[1] = option1
    document.form2.fieldB.options[2] = option2
	document.form2.fieldB.options[3] = option3
	document.form2.fieldB.options[4] = option4
	document.form2.fieldB.options[5] = option5
    document.form2.fieldB.options[6] = option6
	document.form2.fieldB.options[7] = option7
	document.form2.fieldB.options[8] = option8
	document.form2.fieldB.options[9] = option9
	document.form2.fieldB.options[10] = option10
	document.form2.fieldB.options[11] = option11
	document.form2.fieldB.options[12] = option12
    return;
    }

  if (x == "34") { 
    /* set choices 3 and 4 */ 
    option0 = new Option("  Please Select  ",0)
    option1 = new Option("Black", "black")
    option2 = new Option("White", "white")
    option3 = new Option("Red", "red")
	option4 = new Option("Pink", "pink")
	option5 = new Option("Blue", "blue")
	option6 = new Option("Green", "green")
	option7 = new Option("Aqua", "aqua")
	option8 = new Option("Grey", "grey")
	option9 = new Option("Yellow", "yellow")
	option10 = new Option("Beige", "beige")
	option11 = new Option("Purple", "purple")
	option12 = new Option("Multi", "multi")
	option13 = new Option("Brown", "brown")
	option14 = new Option("Other", "other")
   
   // write them
    document.form2.fieldB.options[0] = option0
    document.form2.fieldB.options[1] = option1
    document.form2.fieldB.options[2] = option2
	document.form2.fieldB.options[3] = option3
	document.form2.fieldB.options[4] = option4
	document.form2.fieldB.options[5] = option5
    document.form2.fieldB.options[6] = option6
	document.form2.fieldB.options[7] = option7
	document.form2.fieldB.options[8] = option8
	document.form2.fieldB.options[9] = option9
	document.form2.fieldB.options[10] = option10
	document.form2.fieldB.options[11] = option11
	document.form2.fieldB.options[12] = option12
	document.form2.fieldB.options[13] = option13 
	document.form2.fieldB.options[14] = option14 
	return;
    }

  if (x == "56") { 
    /* set choices 1,2, 3, and 4 */ 
    option0 = new Option("  Please Select  ",0)
    option1 = new Option("Geometric", "geometric")
    option2 = new Option("Flowered", "flowered")
    option3 = new Option("Checkered", "checkered")
	option4 = new Option("Striped", "striped")
	option5 = new Option("Polka Dotted", "polka dotted")
	option6 = new Option("Paisley", "paisley")
	option7 = new Option("Hounds Tooth", "hounds tooth")
	option8 = new Option("Other", "other")
	
    // write them
    document.form2.fieldB.options[0] = option0
    document.form2.fieldB.options[1] = option1
    document.form2.fieldB.options[2] = option2
	document.form2.fieldB.options[3] = option3
	document.form2.fieldB.options[4] = option4
	document.form2.fieldB.options[5] = option5
    document.form2.fieldB.options[6] = option6
	document.form2.fieldB.options[7] = option7
	document.form2.fieldB.options[8] = option8
    return;
    }
	
	if (x == "78") { 
    /* set choices 1,2, 3, and 4 */ 
    option0 = new Option("  Please Select  ",0)
    option1 = new Option("Wooden Rings", "wooden rings")
    option2 = new Option("Metal Rings", "metal rings")
    option3 = new Option("Zippers", "zippers")
	option4 = new Option("Belts", "belts")
	option5 = new Option("Scarves", "scarves")
	option6 = new Option("Decals", "decals")
	option7 = new Option("Buttons", "buttons")
	option8 = new Option("Ribbons", "ribbons")
	option9 = new Option("Cords", "cords")
	option10 = new Option("Embroidery", "embroidery")
	option11 = new Option("Other", "other")
	
    // write them
     document.form2.fieldB.options[0] = option0
    document.form2.fieldB.options[1] = option1
    document.form2.fieldB.options[2] = option2
	document.form2.fieldB.options[3] = option3
	document.form2.fieldB.options[4] = option4
	document.form2.fieldB.options[5] = option5
    document.form2.fieldB.options[6] = option6
	document.form2.fieldB.options[7] = option7
	document.form2.fieldB.options[8] = option8
	document.form2.fieldB.options[9] = option9
	document.form2.fieldB.options[10] = option10
	document.form2.fieldB.options[11] = option11
    return;
    }


  if (x == "00") { 
    /* set choices to none */ 
    option0 = new Option("  None  ",0)
    option1 = new Option("",1)
    option2 = new Option("",2)
    option3 = new Option("",3)
    option4 = new Option("",4)
    // write them
    document.form2.fieldB.options[0] = option0
    document.form2.fieldB.options[1] = option1
    document.form2.fieldB.options[2] = option2
    document.form2.fieldB.options[3] = option3
    document.form2.fieldB.options[4] = option4
    return;
    } 
}

