Class Two product category JavaScript
Last Update:2017-02-28
Source: Internet
Author: User
JavaScript <script language= "JavaScript" >
var Onecount;
onecount=0;
subcat = new Array ();
Subcat[0] = new Array ("European", "furniture", "European");
SUBCAT[1] = new Array ("French", "Furniture", "French");
SUBCAT[2] = new Array ("Chinese", "furniture", "Chinese");
SUBCAT[3] = new Array ("antique", "furniture", "antique");
SUBCAT[4] = new Array ("Other", "furniture", "other");
SUBCAT[5] = new Array ("Buddha", "Religious offerings", "Buddha");
SUBCAT[6] = new Array ("Guanyin", "Religious offerings", "Kwan-Yin");
SUBCAT[7] = new Array ("Arhat", "Religious offerings", "Arhat");
SUBCAT[8] = new Array ("Guan Gong", "religious sacrificial articles", "Guan Gong");
SUBCAT[9] = new Array ("Mammon", "Religious offerings", "Mammon");
SUBCAT[10] = new Array ("Virgin", "Religious offerings", "Madonna");
SUBCAT[11] = new Array ("Jesus", "Religious offerings", "Jesus");
SUBCAT[12] = new Array ("Dharma", "religious offerings", "Dharma");
SUBCAT[13] = new Array ("beads", "religious offerings", "beads");
SUBCAT[14] = new Array ("Hand beads", "religious offerings", "Hand beads");
SUBCAT[15] = new Array ("Wooden fish", "religious offerings", "wooden fish");
SUBCAT[16] = new Array ("Incense Taiwan", "religious sacrificial articles", "Incense Taiwan");
SUBCAT[17] = new Array ("Lotus lamp", "religious sacrificial goods", "lotus lamp");
SUBCAT[18] = new Array ("Auspicious gourd", "religious sacrificial articles", "Auspicious gourd");
SUBCAT[19] = new Array ("Kwan-Yin Sign", "Religious sacrificial articles", "Kwan-yin Sign");
SUBCAT[20] = new Array ("shrines", "religious offerings", "shrines");
SUBCAT[21] = new Array ("God Tower", "religious offerings", "God Tower");
SUBCAT[22] = new Array ("Shou box", "Religious offerings", "Shou-box");
SUBCAT[23] = new Array ("Compass", "religious sacrificial goods", "Compass");
SUBCAT[24] = new Array ("Wooden Sword", "religious sacrificial goods", "wooden Sword");
SUBCAT[25] = new Array ("Other", "religious offerings", "other");
SUBCAT[26] = new Array ("Antique Doors and Windows", "Architectural decoration", "Antique Doors and windows");
SUBCAT[27] = new Array ("Wall", "Architectural decoration", "wall");
SUBCAT[28] = new Array ("screen", "Architectural decoration", "screen");
SUBCAT[29] = new Array ("Picture frame", "Architectural decoration", "picture frame");
SUBCAT[30] = new Array ("Door set", "Architectural decoration", "door cover");
SUBCAT[31] = new Array ("Post", "Architectural decoration", "door post");
SUBCAT[32] = new Array ("Wooden Ladder", "Architectural decoration", "wooden ladder");
SUBCAT[33] = new Array ("Flower plate", "Architectural decoration", "flower Plate");
SUBCAT[34] = new Array ("carved", "architectural decoration", "carved");
SUBCAT[35] = new Array ("Fireplace", "architectural decoration", "fireplace");
SUBCAT[36] = new Array ("Pillar", "Architectural decoration", "pillar");
SUBCAT[37] = new Array ("Lanterns", "Architectural decoration", "lanterns");
SUBCAT[38] = new Array ("Ox leg", "architectural ornament", "ox leg");
SUBCAT[39] = new Array ("Fish Head", "Architectural decoration", "Fish Head");
SUBCAT[40] = new Array ("Bar sill", "Architectural Decoration", "hurdle plate");
SUBCAT[41] = new Array ("Huabiao", "Architectural Decoration", "Huabiao");
SUBCAT[42] = new Array ("Other", "Architectural decoration", "other");
SUBCAT[43] = new Array ("character", "Display Craft Class", "character");
SUBCAT[44] = new Array ("Animal", "Display Craft class", "animal");
SUBCAT[45] = new Array ("Flowers and birds", "Display Craft class", "Flowers and birds");
SUBCAT[46] = new Array ("Landscape", "Display Craft class", "Landscape");
SUBCAT[47] = new Array ("Plant", "Display Craft class", "plant");
SUBCAT[48] = new Array ("seabed", "furnishings Craft Class", "seabed");
SUBCAT[49] = new Array ("Tea set", "Display Craft class", "tea Set");
SUBCAT[50] = new Array ("abstract", "Display Process class", "abstract");
SUBCAT[51] = new Array ("Other", "furnishings Process Class", "other");
SUBCAT[52] = new Array ("puppet", "Woodcarving toy", "puppet");
SUBCAT[53] = new Array ("Small hand Adorn", "woodcarving toy", "small hand adorn");
SUBCAT[54] = new Array ("Small pendant", "Wooden toy", "small pendant");
SUBCAT[55] = new Array ("headdress", "woodcarving toy", "headdress");
SUBCAT[56] = new Array ("Mask", "woodcarving toy", "mask");
SUBCAT[57] = new Array ("Christmas Class", "Woodcarving toy", "Christmas Class");
SUBCAT[58] = new Array ("Zodiac", "Woodcarving toy", "Zodiac");
SUBCAT[59] = new Array ("People", "woodcarving Toys", "characters");
SUBCAT[60] = new Array ("Other", "Woodcarving toy", "other");
SUBCAT[61] = new Array ("People", "root", "character");
SUBCAT[62] = new Array ("Flowers and birds", "root", "flowers and birds");
SUBCAT[63] = new Array ("Landscape", "root", "landscape");
SUBCAT[64] = new Array ("Plant", "root", "plant");
SUBCAT[65] = new Array ("Zodiac", "Root", "Zodiac");
SUBCAT[66] = new Array ("abstract", "root", "abstract");
SUBCAT[67] = new Array ("Legendary story", "Root", "legendary Story");
SUBCAT[68] = new Array ("Decoration", "root", "decoration");
SUBCAT[69] = new Array ("Other", "root", "other");
SUBCAT[70] = new Array ("Flat table", "Practical Appliance", "flat table");
SUBCAT[71] = new Array ("Tea table", "Practical Appliance", "tea Table");
SUBCAT[72] = new Array ("Fruit plate", "Practical appliance", "fruit plate");
SUBCAT[73] = new Array ("tableware", "utility", "tableware");
SUBCAT[74] = new Array ("Sofa", "utility", "sofa");
SUBCAT[75] = new Array ("Luminaire", "Utility", "luminaire");
SUBCAT[76] = new Array ("Vase", "Utility", "vase");
SUBCAT[77] = new Array ("Flower basket", "utility", "flower basket");
SUBCAT[78] = new Array ("pen", "utility", "pen");
SUBCAT[79] = new Array ("pen", "utility", "pen");
SUBCAT[80] = new Array ("Bookshelf", "utility", "bookshelf");
SUBCAT[81] = new Array ("Ashtray", "utility", "ashtray");
SUBCAT[82] = new Array ("Cane", "utility", "cane");
SUBCAT[83] = new Array ("Hanger", "utility", "hanger");
SUBCAT[84] = new Array ("Chess", "Utility", "Chess");
SUBCAT[85] = new Array ("Business Card Box", "Utility", "Business Card Box");
SUBCAT[133] = new Array ("Other", "utility", "other");
SUBCAT[87] = new Array ("Shen Tan", "sculpture material", "Shen Tan");
SUBCAT[88] = new Array ("Sandalwood", "sculpture material", "sandalwood");
SUBCAT[89] = new Array ("Green tan", "sculpture material", "green tan");
SUBCAT[90] = new Array ("Red tan", "sculpture material", "Red Tan");
SUBCAT[91] = new Array ("Ebony", "sculpture material", "ebony");
SUBCAT[92] = new Array ("Old Mahogany", "sculpture material", "Old Mahogany");
SUBCAT[93] = new Array ("Camphor wood", "sculpture material", "camphor wood");
SUBCAT[94] = new Array ("Phoebe", "sculpture material", "Phoebe");
SUBCAT[95] = new Array ("Huanghua pear", "sculpture material", "Huanghua pear");
SUBCAT[96] = new Array ("Chicken Wing Wood", "sculpture material", "Chicken wing wood");
SUBCAT[97] = new Array ("Lime wood", "carving material", "lime wood");
SUBCAT[98] = new Array ("White Wood", "sculpture material", "white Wood");
SUBCAT[99] = new Array ("Longan Wood", "sculpture material", "Longan wood");
SUBCAT[100] = new Array ("Yew", "sculpture material", "yew");
SUBCAT[101] = new Array ("Sakura", "sculpture material", "cherry wood");
SUBCAT[102] = new Array ("Boxwood", "sculpture material", "boxwood");
SUBCAT[103] = new Array ("Tree", "carving material", "tree");
SUBCAT[104] = new Array ("All kinds of wood root", "carving material", "all kinds of wood roots");
SUBCAT[105] = new Array ("Other", "sculpture material", "other");
SUBCAT[106] = new Array ("Mud Hammer", "carving tool", "Mud Hammer");
SUBCAT[107] = new Array ("Sculpture rack", "carving Tool", "sculpture Rack");
SUBCAT[108] = new Array ("Clay box", "Carving Tool", "Clay Box");
SUBCAT[109] = new Array ("calipers", "Carving Tools", "calipers");
SUBCAT[110] = new Array ("scraper", "carving tool", "scraper");
SUBCAT[111] = new Array ("Plastic Knife", "carving tool", "plastic Knife");
SUBCAT[112] = new Array ("Saw", "carving Tool", "saw");
SUBCAT[113] = new Array ("Wood Hammer", "carving Tool", "Wood Hammer");
SUBCAT[114] = new Array ("Iron Hammer", "carving Tool", "Iron Hammer");
SUBCAT[115] = new Array ("Oblique knife", "carving tool", "oblique knife");
SUBCAT[116] = new Array ("Triangular knife", "carving tool", "triangular knife");
SUBCAT[117] = new Array ("Flat knife", "carving Tool", "flat Knife");
SUBCAT[118] = new Array ("Round knife", "carving tool", "round Knife");
SUBCAT[119] = new Array ("Middle steel Knife", "carving Tool", "Medium kitchen Knife");
SUBCAT[120] = new Array ("Reverse Mouth knife", "carving tool", "Reverse mouth knife");
SUBCAT[121] = new Array ("Head cutter", "carving Tool", "head Cutter");
SUBCAT[122] = new Array ("Needle knife saws", "Carving Tools", "needle knife saws");
SUBCAT[123] = new Array ("Bamboo hairpin", "carving tool", "Bamboo Hairpin");
SUBCAT[124] = new Array ("Drag Drill", "carving Tool", "drag Drill");
SUBCAT[125] = new Array ("Other", "carving Tool", "other");
SUBCAT[126] = new Array ("Wine packaging", "Packaging category", "wine packaging");
SUBCAT[127] = new Array ("Food packaging", "Packaging class", "food packaging");
SUBCAT[128] = new Array ("Handicraft packaging", "Packaging class", "handicraft packaging");
SUBCAT[129] = new Array ("Other packaging", "Packaging class", "other packaging");
SUBCAT[130] = new Array ("Other", "other", "other");
SUBCAT[86] = new Array ("Pipe", "utility", "pipe");
SUBCAT[131] = new Array ("Inkstone", "Practical Appliance", "Inkstone");
SUBCAT[132] = new Array ("Comb", "utility", "comb");
onecount=134;
function Changelocation (LocationID)
{
document.myform.smalllocation.length = 0;
var Locationid=locationid;
var i;
Document.myform.smalllocation.options[0] = new Option (' = = small Category = = ', ');
For (i=0;i <onecount; i++)
{
if (subcat[i][1] = = LocationID)
{
Document.myform.smalllocation.options[document.myform.smalllocation.length]
= new Option (subcat[i][0], subcat[i][2]);
}
}
}
</script>
<form action= "" method= "Post" name= "MyForm" id= "MyForm" >
<select Onchange=changelocation (document.myform.biglocation.options[ Document.myform.biglocation.selectedindex].value) name=biglocation>
<option value= "" selected>== large category ==</option>
<option value= Furniture > Furniture </OPTION>
<option value= Religious offerings > Religious sacrificial articles </OPTION>
<option value= Architectural decoration > Architectural Decoration </OPTION>
<option value= Display Process > Display technology class </OPTION>
<option value= Wooden Toys > Wood carving Toys </OPTION>
<option value= root > Root </OPTION>
<option value= Practical Appliance > Practical Appliance </OPTION>
<option value= Carving materials > Carving Materials </OPTION>
<option value= Carving Tools > Carving Tools </OPTION>
<option value= "Packing Class" > Packing Class </OPTION>
<option value= "Other" > Other </OPTION>
</SELECT>
<select name=smalllocation>
<option value= "" selected>== Small category ==</option>
</select>
</form>