﻿// JScript 文件
var com;

if(!com)
{
  com=new Object();
}

if(!com.worldltr)
{
  com.worldltr=new Object();
}

com.worldltr.ProductList=function()
{
}

com.worldltr.ProductAttribute=new Array();


com.worldltr.ProductAttribute=
[
[535,534,'箱包/手袋/皮具（成品）'],[540,535,'男女款'],[567,540,'女款'], [568,540,'男款'],[566,540,'通用'],[541,535,'主要材质'],[569,541,'牛皮'],[570,541,'羊皮'],[571,541,' 猪皮'],[572,541,'马皮'],[573,541,'其他动物皮'],[574,541,'合成真皮革'],[575,541,'PU人造革 '],[576,541,'PVC人造革'],[577,541,'其他人造革'],[578,541,'牛津布'],[579,541,'棉类'], [580,541,'麻类'],[581,541,'混纺类'],[582,541,'毛绒'],[583,541,'丝绸'],[584,541,'针织'],[585,541,'无纺布'],[586,541,'化纤'],[587,541,'纸质'],[588,541,'塑料'], [589,541,'其他'],[542,535,'风格'],[590,542,'日韩一族'],[591,542,'甜美淑女'], [592,542,'运动休闲'],[593,542,'职业正式'],[594,542,'刺绣卡通'],[595,542,'隆重精致'], [596,542,'其他'],[543,535,'批发价范围'],[597,543,'0-50'],[598,543,'50-100'], [599,543,'100-150'],[600,543,'150-200'],[601,543,'200-300'], [602,543,'300-400'],[603,543,'400-500'],[604,543,'500以上'],[536,534,'箱包/手袋/皮具（面料）'],[544,536,'工序'],[626,544,'成品面料'],[627,544,'半成品革'],[545,536,'批发价范围'],[628,545,'0-100'],[629,545,'100-300'],[630,545,'300-500'], [631,545,'500-800'],[632,545,'800-1000'],[633,545,'1000以上'],[537,534,'箱包 /手袋/皮具（辅料）'],[546,537,'里料'],[644,546,'涤纶'],[645,546,'氨纶'],[646,546,'尼龙 '],[647,546,'棉布'],[648,546,'其他'],[538,534,'箱包/手袋/皮具（五金配件）'],[547,538,'材质 '],[664,547,'钢'],[665,547,'铁'],[666,547,'铜'],[667,547,'锌合金'],[668,547,'铝合金'],[669,547,'橡胶'],[670,547,'塑料'],[671,547,'尼龙'],[674,547,'宝石类'], [675,547,'其他'],[539,534,'箱包/手袋/皮具（加工机械）'],[676,534,'发布时间'],[678,676,'当天 '],[679,676,'三天'],[680,676,'一周'],[681,676,'半个月内'],[682,676,'一个月内'], [677,534,'会员类型'],[683,677,'世贸通会员'],[684,677,'世贸通试用会员']
];


com.worldltr.Area=new Array();
com.worldltr.Area=
[
[2,1,'北京市 '],[3,2,'北京市 '],[4,2,'平谷县 '],[5,2,'怀柔县 '],[6,2,'延庆县 '],[7,2,'门头沟区 '],[8,2,'燕山区 '],[9,2,'通县 '],[10,2,'顺义县 '],[11,2,'密云县 '],[12,2,'昌平县 '],[13,2,'房山区 '],[14,2,'大兴县 '],[15,1,'上海市 '],[16,15,'上海市 '],[17,15,'上海县 '],[18,15,'南汇县 '],[19,15,'金山县 '],[20,15,'青浦县 '],[21,15,'宝山县 '],[22,15,'近郊区 '],[23,15,'川沙县 '],[24,15,'奉贤县 '],[25,15,'松江县 '],[26,15,'嘉定县 '],[27,15,'崇明县 '],[28,1,'天津市 '],[29,28,'天津市 '],[30,28,'塘沽 '],[31,28,'汉沽 '],[32,28,'宁河县 '],[33,28,'宝坻县 '],[34,28,'大港区 '],[35,28,'静海县 '],[36,28,'武清县 '],[37,1,'内蒙古 '],[38,37,'呼和浩特市 '],[39,37,'集宁市 '],[40,37,'二连浩特市 '],[41,37,'包头市 '],[42,37,'临河市 '],[43,37,'乌海市 '],[44,37,'东胜市 '],[45,37,'海拉尔市 '],[46,37,'满洲里市 '],[47,37,'牙克石市 '],[48,37,'赤峰市 '],[49,37,'锡林浩特市 '],[50,37,'乌兰浩特市 '],[51,37,' 通辽市 '],[52,37,'霍林郭勒市 '],[53,37,'扎兰屯市 '],[54,1,'山西省 '],[55,54,'太原市 '],[56,54,'榆次市 '],[57,54,'忻州市 '],[58,54,'大同市 '],[59,54,'临汾市 '],[60,54,'侯马市 '],[61,54,'运城市 '],[62,54,'阳泉市 '],[63,54,'长治市 '],[64,54,'晋城市 '],[65,1,'河北省 '],[66,65,'石家庄市 '],[67,65,'南宫市 '],[68,65,'辛集市 '],[69,65,'衡水市 '],[70,65,'邢台市 '],[71,65,'沙河市 '],[72,65,'邯郸市 '],[73,65,'沧州市 '],[74,65,'泊头市 '],[75,65,'任丘市 '],[76,65,'唐山市 '],[77,65,'秦皇岛市 '],[78,65,'北戴河 '],[79,65,'承德市 '],[80,65,'保定市 '],[81,65,'涿州市 '],[82,65,'定州市 '],[83,65,'张家口市 '],[84,65,'廊坊市 '],[85,1,'辽宁省 '],[86,85,'沈阳市 '],[87,85,'辽阳市 '],[88,85,'铁岭市 '],[89,85,'铁法市 '],[90,85,'抚顺市 '],[91,85,'鞍山市 '],[92,85,'海城市 '],[93,85,'营口市 '],[94,85,'大连市 '],[95,85,'瓦房店市 '],[96,85,'本溪市 '],[97,85,'丹东市 '],[98,85,'锦州市 '],[99,85,'锦西市 '],[100,85,'兴城市 '],[101,85,'朝阳市 '],[102,85,'北票市 '],[103,85,'阜新市 '],[104,85,'盘锦市 '],[105,1,'吉林省 '],[106,105,'长春市 '],[107,105,'扶余市 '],[108,105,'吉林市 '],[109,105,'桦甸市 '],[110,105,'延吉市 '],[111,105,'图门市 '],[112,105,'龙井市 '],[113,105,'敦化市 '],[114,105,'通化市 '],[115,105,'集安市 '],[116,105,'浑江市 '],[117,105,'梅河口市 '],[118,105,'四平市 '],[119,105,'公主岭市 '],[120,105,'辽源市 '],[121,105,'白城市 '],[122,105,'洮南市 '],[123,1,'黑龙江省 '],[124,123,'哈尔滨市 '],[125,123,'阿城市 '],[126,123,'肇东市 '],[127,123,'绥化市 '],[128,123,'伊春市 '],[129,123,'佳木斯市 '],[130,123,'鹤岗市 '],[131,123,'七台河市 '],[132,123,'双鸭市 '],[133,123,'同江市 '],[134,123,'牡丹江市 '],[135,123,'绥汾河市 '],[136,123,'鸡西市 '],[137,123,'大庆市 '],[138,123,'北安市 '],[139,123,'齐齐哈尔市 '],[140,123,'黑河市 '],[141,123,'五大连池市 '],[142,1,'江苏省 '],[143,142,'南京市 '],[144,142,'仪征市 '],[145,142,'镇江市 '],[146,142,'丹阳市 '],[147,142,'常州市 '],[148,142,'无锡市 '],[149,142,'宜兴市 '],[150,142,'江阴市 '],[151,142,'苏州市 '],[152,142,'常熟市 '],[153,142,'徐州市 '],[154,142,'连云港市 '],[155,142,'淮阴市 '],[156,142,'淮安市 '],[157,142,'宿迁市 '],[158,142,'盐城市 '],[159,142,'东台市 '],[160,142,'扬州市 '],[161,142,'泰州市 '],[162,142,'兴化市 '],[163,142,'南通市 '],[451,142,'吴江市 '],[164,1,'安徽省 '],[165,164,'合肥市 '],[166,164,'淮南市 '],[167,164,'蚌埠市 '],[168,164,'宿州市 '],[169,164,'淮北市 '],[170,164,'阜阳市 '],[171,164,'毫州市 '],[172,164,'六安市 '],[173,164,'巢湖市 '],[174,164,'滁州市 '],[175,164,'芜湖市 '],[176,164,'宣州市 '],[177,164,'黄山市 '],[178,164,'马鞍山市 '],[179,164,'铜陵市 '],[180,164,'黄山市 '],[181,164,'安庆市 '],[182,1,'山东省 '],[183,182,'济南市 '],[184,182,'聊城市 '],[185,182,'临清市 '],[186,182,'德州市 '],[187,182,'淄博市 '],[188,182,'滨州市 '],[189,182,'东营市 '],[190,182,'潍坊市 '],[191,182,'诸城市 '],[192,182,'青州市 '],[193,182,'烟台市 '],[194,182,'威海市 '],[195,182,'青岛市 '],[196,182,'泰安市 '],[197,182,'莱芜市 '],[198,182,'新泰市 '],[199,182,'济宁市 '],[200,182,'曲阜市 '],[201,182,'荷泽市 '],[202,182,'临沂市 '],[203,182,'日照市 '],[204,182,'枣庄市 '],[205,182,'藤州市 '],[449,182,'寿光市 '],[206,1,'浙江省 '],[207,206,'杭州市 '],[208,206,'萧山市 '],[209,206,'绍兴市 '],[210,206,'湖州市 '],[211,206,'嘉兴市 '],[212,206,'海宁市 '],[213,206,'宁波市 '],[214,206,'余姚市 '],[215,206,'舟山市 '],[216,206,'临海市 '],[217,206,'椒江市 '],[218,206,'金华市 '],[219,206,'兰溪市 '],[220,206,'丽水市 '],[221,206,'衙州市 '],[222,206,'江山市 '],[223,206,'温州市 '],[224,206,'义乌市 '],[225,206,'东阳市 '],[226,206,'瑞安市 '],[447,206,'上虞市 '],[448,206,'桐乡市 '],[452,206,'昆山市 '],[454,206,'乐清市 '],[458,206,'台州市 '],[227,1,'江西省 '],[228,227,'南昌市 '],[229,227,'九江市 '],[230,227,'景德镇市 '],[231,227,'上饶市 '],[232,227,'鹰潭市 '],[233,227,'伊春市 '],[234,227,'新余市 '],[235,227,'萍乡市 '],[236,227,'赣州市 '],[237,227,'吉安市 '],[238,227,'井冈山市 '],[239,227,'抚州市 '],[240,227,'临川市 '],[241,1,'福建省 '],[242,241,'福州市 '],[243,241,'莆田市 '],[244,241,'南平市 '],[245,241,'邵武市 '],[246,241,'厦门市 '],[247,241,'泉州市 '],[248,241,'石狮市 '],[249,241,'漳州市 '],[250,241,'龙岩市 '],[251,241,'三明市 '],[252,241,'永安市 '],[456,241,'晋江市 '],[253,1,'湖南省 '],[254,253,'长沙市 '],[255,253,'湘潭市 '],[256,253,'湘乡市 '],[257,253,'株洲市 '],[258,253,'益阳市 '],[259,253,'岳阳市 '],[260,253,'汨罗市 '],[261,253,'常德市 '],[262,253,'津市市 '],[263,253,'吉首市 '],[264,253,'大庸市 '],[265,253,'娄底市 '],[266,253,'连源市 '],[267,253,'冷水江市 '],[268,253,'怀化市 '],[269,253,'洪江市 '],[270,253,'衡阳市 '],[271,253,'来阳市 '],[272,253,'邵阳市 '],[273,253,'郴州市 '],[274,253,'永州市 '],[275,253,'冷水滩市 '],[276,1,'湖北省 '],[277,276,'武汉市 '],[278,276,'麻城市 '],[279,276,'天门市 '],[280,276,'孝感市 '],[281,276,'应城市 '],[282,276,'安陆市 '],[283,276,'仙桃市 '],[284,276,'洪湖市 '],[285,276,'沙市市 '],[286,276,'石首市 '],[287,276,'荆门市 '],[288,276,'黄石市 '],[289,276,'鄂州市 '],[290,276,'武穴市 '],[291,276,'咸宁市 '],[292,276,'襄樊市 '],[293,276,'蒲昕市 '],[294,276,'随州市 '],[295,276,'老河口市 '],[296,276,'丹江口市 '],[297,276,'十堰市 '],[298,276,'宜昌市 '],[299,276,'枝城市 '],[300,276,'恩施市 '],[301,276,'利川市 '],[302,1,'河南省 '],[303,302,'郑州市 '],[304,302,'新乡市 '],[305,302,'焦作市 '],[306,302,'安阳市 '],[307,302,'鹤壁市 '],[308,302,'濮阳市 '],[309,302,'许昌市 '],[310,302,'缧河市 '],[311,302,'驻马店市 '],[312,302,'信阳市 '],[313,302,'周口市 '],[314,302,'平顶山市 '],[315,302,'洛阳市 '],[316,302,'三门 峡市 '],[317,302,'义马市 '],[318,302,'南阳市 '],[319,302,'开封市 '],[320,302,'商丘市 '],[450,302,'卫辉市 '],[321,1,'广东省 '],[322,321,'广州市 '],[323,321,'清远市 '],[324,321,'东莞市 '],[325,321,'韶关市 '],[326,321,'梅州市 '],[327,321,'汕头市 '],[328,321,'潮州市 '],[329,321,'惠州市 '],[330,321,'汕尾市 '],[331,321,'河源市 '],[332,321,'深圳市 '],[333,321,'湛江市 '],[334,321,'茂名市 '],[335,321,'肇庆市 '],[336,321,'佛山市 '],[337,321,'中山市 '],[338,321,'江门市 '],[339,321,'阳江市 '],[453,321,'珠海市 '],[455,321,'揭阳市 '],[457,321,'云浮市 '],[340,1,'海南省 '],[341,340,'海口市 '],[342,340,'三亚市 '],[343,340,'通什市 '],[344,1,'广西省 '],[345,344,'南宁市 '],[346,344,'凭祥市 '],[347,344,'百色市 '],[348,344,'钦州市 '],[349,344,'北海市 '],[350,344,'玉林市 '],[351,344,'桂林市 '],[352,344,'梧州市 '],[353,344,'柳州市 '],[354,344,'台山市 '],[355,344,'河池市 '],[356,1,'贵州省 '],[357,356,'贵阳市 '],[358,356,'六盘水市 '],[359,356,'铜仁市 '],[360,356,'凯里市 '],[361,356,'都匀市 '],[362,356,'安顺市 '],[363,356,'兴义市 '],[364,356,'遵义市 '],[365,356,'赤水市 '],[366,1,'四川省 '],[367,366,'成都市 '],[368,366,'乐山市 '],[369,366,'西昌市 '],[370,366,'攀枝花市 '],[371,366,'得阳市 '],[372,366,'绵阳市 '],[373,366,'雅安市 '],[374,366,'广元市 '],[375,366,'遂宁市 '],[377,366,'万县市 '],[378,366,'达县市 '],[379,366,'南充市 '],[380,366,'华鉴市 '],[381,366,'内江市 '],[382,366,'自贡市 '],[383,366,'宜宾市 '],[384,366,'泸州市 '],[385,366,'涪陵市 '],[376,1,'重庆市 '],[459,376,'重庆市 '],[386,1,'云南省 '],[387,386,'昆明市 '],[388,386,'东川市 '],[389,386,'曲靖市 '],[390,386,'照通市 '],[391,386,'开远市 '],[392,386,'个旧市 '],[393,386,'大理市 '],[394,386,'楚雄市 '],[395,386,'宝山市 '],[396,1,'陕西省 '],[397,396,'西安市 '],[398,396,'咸阳市 '],[399,396,'渭南市 '],[400,396,'韩城市 '],[401,396,'延安市 '],[402,396,'宝鸡市 '],[403,396,'汉中市 '],[404,396,'铜川市 '],[405,1,'甘肃省 '],[406,405,'兰州市 '],[407,405,'白银市 '],[408,405,'临夏市 '],[409,405,'武威市 '],[410,405,'张掖市 '],[411,405,'酒泉市 '],[412,405,'嘉峪关市 '],[413,405,'玉门市 '],[414,405,'金昌市 '],[415,405,'天水市 '],[416,405,'平凉市 '],[417,405,'西峰市 '],[418,1,'宁夏 '],[419,418,'银川市 '],[420,418,'吴忠市 '],[421,418,'青铜峡市 '],[422,418,'石嘴山市 '],[423,1,'青海省 '],[424,423,'西宁市 '],[425,423,'格尔木市 '],[426,423,'德令哈市 '],[427,1,'新疆 '],[428,427,'乌鲁木齐市 '],[429,427,'昌吉市 '],[430,427,'石河子市 '],[431,427,'奎屯市 '],[432,427,'博乐市 '],[433,427,'克拉玛依市 '],[434,427,'塔城市 '],[435,427,'伊宁市 '],[436,427,'阿勒泰市 '],[437,427,'吐鲁番市 '],[438,427,'哈密市 '],[439,427,'库尔勒市 '],[440,427,'阿克苏市 '],[441,427,'喀什市 '],[442,427,'阿图什市 '],[443,427,'和田市 '],[444,1,'西藏 '],[445,444,'拉萨市 '],[446,444,'日喀则市 '],[460,1,'香港特别行政区 '],[462,460,'香港特别行政区 '],[461,1,'澳门特别行政区 '],[463,461,'澳门特别行政区 ']
];

com.worldltr.ProductList.$=function(element)
{
  return document.getElementById(element);
  
}



com.worldltr.ProductList.Init=function()
{
   var PatternList=com.worldltr.ProductList.$("PatternList");
   PatternList.options.add(new Option("男女款","0"));
   var ProductMaterialList=com.worldltr.ProductList.$("ProductMaterialList");
   ProductMaterialList.options.add(new Option("主要材质","0"));
   var StyleList=com.worldltr.ProductList.$("StyleList");
   StyleList.options.add(new Option("风格","0"));
   var ProductPriceList=com.worldltr.ProductList.$("ProductPriceList");
   ProductPriceList.options.add(new Option("批发价格范围","0"));
   var ProcessList=com.worldltr.ProductList.$("ProcessList");
   ProcessList.options.add(new Option("工序","0"));
   var MaterialPriceList=com.worldltr.ProductList.$("MaterialPriceList");
   MaterialPriceList.options.add(new Option("批发价格范围","0"));
   var InnerMaterialList=com.worldltr.ProductList.$("InnerMaterialList");
   InnerMaterialList.options.add(new Option("里料","0"));
   var HardWareMaterialList=com.worldltr.ProductList.$("HardWareMaterialList");
   HardWareMaterialList.options.add(new Option("材质","0"));
   var IssueTimeList=com.worldltr.ProductList.$("IssueTimeList");
   IssueTimeList.options.add(new Option("发布时间","0"));
   var MemberList=com.worldltr.ProductList.$("MemberList");
   MemberList.options.add(new Option("会员类型","0"));
   var ProvinceList=com.worldltr.ProductList.$("ProvinceList");
   ProvinceList.options.add(new Option("所有省份","0"));
   
   
   for(var i=0;i<com.worldltr.ProductAttribute.length;i++)
   {
      var li=new Option(com.worldltr.ProductAttribute[i][2],com.worldltr.ProductAttribute[i][0]);
      if(com.worldltr.ProductAttribute[i][1]==540)
      {
        PatternList.options.add(li);  
      }
      if(com.worldltr.ProductAttribute[i][1]==541)
      {
        ProductMaterialList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==542)
      {
        StyleList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==543)
      {
        ProductPriceList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==544)
      {
        ProcessList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==545)
      {
        MaterialPriceList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==546)
      {
        InnerMaterialList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==547)
      {
        HardWareMaterialList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==676)
      {
        IssueTimeList.options.add(li);
      }
      if(com.worldltr.ProductAttribute[i][1]==677)
      {
        MemberList.options.add(li);
      }
      
   }
   for(var i=0;i<com.worldltr.Area.length;i++)
   {
      var li=new Option(com.worldltr.Area[i][2],com.worldltr.Area[i][0]);
      if(com.worldltr.Area[i][1]==1)
      {
         ProvinceList.options.add(li);  
      }
   }
}

com.worldltr.ProductList.AreaAction=function(value)
{
   var CityList=com.worldltr.ProductList.$("CityList");
   CityList.options.length=0;
   CityList.options.add(new Option("-所有城市-","0"));
   for(var i=0;i<com.worldltr.Area.length;i++)
   {
      if(com.worldltr.Area[i][1]==value)
      {
         var li=new Option(com.worldltr.Area[i][2],com.worldltr.Area[i][0]);
         CityList.options.add(li);
      }
   }
   
}

com.worldltr.ProductList.Show=function(value)
{
  
   var PatternList=com.worldltr.ProductList.$("PatternList");
   var ProductMaterialList=com.worldltr.ProductList.$("ProductMaterialList");
   var StyleList=com.worldltr.ProductList.$("StyleList");
   var ProductPriceList=com.worldltr.ProductList.$("ProductPriceList");
   var ProcessList=com.worldltr.ProductList.$("ProcessList");
   var MaterialPriceList=com.worldltr.ProductList.$("MaterialPriceList");
   var InnerMaterialList=com.worldltr.ProductList.$("InnerMaterialList");
   var HardWareMaterialList=com.worldltr.ProductList.$("HardWareMaterialList");
   
   
 
   if(value==86)
   {
      PatternList.style.display="";
      ProductMaterialList.style.display="";
      StyleList.style.display="";
      ProductPriceList.display="";
      ProcessList.style.display="none";
      MaterialPriceList.style.display="none";
      InnerMaterialList.style.display="none";
      HardWareMaterialList.style.display="none";
   }
   else if(value==87)
   {
      PatternList.style.display="none";
      ProductMaterialList.style.display="none";
      StyleList.style.display="none";
      ProductPriceList.style.display="none";
      ProcessList.style.display="";
      MaterialPriceList.style.display="";
      InnerMaterialList.style.display="none";
      HardWareMaterialList.style.display="none";
   }
   else if(value==88)
   {
      PatternList.style.display="none";
      ProductMaterialList.style.display="none";
      StyleList.style.display="none";
      ProductPriceList.style.display="none";
      ProcessList.style.display="none";
      MaterialPriceList.style.display="none";
      InnerMaterialList.style.display="";
      HardWareMaterialList.style.display="none";
   }
   else if(value==273)
   {
      PatternList.style.display="none";
      ProductMaterialList.style.display="none";
      StyleList.style.display="none";
      ProductPriceList.style.display="none";
      ProcessList.style.display="none";
      MaterialPriceList.style.display="none";
      InnerMaterialList.style.display="none";
      HardWareMaterialList.style.display="";
   }
   else
   {
      PatternList.style.display="none";
      ProductMaterialList.style.display="none";
      StyleList.style.display="none";
      ProductPriceList.style.display="none";
      ProcessList.style.display="none";
      MaterialPriceList.style.display="none";
      InnerMaterialList.style.display="none";
      HardWareMaterialList.style.display="none";
   }
}


