function aCatalog ( sId ,sProvince, sCity)
{
	this.sId = sId;
	this.sProvince = sProvince;
	this.sCity = sCity;
}

function AddOption (sText,sValue,obSelect2) 
{
	var newItem = document.createElement("OPTION") ;
	newItem.text =  sText ;
	newItem.value =  sText ;
	//newItem.value =  sValue ;
	document.getElementById(obSelect2).add(newItem);		
}

function DelOption (obSelect2) 
{
	var iLength = document.getElementById(obSelect2).options.length ;
	for ( var i = iLength - 1 ; i >= 0 ; i -- )
		document.getElementById(obSelect2).options[i]=null ;
}

function ChangeChild (value, sArray, obSelect2)
{	
	var i;
	DelOption(obSelect2);
	AddOption ("选择城市", "", obSelect2);
	
	for ( i = 0 ; i < sArray.length ; i ++ )
	{
		if ( sArray[i].sProvince == value )
		{
			AddOption (sArray[i].sCity,sArray[i].sId, obSelect2) ;
			
		}
	}
}

function Init(sArray, obSelect1, obSelect2)
{
        var s="";
        for ( i = 0 ; i < sArray.length-1; i ++ )
        {
          if( sArray[i].sProvince != s && sArray[i].sProvince != '')
        	{
        	        s=sArray[i].sProvince;
                	var newItem = document.createElement("OPTION") ;
                	newItem.text =  s;
                	newItem.value =  s;
                	document.getElementById(obSelect1).add(newItem);
			
        	}
        }
	ChangeChild(document.getElementById(obSelect1).value, sArray, obSelect2);
}

    var ArrayCatalog1 = new Array (

    new aCatalog('125','北京','北京'),

    new aCatalog('201','重庆','奉节'),
    new aCatalog('212','重庆','重庆'),
    new aCatalog('213','重庆','涪陵'),

    new aCatalog('','',''),
    
    new aCatalog('252','上海','上海'),
    
    new aCatalog('173','云南','昭通'),
    
    new aCatalog('174','云南','丽江'),
    
    new aCatalog('175','云南','曲靖'),
    
    new aCatalog('176','云南','保山'),
    
    new aCatalog('177','云南','大理白族自治州'),
    
    new aCatalog('178','云南','楚雄彝族自治州'),
    
    new aCatalog('179','云南','昆明'),
    
    new aCatalog('180','云南','瑞丽'),
    
    new aCatalog('181','云南','玉溪'),
    
    new aCatalog('182','云南','临沧'),
    
    new aCatalog('184','云南','思茅'),
    
    new aCatalog('185','云南','红河哈尼族彝族自治州'),
    
    new aCatalog('369','云南','文山壮族苗族自治州'),
    
    new aCatalog('370','云南','西双版纳傣族自治州'),
    
    new aCatalog('371','云南','德宏傣族景颇族自治州'),
    
    new aCatalog('372','云南','怒江傈傈族自治州'),
    
    new aCatalog('373','云南','迪庆藏族自治州'),
    
    new aCatalog('4','内蒙古','呼伦贝尔'),
    
    new aCatalog('7','内蒙古','兴安盟'),
    
    new aCatalog('16','内蒙古','锡林郭勒盟'),
    
    new aCatalog('63','内蒙古','巴彦淖尔盟'),
    
    new aCatalog('64','内蒙古','包头'),
    
    new aCatalog('69','内蒙古','呼和浩特'),
    
    new aCatalog('99','内蒙古','锡林浩特'),
    
    new aCatalog('101','内蒙古','通辽'),
    
    new aCatalog('106','内蒙古','赤峰'),
    
    new aCatalog('382','内蒙古','乌海'),
    
    new aCatalog('383','内蒙古','鄂尔多斯'),
    
    new aCatalog('384','内蒙古','乌兰察布盟'),
    
    
    new aCatalog('280','台湾','台北'),
    
    new aCatalog('34','吉林','辽源'),
    
    new aCatalog('36','吉林','通化'),
    
    new aCatalog('37','吉林','白城'),
    
    new aCatalog('96','吉林','松原'),
    
    new aCatalog('103','吉林','长春'),
    
    new aCatalog('104','吉林','吉林市'),
    
    new aCatalog('109','吉林','桦甸'),
    
    new aCatalog('110','吉林','延边朝鲜族自治州'),
    
    new aCatalog('118','吉林','集安'),
    
    new aCatalog('119','吉林','白山'),
    
    new aCatalog('385','吉林','四平'),
    
    new aCatalog('162','四川','甘孜藏族自治州'),
    
    new aCatalog('163','四川','阿坝藏族羌族自治州'),
    
    new aCatalog('166','四川','成都'),
    
    new aCatalog('167','四川','绵阳'),
    
    new aCatalog('168','四川','雅安'),
    
    new aCatalog('170','四川','峨眉山'),
    
    new aCatalog('171','四川','乐山'),
    
    new aCatalog('172','四川','宜宾'),
    
    new aCatalog('199','四川','巴中'),
    
    new aCatalog('200','四川','达州'),
    
    new aCatalog('204','四川','遂宁'),
    
    new aCatalog('205','四川','南充'),
    
    new aCatalog('216','四川','泸州'),
    
    new aCatalog('359','四川','自贡'),
    
    new aCatalog('360','四川','攀枝花'),
    
    new aCatalog('361','四川','德阳'),
    
    new aCatalog('362','四川','广元'),
    
    new aCatalog('363','四川','内江'),
    
    new aCatalog('364','四川','广安'),
    
    new aCatalog('366','四川','资阳'),
    
    new aCatalog('367','四川','凉山彝族自治州'),
    
    new aCatalog('127','天津','天津'),
    
    new aCatalog('132','天津','塘沽区'),
    
    new aCatalog('54','宁夏','石嘴山'),
    
    new aCatalog('78','宁夏','银川'),
    
    new aCatalog('83','宁夏','吴忠'),
    
    new aCatalog('209','宁夏','固原'),
    
    new aCatalog('75','安徽','淮南'),
    
    new aCatalog('76','安徽','马鞍山'),
    
    new aCatalog('77','安徽','淮北'),
    
    new aCatalog('92','安徽','铜陵'),
    
    new aCatalog('95','安徽','滁州'),
    
    new aCatalog('100','安徽','巢湖'),
    
    new aCatalog('102','安徽','池州'),
    
    new aCatalog('105','安徽','宣城'),
    
    new aCatalog('238','安徽','亳州'),
    
    new aCatalog('239','安徽','宿州'),
    
    new aCatalog('241','安徽','阜阳'),
    
    new aCatalog('242','安徽','六安'),
    
    new aCatalog('243','安徽','蚌埠'),
    
    new aCatalog('248','安徽','合肥'),
    
    new aCatalog('249','安徽','芜湖'),
    
    new aCatalog('253','安徽','安庆'),
    
    new aCatalog('254','安徽','黄山'),
    
    new aCatalog('134','山东','德州'),
    
    new aCatalog('135','山东','滨州'),
    
    new aCatalog('136','山东','烟台'),
    
    new aCatalog('139','山东','聊城'),
    
    new aCatalog('140','山东','济南'),
    
    new aCatalog('141','山东','泰安'),
    
    new aCatalog('142','山东','淄博'),
    
    new aCatalog('143','山东','潍坊'),
    
    new aCatalog('144','山东','青岛'),
    
    new aCatalog('146','山东','济宁'),
    
    new aCatalog('147','山东','日照'),
    
    new aCatalog('156','山东','泰山'),
    
    new aCatalog('159','山东','枣庄'),
    
    new aCatalog('160','山东','东营'),
    
    new aCatalog('164','山东','威海'),
    
    new aCatalog('165','山东','莱芜'),
    
    new aCatalog('183','山东','临沂'),
    
    new aCatalog('206','山东','菏泽'),
    
    new aCatalog('9','山西','长治'),
    
    new aCatalog('22','山西','晋中'),
    
    new aCatalog('70','山西','朔州'),
    
    new aCatalog('72','山西','大同'),
    
    new aCatalog('80','山西','吕梁'),
    
    new aCatalog('81','山西','忻州'),
    
    new aCatalog('84','山西','太原'),
    
    new aCatalog('85','山西','阳泉'),
    
    new aCatalog('88','山西','临汾'),
    
    new aCatalog('93','山西','运城'),
    
    new aCatalog('94','山西','晋城'),
    
    new aCatalog('381','山西','五台山'),
    
    new aCatalog('235','广东','南雄'),
    
    new aCatalog('283','广东','韶关'),
    
    new aCatalog('284','广东','清远'),
    
    new aCatalog('285','广东','梅州'),
    
    new aCatalog('291','广东','肇庆'),
    
    new aCatalog('292','广东','广州'),
    
    new aCatalog('293','广东','河源'),
    
    new aCatalog('294','广东','汕头'),
    
    new aCatalog('296','广东','深圳'),
    
    new aCatalog('297','广东','汕尾'),
    
    new aCatalog('300','广东','湛江'),
    
    new aCatalog('301','广东','阳江'),
    
    new aCatalog('302','广东','茂名'),
    
    new aCatalog('322','广东','佛冈'),
    
    new aCatalog('323','广东','梅县'),
    
    new aCatalog('324','广东','电白'),
    
    new aCatalog('325','广东','高要'),
    
    new aCatalog('330','广东','珠海'),
    
    new aCatalog('331','广东','佛山'),
    
    new aCatalog('332','广东','江门'),
    
    new aCatalog('333','广东','惠州'),
    
    new aCatalog('334','广东','东莞'),
    
    new aCatalog('335','广东','中山'),
    
    new aCatalog('336','广东','潮州'),
    
    new aCatalog('337','广东','揭阳'),
    
    new aCatalog('338','广东','云浮'),
    
    new aCatalog('232','广西','桂林'),
    
    new aCatalog('281','广西','河池'),
    
    new aCatalog('282','广西','柳州'),
    
    new aCatalog('288','广西','百色'),
    
    new aCatalog('289','广西','贵港'),
    
    new aCatalog('290','广西','梧州'),
    
    new aCatalog('295','广西','南宁'),
    
    new aCatalog('298','广西','钦州'),
    
    new aCatalog('299','广西','北海'),
    
    new aCatalog('339','广西','防城港'),
    
    new aCatalog('340','广西','玉林'),
    
    new aCatalog('341','广西','贺州'),
    
    new aCatalog('342','广西','来宾'),
    
    new aCatalog('343','广西','崇左'),
    
    new aCatalog('19','新疆','昌吉回族自治州'),
    
    new aCatalog('20','新疆','克孜勒苏柯尔克孜自治州'),
    
    new aCatalog('21','新疆','伊犁哈萨克自治州'),
    
    new aCatalog('23','新疆','阿拉尔'),
    
    new aCatalog('24','新疆','克拉玛依'),
    
    new aCatalog('27','新疆','博尔塔拉蒙古自治州'),
    
    new aCatalog('28','新疆','乌鲁木齐'),
    
    new aCatalog('31','新疆','吐鲁番'),
    
    new aCatalog('32','新疆','阿克苏'),
    
    new aCatalog('33','新疆','石河子'),
    
    new aCatalog('35','新疆','喀什'),
    
    new aCatalog('39','新疆','和田'),
    
    new aCatalog('41','新疆','哈密'),
    
    new aCatalog('52','新疆','奇台'),
    
    new aCatalog('43','江苏','无锡'),
    
    new aCatalog('44','江苏','苏州'),
    
    new aCatalog('45','江苏','盱眙'),
    
    new aCatalog('46','江苏','赣榆'),
    
    new aCatalog('47','江苏','东台'),
    
    new aCatalog('53','江苏','高邮'),
    
    new aCatalog('59','江苏','镇江'),
    
    new aCatalog('61','江苏','泰州'),
    
    new aCatalog('62','江苏','宿迁'),
    
    new aCatalog('236','江苏','徐州'),
    
    new aCatalog('237','江苏','连云港'),
    
    new aCatalog('240','江苏','淮安'),
    
    new aCatalog('244','江苏','南京'),
    
    new aCatalog('245','江苏','扬州'),
    
    new aCatalog('246','江苏','盐城'),
    
    new aCatalog('247','江苏','南通'),
    
    new aCatalog('250','江苏','常州'),
    
    new aCatalog('111','江西','庐山'),
    
    new aCatalog('137','江西','玉山'),
    
    new aCatalog('138','江西','贵溪'),
    
    new aCatalog('145','江西','广昌'),
    
    new aCatalog('153','江西','萍乡'),
    
    new aCatalog('154','江西','新余'),
    
    new aCatalog('224','江西','宜春'),
    
    new aCatalog('234','江西','赣州'),
    
    new aCatalog('258','江西','九江'),
    
    new aCatalog('259','江西','景德镇'),
    
    new aCatalog('264','江西','南昌'),
    
    new aCatalog('265','江西','鹰潭'),
    
    new aCatalog('267','江西','上饶'),
    
    new aCatalog('273','江西','抚州'),
    
    new aCatalog('3','河北','邯郸'),
    
    new aCatalog('8','河北','衡水'),
    
    new aCatalog('82','河北','石家庄'),
    
    new aCatalog('86','河北','邢台'),
    
    new aCatalog('120','河北','张家口'),
    
    new aCatalog('121','河北','承德'),
    
    new aCatalog('122','河北','秦皇岛'),
    
    new aCatalog('126','河北','廊坊'),
    
    new aCatalog('128','河北','唐山'),
    
    new aCatalog('130','河北','保定'),
    
    new aCatalog('131','河北','沧州'),
    
    new aCatalog('89','河南','安阳'),
    
    new aCatalog('188','河南','三门峡'),
    
    new aCatalog('189','河南','郑州'),
    
    new aCatalog('192','河南','南阳'),
    
    new aCatalog('193','河南','周口'),
    
    new aCatalog('197','河南','驻马店'),
    
    new aCatalog('198','河南','信阳'),
    
    new aCatalog('207','河南','开封'),
    
    new aCatalog('228','河南','洛阳'),
    
    new aCatalog('231','河南','平顶山'),
    
    new aCatalog('251','河南','焦作'),
    
    new aCatalog('260','河南','鹤壁'),
    
    new aCatalog('304','河南','新乡'),
    
    new aCatalog('305','河南','濮阳'),
    
    new aCatalog('306','河南','许昌'),
    
    new aCatalog('307','河南','漯河'),
    
    new aCatalog('308','河南','商丘'),
    
    new aCatalog('309','河南','济源'),
    
    new aCatalog('65','浙江','湖州'),
    
    new aCatalog('66','浙江','嵊州'),
    
    new aCatalog('67','浙江','平湖'),
    
    new aCatalog('68','浙江','石浦'),
    
    new aCatalog('71','浙江','宁海'),
    
    new aCatalog('73','浙江','洞头'),
    
    new aCatalog('74','浙江','舟山'),
    
    new aCatalog('255','浙江','杭州'),
    
    new aCatalog('256','浙江','嘉兴'),
    
    new aCatalog('261','浙江','金华'),
    
    new aCatalog('262','浙江','绍兴'),
    
    new aCatalog('263','浙江','宁波'),
    
    new aCatalog('266','浙江','衢州'),
    
    new aCatalog('268','浙江','丽水'),
    
    new aCatalog('269','浙江','台州'),
    
    new aCatalog('272','浙江','温州'),
    
    new aCatalog('303','海南','海口'),
    
    new aCatalog('344','海南','三亚'),
    
    new aCatalog('345','海南','屯昌'),
    
    new aCatalog('346','海南','琼海'),
    
    new aCatalog('347','海南','儋州'),
    
    new aCatalog('348','海南','文昌'),
    
    new aCatalog('349','海南','万宁'),
    
    new aCatalog('350','海南','东方'),
    
    new aCatalog('351','海南','澄迈'),
    
    new aCatalog('352','海南','定安'),
    
    new aCatalog('353','海南','临高'),
    
    new aCatalog('354','海南','白沙黎族自治县昌'),
    
    new aCatalog('355','海南','乐东黎族自治县'),
    
    new aCatalog('356','海南','陵水黎族自治县'),
    
    new aCatalog('357','海南','保亭黎族苗族自治县'),
    
    new aCatalog('358','海南','琼中黎族苗族自治县'),
    
    new aCatalog('196','湖北','襄樊'),
    
    new aCatalog('202','湖北','荆门'),
    
    new aCatalog('203','湖北','黄冈'),
    
    new aCatalog('208','湖北','恩施土家族苗族自治州'),
    
    new aCatalog('211','湖北','武汉'),
    
    new aCatalog('270','湖北','麻城'),
    
    new aCatalog('310','湖北','黄石'),
    
    new aCatalog('314','湖北','鄂州'),
    
    new aCatalog('315','湖北','孝感'),
    
    new aCatalog('316','湖北','咸宁'),
    
    new aCatalog('317','湖北','随州'),
    
    new aCatalog('318','湖北','仙桃'),
    
    new aCatalog('319','湖北','天门'),
    
    new aCatalog('320','湖北','潜江'),
    
    new aCatalog('321','湖北','神农架'),
    
    new aCatalog('386','湖北','枣阳'),
    
    new aCatalog('214','湖南','张家界'),
    
    new aCatalog('215','湖南','岳阳'),
    
    new aCatalog('217','湖南','怀化'),
    
    new aCatalog('218','湖南','长沙'),
    
    new aCatalog('222','湖南','邵阳'),
    
    new aCatalog('223','湖南','益阳'),
    
    new aCatalog('233','湖南','郴州'),
    
    new aCatalog('311','湖南','桑植'),
    
    new aCatalog('312','湖南','沅陵'),
    
    new aCatalog('313','湖南','南岳'),
    
    new aCatalog('326','湖南','株洲'),
    
    new aCatalog('327','湖南','湘潭'),
    
    new aCatalog('328','湖南','衡阳'),
    
    new aCatalog('329','湖南','娄底'),
    
    new aCatalog('387','湖南','常德'),
    
    new aCatalog('2','澳门','澳门'),
    
    new aCatalog('49','甘肃','张掖'),
    
    new aCatalog('50','甘肃','金昌'),
    
    new aCatalog('51','甘肃','武威'),
    
    new aCatalog('57','甘肃','兰州'),
    
    new aCatalog('58','甘肃','白银'),
    
    new aCatalog('60','甘肃','定西'),
    
    new aCatalog('90','甘肃','平凉'),
    
    new aCatalog('91','甘肃','庆阳'),
    
    new aCatalog('225','甘肃','甘南'),
    
    new aCatalog('229','甘肃','临夏'),
    
    new aCatalog('377','甘肃','天水'),
    
    new aCatalog('378','甘肃','嘉峪关'),
    
    new aCatalog('379','甘肃','酒泉'),
    
    new aCatalog('380','甘肃','陇南'),
    
    new aCatalog('107','福建','莆田'),
    
    new aCatalog('271','福建','浦城'),
    
    new aCatalog('274','福建','南平'),
    
    new aCatalog('275','福建','宁德'),
    
    new aCatalog('276','福建','福州'),
    
    new aCatalog('277','福建','龙岩'),
    
    new aCatalog('278','福建','三明'),
    
    new aCatalog('279','福建','泉州'),
    
    new aCatalog('286','福建','漳州'),
    
    new aCatalog('287','福建','厦门'),
    
    new aCatalog('148','西藏','那曲'),
    
    new aCatalog('149','西藏','日喀则'),
    
    new aCatalog('150','西藏','拉萨'),
    
    new aCatalog('151','西藏','山南'),
    
    new aCatalog('152','西藏','阿里'),
    
    new aCatalog('161','西藏','昌都'),
    
    new aCatalog('169','西藏','林芝'),
    
    new aCatalog('219','贵州','毕节'),
    
    new aCatalog('220','贵州','遵义'),
    
    new aCatalog('221','贵州','铜仁'),
    
    new aCatalog('226','贵州','安顺'),
    
    new aCatalog('227','贵州','贵阳'),
    
    new aCatalog('230','贵州','黔西南布依族苗族自治州'),
    
    new aCatalog('368','贵州','六盘水'),
    
    new aCatalog('25','辽宁','葫芦岛'),
    
    new aCatalog('26','辽宁','盘锦'),
    
    new aCatalog('29','辽宁','辽阳'),
    
    new aCatalog('30','辽宁','铁岭'),
    
    new aCatalog('108','辽宁','阜新'),
    
    new aCatalog('112','辽宁','朝阳'),
    
    new aCatalog('113','辽宁','锦州'),
    
    new aCatalog('114','辽宁','鞍山'),
    
    new aCatalog('115','辽宁','沈阳'),
    
    new aCatalog('116','辽宁','本溪'),
    
    new aCatalog('117','辽宁','抚顺'),
    
    new aCatalog('123','辽宁','营口'),
    
    new aCatalog('124','辽宁','丹东'),
    
    new aCatalog('129','辽宁','瓦房店'),
    
    new aCatalog('133','辽宁','大连'),
    
    
    
    
    new aCatalog('79','陕西','榆林'),
    
    new aCatalog('87','陕西','延安'),
    
    new aCatalog('186','陕西','西安'),
    
    new aCatalog('187','陕西','渭南'),
    
    new aCatalog('190','陕西','汉中'),
    
    new aCatalog('191','陕西','商洛'),
    
    new aCatalog('194','陕西','安康'),
    
    new aCatalog('374','陕西','铜川'),
    
    new aCatalog('375','陕西','宝鸡'),
    
    new aCatalog('376','陕西','咸阳'),
    
    new aCatalog('48','青海','海北藏族自治州'),
    
    new aCatalog('55','青海','海南藏族自治州'),
    
    new aCatalog('56','青海','西宁'),
    
    new aCatalog('155','青海','玉树藏族自治州'),
    
    new aCatalog('157','青海','黄南藏族自治州'),
    
    new aCatalog('158','青海','果洛藏族自治州'),
    
    new aCatalog('195','青海','海西蒙古族藏族自治州'),
    
    new aCatalog('210','青海','海东'),
    
    new aCatalog('1','香港','香港'),
    
    new aCatalog('5','黑龙江','大兴安岭'),
    
    new aCatalog('6','黑龙江','黑河'),
    
    new aCatalog('10','黑龙江','齐齐哈尔'),
    
    new aCatalog('11','黑龙江','绥化'),
    
    new aCatalog('12','黑龙江','鹤岗'),
    
    new aCatalog('13','黑龙江','佳木斯'),
    
    new aCatalog('14','黑龙江','伊春'),
    
    new aCatalog('15','黑龙江','双鸭山'),
    
    new aCatalog('17','黑龙江','哈尔滨'),
    
    new aCatalog('18','黑龙江','鸡西'),
    
    new aCatalog('38','黑龙江','漠河'),
    
    new aCatalog('40','黑龙江','大庆'),
    
    new aCatalog('42','黑龙江','七台河'),
    
    new aCatalog('97','黑龙江','牡丹江'),
    
    new aCatalog('98','黑龙江','绥芬河'),
    new aCatalog ('0', '0','0')
);
