var LastCountry=new String;  
var LastProvince=new String;  
var LastCity=new String;      
var CountryStr=new String;
var ProvinceStr=new String;
var CityStr=new String;
var GetCountry;
var GetProvince;
var GetCity;
var LeftStr;
var mbegin;
var SourceStr;
var CurAddress;
var mm=0;
var AddStr;
var addtag=0;
var incCountry;
var incProvince;
var incCity;
//init province & city
var provincesel = document.form.provinceCN;
var citysel = document.form.cityCN;
// 记录初始加载值
AddStr="";
CountryStr=form.CountryListCN.value;
ProvinceStr=form.provinceCN.value;
CityStr=form.cityCN.value;
//alert ('');  
//LastCountry="";
//LastProvince="";
//LastCity=""
function getCurPC(provincename,cityname)
{
var i;
for(i=0;i<provinceCN.length;i++){
if(provinceCN[i].value == provincename)
{
provinceCN.selectedIndex=i;
changeAreaAndStatus(form.provinceCN);
break;
}
}
for(i=0;i<cityCN.length;i++){
if(cityCN[i].value==cityname)
{
cityCN.selectedIndex = i;
changeCity(form.cityCN);
changeStatus(citysel,'cityCNStatus');
break;
}
}
}
function Country(id,title,phone,hasProvince) {
this.id = id;
this.title=title;
this.phone=phone;
this.hasProvince=hasProvince;
this.boardlist=new Array();
this.addBoard=addBoard;
this.getOptions = getOptions;
}
function addBoard(board) {
this.boardlist = this.boardlist.concat(board);
}
function getOptions() {
var tmp = new Array();
for(var i=0; i < this.boardlist.length;i++) {
var b = this.boardlist[i];
tmp[i]= b.getOption();
}
return tmp;
}
function Board(country,provinceId,province) {
this.country=country;
this.province=province;
this.provinceId = provinceId;
this.getOption=getOption;
}
function getOption() {
if(this.country == "中国")
return new Option(this.province,this.provinceId);
return new Option(this.province,this.province);
}
function provincesList(countryName,provinceId,provinceName){
this.countryName = countryName;
this.provinceId = provinceId;
this.provinceName = provinceName;
this.provincesArr = new Array();
this.addProvinces = addProvinces;
this.getProvinces = getProvinces;
}
function AddressChange()
{
CurAddress=CountryStr+"·"+ProvinceStr+"·"+CityStr;
}
function addProvinces(province){
this.provincesArr = this.provincesArr.concat(province);
}
function getProvinces(){
var tmp = new Array();
for(var i = 0;i < this.provincesArr.length;i++){
var b = this.provincesArr[i];
tmp[i] = b;
}
return tmp;
}
function provinceCN(provinceName,capitalCityId,capitalCityName) {
this.provinceName = provinceName;
this.capitalCityId = capitalCityId;
this.capitalCityName = capitalCityName;
this.capitalCityArr = new Array();
this.addCity = addCity;
this.getCapitalCitys = getCapitalCitys;
}
function addCity(cityId,cityName) {
this.capitalCityArr = this.capitalCityArr.concat(new Option(cityName,cityId));
}
function getCapitalCitys() {
var tmp = new Array();
for(var i=0; i < this.capitalCityArr.length;i++) {
var b = this.capitalCityArr[i];
tmp[i]= b;
}
return tmp;
}
function changeCountry(list,selectFlag) {
if (mm==0)
LastCountry="";
else
LastCountry=CountryStr;
var selectIndex = list.selectedIndex;
if(selectFlag == "中国" || selectFlag == "hot" ) {
if(selectIndex == 0){
selectFlag = "中国"
}else if( selectIndex == 5 ){
selectFlag = "all";
selectIndex = 1;
}else{
selectFlag = "hot";
}
}else if(selectFlag == "all" ){
var cn = CountryArr[selectIndex-1].id;
if("中国" == cn) {
selectFlag = "中国";
selectIndex = 0;
}else if("中国香港" == cn || "中国台湾" == cn || "Singapore" == cn || "中国澳门" == cn){
selectFlag = "hot";
if("中国香港" == cn) {
selectIndex = 1;
}
if("中国台湾" == cn) {
selectIndex = 2;
}
if("中国澳门" == cn) {
selectIndex = 3;
}
if("Singapore" == cn) {
selectIndex = 4;
}
}else {
selectFlag = "all";
}
}
if ( selectFlag == "all" && selectIndex<=0) {
CountryForm.options[0].selected=true;
var len = boardForm.options.length;
for (var i=len-1;i>0;i--){
boardForm.options[i]=null;
}
}
else {
var countryname;
if("中国" == selectFlag){
countryname = CountryArrCN[selectIndex].id;
}else if ("hot" == selectFlag){
countryname = CountryArrHot[selectIndex].id;
}else {
countryname = CountryArr[selectIndex-1].id;
}
selectCountryList = selectFlag;
tb6.style.display="block";
form.notCNCity.value = "(城市)";
form.province2.value = "(省级地区)";
if("中国" == countryname) {
var provincecnSelected = provinceCN.selectedIndex;
var boardscn = CountryArrCN[selectIndex].getOptions();
for (var i=0;i< boardscn.length;i++) {
provinceCN.options[i+1] = boardscn[i];
if( provincecnSelected > 0 && (provincecnSelected == i+1 ) ) {
provinceCN.options[i+1].selected=true;
}
}
selectCountryList = "中国";
tb1.style.display="block";
tb2.style.display="none";
tb3.style.display="none";
tb4.style.display="none";
tb5.style.display="none";
tb6.style.display="none";
}else if("中国香港" == countryname || "中国台湾" == countryname || "Singapore" == countryname || "中国澳门"  == countryname) {
selectCountryList = "hot";
tb1.style.display="none";
tb2.style.display="block";
tb3.style.display="none";
tb4.style.display="none";
if("中国香港" == countryname || "中国台湾" == countryname || "中国澳门"  == countryname) {
tb5.style.display="none";
}else {
tb5.style.display="block";
}
}else {
var len = boardForm.options.length;
var boards = CountryArr[selectIndex-1].getOptions();
for (var i=len-1;i>0;i--){
boardForm.options[i]=null;
}
for (var i=0;i<boards.length;i++) {
boardForm.options[i+1]=boards[i];
}
if(CountryArr[selectIndex-1].hasProvince=="1") {
tb1.style.display="none";
tb2.style.display="none";
tb3.style.display="block";
tb4.style.display="block";
tb5.style.display="none";
} else if (CountryArr[selectIndex-1].hasProvince=="0"){
tb1.style.display="none";
tb2.style.display="none";
tb3.style.display="block";
tb4.style.display="none";
tb5.style.display="block";
} else {
tb1.style.display="none";
tb2.style.display="none";
tb3.style.display="block";
tb4.style.display="none";
tb5.style.display="none";
}
}
if(selectCountryList == "中国" || selectCountryList == "hot") {
CountryListCN.options[selectIndex].selected=true;
CountryListHot.options[selectIndex].selected=true;
}else {
CountryForm.options[selectIndex].selected=true;
}
changeAddress();
}
}
function selectBoard(country,bid) {
for(var i=0;i<CountryForm.length;i++) {
if (CountryForm.options[i].value==country) {
CountryForm.options[i].selected=true;
changeCountry(CountryForm);
break;
}
}
for(var i=0;i<boardForm.length;i++) {
if (boardForm.options[i].value==bid) {
boardForm.options[i].selected=true;
break;
}
}
}
function changeProvinceList(provinceList) {
if ( mm==0) 
LastProvince="";
else
LastProvince=ProvinceStr;
var index = provinceList.selectedIndex;
if(index <= 0) {
selectedProvinceName = "";
selectedCityName = "";
}
else {
var province = provinceList.options[index].value;
SelectProvinceId = province;
var len = provincesListArr.length;
var tmpProvincesList;
for(var i=0;i < len;i++){
tmpProvincesList = provincesListArr[i];
if(SelectProvinceId == tmpProvincesList.provinceId ) {
var len1 = cityCN.options.length;
for(var i = len1-1;i>0;i--){
cityCN.options[i] = null;
}
var capitals = tmpProvincesList.getProvinces();
for(var i=0;i<capitals.length;i++){
cityCN.options[i+1] = new Option(capitals[i].capitalCityName,capitals[i].capitalCityName);
}
break;
}
}
selectedProvinceName = provinceList.options[index].text;
selectedCityName = "";
changeAddress();
}
}
function changeCity(list){
//alert(ispostback+"======="+isclear);
if (mm==0)       
LastCity="";
else       
LastCity=CityStr;	
//LastCity="";
mm=mm+1;
AddStr="";
if( list.selectedIndex > 0 ) {
selectedCityName = list.options[list.selectedIndex].text;
var len = provincesListArr.length;
var tmpProvincesList;
for(var i=0;i < len;i++){
tmpProvincesList = provincesListArr[i];
var capitals = tmpProvincesList.getProvinces();
for(var j=0;j<capitals.length;j++){
if (capitals[j].capitalCityName==selectedCityName){
CountryStr=form.CountryListCN.value;
ProvinceStr=form.provinceCN.value;
CityStr=selectedCityName;
//当地址中含有 中国·时
if((CountryStr=="中国")&&(false))
{	
if (form.Address.value=="")
{  
form.Address.value=CountryStr+"·"+ProvinceStr+"·"+CityStr;
//取国家 、省份、地区
LastCountry=CountryStr;
LastProvince=ProvinceStr;
LastCity=CityStr;
}
else
{
if (ispostback == 0){//不是从reg_2.asp返回
CurAddress=form.Address.value;
}else{		//是从reg_2.asp返回						
if (isclear == 0){
CurAddress="";
isclear = isclear + 1;
}else{
//CurAddress=form.Address.value;									
}								
}
if (LastProvince=="")
{
form.Address.value=CountryStr+"·"+ProvinceStr+"·"+ CityStr + CurAddress;
}
else
{
if (LastCountry=="中国" && LastProvince!="" && LastCity!="") 
{
if (CurAddress.lastIndexOf(LastCity)>0) 
{
CurAddress=CurAddress.replace(LastCity,CityStr);
} 
else
{
AddStr=CityStr+AddStr;
incCity="1";
}
if (CurAddress.lastIndexOf(LastProvince)>0) 
{
CurAddress=CurAddress.replace(LastProvince,ProvinceStr);
}
else
{
AddStr=ProvinceStr+"·"+AddStr;
incProvince="1";
}
if (CurAddress.lastIndexOf("LastCountry")>0) 
{
CurAddress=CurAddress.replace(LastCountry,CountryStr);
}
else
{
AddStr=CountryStr+"·"+AddStr;
incCountry="1";
}
if (incProvince=="1" && incCity=="1" && incCountry=="1" )
{
if (CurAddress.indexOf("国")>0)
{
CurAddress=CurAddress.replace("中国·","");
}
form.Address.value=AddStr+CurAddress;
}
else
{  
form.Address.value=CurAddress;
}
incProvince="0";
incCity="0";
incCountry="0";
CurAddress="";
AddStr="";
}
else
{
form.Address.value=CountryStr+"·"+ProvinceStr+"·"+ CityStr +CurAddress;
}
}
} 
}
}
}
}
}
//changeAddress();
}
function changeAddress(){
var address = "";
if(selectCountryList == "中国"){
address += "中国";
address = address + selectedProvinceName + selectedCityName;
}
}
function Writeback()
{
LastCountry=CountryStr;
LastProvince=ProvinceStr;
LastCity=CityStr;
}
var CountryArr = new Array();
var CountryArrHot = new Array();
var CountryArrCN = new Array();
var cur;
cur = new Country("Afghanistan","Afghanistan ", "93", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Alaska(U.S.A)","Alaska(U.S.A) ", "1907", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Albania","Albania ", "355", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Algeria","Algeria ", "213", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Andorra","Andorra ", "376", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Angola","Angola ", "244", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Anguilla I.","Anguilla I. ", "1264", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Antigua and Barbuda","Antigua and Barbuda ", "1268", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Argentina","Argentina ", "54", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Armenia","Armenia ", "374", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Aruba I.","Aruba I. ", "297", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Ascension","Ascension ", "247", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Australia","Australia ", "61", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Austria","Austria ", "43", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Azerbaijan","Azerbaijan ", "994", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Bahrain","Bahrain ", "973", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Bangladesh","Bangladesh ", "880", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Barbados","Barbados ", "1246", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Belarus","Belarus ", "375", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Belgium","Belgium ", "32", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Belize","Belize ", "501", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Benin","Benin ", "229", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Bermuda Is.","Bermuda Is. ", "1441", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Bhutan","Bhutan ", "975", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Bolivia","Bolivia ", "591", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Bosnia And Herzegovina","Bosnia And Herzegovina ", "387", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Botswana","Botswana ", "267", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Brazil","Brazil ", "55", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Bulgaria","Bulgaria ", "359", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Burkinafaso","Burkinafaso ", "226", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Burundi","Burundi ", "257", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Cameroon","Cameroon ", "237", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Canada","Canada ", "1", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Canaries Is.","Canaries Is. ", "34", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Cape Verde","Cape Verde ", "238", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Cayman Is.","Cayman Is. ", "1345", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Central Africa","Central Africa ", "236", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Chad","Chad ", "235", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Chile","Chile ", "56", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Christmas I.","Christmas I. ", "619164", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Cocos I.","Cocos I. ", "619162", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Colombia","Colombia ", "57", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Commonwealth of dominica","Commonwealth of dominica ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Commonwealth of The Bahamas","Commonwealth of The Bahamas ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Comoro","Comoro ", "269", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Congo","Congo ", "242", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Cook IS.","Cook IS. ", "682", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Costa Rica","Costa Rica ", "506", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Croatian","Croatian ", "383385", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Cuba","Cuba ", "53", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Cyprus","Cyprus ", "357", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Czech","Czech ", "420", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Denmark","Denmark ", "45", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Diego Garcia I.","Diego Garcia I. ", "246", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Djibouti","Djibouti ", "253", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Dominican Rep.","Dominican Rep. ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Ecuador","Ecuador ", "593", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Egypt","Egypt ", "20", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("El Salvador","El Salvador ", "503", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Equatorial Guinea","Equatorial Guinea ", "240", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Eritrea","Eritrea ", "291", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Estonia","Estonia ", "372", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Ethiopia","Ethiopia ", "251", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Falkland Is.","Falkland Is. ", "500", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Faroe Is.","Faroe Is. ", "298", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Fiji","Fiji ", "679", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Finland","Finland ", "358", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("France","France ", "33", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("French Guiana","French Guiana ", "594", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("French Polynesia","French Polynesia ", "689", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Gabon","Gabon ", "241", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Gambia","Gambia ", "220", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Georgia","Georgia ", "995", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Germany","Germany ", "49", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Ghana","Ghana ", "233", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Gibraltar","Gibraltar ", "350", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Greece","Greece ", "30", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Greenland","Greenland ", "299", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Grenada","Grenada ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Guadeloupe I.","Guadeloupe I. ", "590", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Guam","Guam ", "671", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Guatemala","Guatemala ", "502", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Guinea","Guinea ", "224", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Guinea-bissau","Guinea-bissau ", "245", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Guyana","Guyana ", "592", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Haiti","Haiti ", "509", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Hawaii","Hawaii ", "1808", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Honduras","Honduras ", "504", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("HunGary","HunGary ", "36", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Iceland","Iceland ", "354", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("India","India ", "91", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Indonesia","Indonesia ", "62", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Iran","Iran ", "98", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Iraq","Iraq ", "964", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Ireland","Ireland ", "353", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Israel","Israel ", "972", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Italy","Italy ", "39", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Ivory Coast","Ivory Coast ", "225", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Jamaica","Jamaica ", "1876", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Japan","Japan ", "81", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Jordan","Jordan ", "962", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Kampuchea","Kampuchea ", "855", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Kazakhstan","Kazakhstan ", "7", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Kenya","Kenya ", "254", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Kiribati","Kiribati ", "686", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Korea(dpr of)","Korea(dpr of) ", "850", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Korea(republic of)","Korea(republic of) ", "82", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Kuwait","Kuwait ", "965", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Kyrgyzstan","Kyrgyzstan ", "7", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Laos","Laos ", "856", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Latvia","Latvia ", "371", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Lebanon","Lebanon ", "961", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Lesotho","Lesotho ", "266", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Liberia","Liberia ", "231", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Libya","Libya ", "218", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Liechtenstein","Liechtenstein ", "4175", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Lithuania","Lithuania ", "370", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Luxembourg","Luxembourg ", "352", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Macedonia","Macedonia ", "389", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Madagascar","Madagascar ", "261", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Malawi","Malawi ", "265", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Malaysia","Malaysia ", "60", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Maldive","Maldive ", "960", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mali","Mali ", "223", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Malta","Malta ", "356", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mariana Is.","Mariana Is. ", "670", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Marshall Is.","Marshall Is. ", "692", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Martinique","Martinique ", "596", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mauritania","Mauritania ", "222", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mauritius","Mauritius ", "230", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mayotte I.","Mayotte I. ", "269", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mexico","Mexico ", "52", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Micronesia","Micronesia ", "691", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Midway I.","Midway I. ", "1808", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Moldova","Moldova ", "373", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Monaco","Monaco ", "377", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mongolia","Mongolia ", "976", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Montserrat I.","Montserrat I. ", "1664", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Morocco","Morocco ", "212", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Mozambique","Mozambique ", "258", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Myanmar","Myanmar ", "95", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Namibia","Namibia ", "264", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Nauru","Nauru ", "674", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Nepal","Nepal ", "977", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Netherlands","Netherlands ", "31", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Netherlandsantilles Is.","Netherlandsantilles Is. ", "599", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("New Caledonia Is.","New Caledonia Is. ", "687", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("New Zealand","New Zealand ", "64", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Nicaragua","Nicaragua ", "505", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Niger","Niger ", "227", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Nigeria","Nigeria ", "234", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Niue I.","Niue I. ", "683", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Norfolk I,","Norfolk I, ", "6723", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Norway","Norway ", "47", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Oman","Oman ", "968", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("P.R.C.","P.R.C. ", "86", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Palau","Palau ", "680", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Panama","Panama ", "507", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Papua New Guinea","Papua New Guinea ", "675", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Paraguay","Paraguay ", "595", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Peru","Peru ", "51", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Philippines","Philippines ", "63", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Poland","Poland ", "48", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Portugal","Portugal ", "351", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Pskistan","Pskistan ", "92", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Puerto Rico","Puerto Rico ", "1787", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Qatar","Qatar ", "974", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Reunion I.","Reunion I. ", "262", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Rumania","Rumania ", "40", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Russia","Russia ", "7", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Rwanda","Rwanda ", "250", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Samoa,Eastern","Samoa,Eastern ", "684", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Samoa,Western","Samoa,Western ", "685", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("San.Marino","San.Marino ", "378", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("San.Pierre And Miquelon I.","San.Pierre And Miquelon I. ", "508", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("San.Tome And Principe","San.Tome And Principe ", "239", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Saudi Arabia","Saudi Arabia ", "966", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Senegal","Senegal ", "221", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Seychelles","Seychelles ", "248", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Singapore","Singapore ", "65", "2");
CountryArr = CountryArr.concat(cur);
cur = new Country("Slovak","Slovak ", "421", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Slovenia","Slovenia ", "386", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Solomon Is.","Solomon Is. ", "677", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Somali","Somali ", "252", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("South Africa","South Africa ", "27", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Spain","Spain ", "34", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Sri Lanka","Sri Lanka ", "94", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("St.Christopher and Nevis","St.Christopher and Nevis ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("St.Helena","St.Helena ", "290", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("St.Lucia","St.Lucia ", "1758", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("St.Vincent I.","St.Vincent I. ", "1784", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Sudan","Sudan ", "249", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Suriname","Suriname ", "597", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Swaziland","Swaziland ", "268", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Sweden","Sweden ", "46", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Switzerland","Switzerland ", "41", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Syria","Syria ", "963", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Tajikistan","Tajikistan ", "7", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Tanzania","Tanzania ", "255", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Thailand","Thailand ", "66", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("The United Arab Emirates","The United Arab Emirates ", "971", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Togo","Togo ", "228", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Tokelau Is.","Tokelau Is. ", "690", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Tonga","Tonga ", "676", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Trinidad and Tobago","Trinidad and Tobago ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Tunisia","Tunisia ", "216", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Turkey","Turkey ", "90", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Turkmenistan","Turkmenistan ", "993", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Turks and Caicos Is.","Turks and Caicos Is. ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Tuvalu","Tuvalu ", "688", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("U.S.A","U.S.A ", "1", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Uganda","Uganda ", "256", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Ukraine","Ukraine ", "380", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("United Kingdom","United Kingdom ", "44", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Uruguay","Uruguay ", "598", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Uzbekistan","Uzbekistan ", "7", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Vanuatu","Vanuatu ", "678", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Vatican","Vatican ", "379", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Venezuela","Venezuela ", "58", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Vietnam","Vietnam ", "84", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Virgin Is.","Virgin Is. ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Virgin Is. and St.Croix I.","Virgin Is. and St.Croix I. ", "1809", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Wake I.","Wake I. ", "1808", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Wallis And Futuna Is.","Wallis And Futuna Is. ", "681", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Western sahara","Western sahara ", "967", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Yemen","Yemen ", "967", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Yugoslavia","Yugoslavia ", "381", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Zaire","Zaire ", "243", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Zambia","Zambia ", "260", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Zanzibar","Zanzibar ", "259", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("Zimbabwe","Zimbabwe ", "263", "0");
CountryArr = CountryArr.concat(cur);
cur = new Country("中国","中国", "86", "1");
CountryArr = CountryArr.concat(cur);
cur = new Country("中国澳门","中国澳门", "853", "2");
CountryArr = CountryArr.concat(cur);
cur = new Country("中国台湾","中国台湾", "886", "2");
CountryArr = CountryArr.concat(cur);
cur = new Country("中国香港","中国香港", "852", "2");
CountryArr = CountryArr.concat(cur);
cur = new Country("其他国家或地区","其他国家或地区", "", "0");
CountryArr = CountryArr.concat(cur);
var provincesListArr = new  Array();
var c;
var SelectProvinceId;
var lenCapitalCity = form.cityCN.options.length;
for (var i=lenCapitalCity - 1;i>0;i--){
form.cityCN.options[i] = null;
}
var p1 = new provincesList("中国","安徽省","安徽省");
c = new provinceCN("安徽省","556","安庆市");
p1.addProvinces(c);
c = new provinceCN("安徽省","552","蚌埠市");
p1.addProvinces(c);
c = new provinceCN("安徽省","558","亳州市");
p1.addProvinces(c);
c = new provinceCN("安徽省","565","巢湖市");
p1.addProvinces(c);
c = new provinceCN("安徽省","550","滁州市");
p1.addProvinces(c);
c = new provinceCN("安徽省","558","阜阳市");
p1.addProvinces(c);
c = new provinceCN("安徽省","551","合肥市");
p1.addProvinces(c);
c = new provinceCN("安徽省","561","淮北市");
p1.addProvinces(c);
c = new provinceCN("安徽省","554","淮南市");
p1.addProvinces(c);
c = new provinceCN("安徽省","559","黄山市");
p1.addProvinces(c);
c = new provinceCN("安徽省","564","六安市");
p1.addProvinces(c);
c = new provinceCN("安徽省","555","马鞍山市");
p1.addProvinces(c);
c = new provinceCN("安徽省","557","宿州市");
p1.addProvinces(c);
c = new provinceCN("安徽省","556","太湖市");
p1.addProvinces(c);
c = new provinceCN("安徽省","562","铜陵市");
p1.addProvinces(c);
c = new provinceCN("安徽省","553","芜湖市");
p1.addProvinces(c);
c = new provinceCN("安徽省","559","歙县");
p1.addProvinces(c);
c = new provinceCN("安徽省","563","宣城市");
p1.addProvinces(c);
c = new provinceCN("安徽省","566","池城市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","北京","北京");
c = new provinceCN("北京","010","昌平区");
p1.addProvinces(c);
c = new provinceCN("北京","010","朝阳区");
p1.addProvinces(c);
c = new provinceCN("北京","010","崇文区");
p1.addProvinces(c);
c = new provinceCN("北京","010","大兴区");
p1.addProvinces(c);
c = new provinceCN("北京","010","东城区");
p1.addProvinces(c);
c = new provinceCN("北京","010","房山区");
p1.addProvinces(c);
c = new provinceCN("北京","010","丰台区");
p1.addProvinces(c);
c = new provinceCN("北京","010","海淀区");
p1.addProvinces(c);
c = new provinceCN("北京","010","怀柔区");
p1.addProvinces(c);
c = new provinceCN("北京","010","门头沟区");
p1.addProvinces(c);
c = new provinceCN("北京","010","密云县 ");
p1.addProvinces(c);
c = new provinceCN("北京","010","平谷区");
p1.addProvinces(c);
c = new provinceCN("北京","010","石景山区");
p1.addProvinces(c);
c = new provinceCN("北京","010","顺义区");
p1.addProvinces(c);
c = new provinceCN("北京","010","通州区");
p1.addProvinces(c);
c = new provinceCN("北京","010","西城区");
p1.addProvinces(c);
c = new provinceCN("北京","010","宣武区");
p1.addProvinces(c);
c = new provinceCN("北京","010","延庆县");
p1.addProvinces(c);
c = new provinceCN("北京","010","燕山区");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","福建省","福建省");
c = new provinceCN("福建省","591","福州市");
p1.addProvinces(c);
c = new provinceCN("福建省","597","龙岩市");
p1.addProvinces(c);
c = new provinceCN("福建省","599","南平市");
p1.addProvinces(c);
c = new provinceCN("福建省","593","宁德市");
p1.addProvinces(c);
c = new provinceCN("福建省","594","莆田市");
p1.addProvinces(c);
c = new provinceCN("福建省","595","泉州市");
p1.addProvinces(c);
c = new provinceCN("福建省","598","三明市");
p1.addProvinces(c);
c = new provinceCN("福建省","599","邵武市");
p1.addProvinces(c);
c = new provinceCN("福建省","595","石狮市");
p1.addProvinces(c);
c = new provinceCN("福建省","592","厦门市");
p1.addProvinces(c);
c = new provinceCN("福建省","598","永安市");
p1.addProvinces(c);
c = new provinceCN("福建省","596","漳州市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","甘肃省","甘肃省");
c = new provinceCN("甘肃省","943","白银市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","932","定西市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","100","甘南藏族自治区");
p1.addProvinces(c);
c = new provinceCN("甘肃省","937","嘉峪关市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","935","金昌市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","937","酒泉市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","931","兰州市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","930","临夏市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","939","陇南市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","933","平凉市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","934","庆阳市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","938","天水市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","938","天水市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","935","武威市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","934","西峰市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","937","玉门市");
p1.addProvinces(c);
c = new provinceCN("甘肃省","936","张掖市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","广东省","广东省");
c = new provinceCN("广东省","768","潮州市");
p1.addProvinces(c);
c = new provinceCN("广东省","661","潮阳市");
p1.addProvinces(c);
c = new provinceCN("广东省","769","东莞市");
p1.addProvinces(c);
c = new provinceCN("广东省","757","佛山市");
p1.addProvinces(c);
c = new provinceCN("广东省","20","广州市");
p1.addProvinces(c);
c = new provinceCN("广东省","762","河源市");
p1.addProvinces(c);
c = new provinceCN("广东省","752","惠州市");
p1.addProvinces(c);
c = new provinceCN("广东省","750","江门市");
p1.addProvinces(c);
c = new provinceCN("广东省","663","揭阳");
p1.addProvinces(c);
c = new provinceCN("广东省","668","茂名市");
p1.addProvinces(c);
c = new provinceCN("广东省","753","梅州市");
p1.addProvinces(c);
c = new provinceCN("广东省","763","清远市");
p1.addProvinces(c);
c = new provinceCN("广东省","754","汕头市");
p1.addProvinces(c);
c = new provinceCN("广东省","660","汕尾市");
p1.addProvinces(c);
c = new provinceCN("广东省","751","韶关市");
p1.addProvinces(c);
c = new provinceCN("广东省","755","深圳市");
p1.addProvinces(c);
c = new provinceCN("广东省","757","顺德");
p1.addProvinces(c);
c = new provinceCN("广东省","662","阳江市");
p1.addProvinces(c);
c = new provinceCN("广东省","766","云浮");
p1.addProvinces(c);
c = new provinceCN("广东省","759","湛江市");
p1.addProvinces(c);
c = new provinceCN("广东省","758","肇庆市");
p1.addProvinces(c);
c = new provinceCN("广东省","760","中山市");
p1.addProvinces(c);
c = new provinceCN("广东省","756","珠海");
p1.addProvinces(c);
c = new provinceCN("广东省","750","恩平市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","广西省","广西省");
c = new provinceCN("广西省","776","百色市");
p1.addProvinces(c);
c = new provinceCN("广西省","779","北海市");
p1.addProvinces(c);
c = new provinceCN("广西省","771","崇左市");
p1.addProvinces(c);
c = new provinceCN("广西省","770","防城港市")
p1.addProvinces(c);
c = new provinceCN("广西省","775","贵港市");
p1.addProvinces(c);
c = new provinceCN("广西省","773","桂林市");
p1.addProvinces(c);
c = new provinceCN("广西省","772","合山市");
p1.addProvinces(c);
c = new provinceCN("广西省","778","河池市");
p1.addProvinces(c);
c = new provinceCN("广西省","774","贺州市");
p1.addProvinces(c);
c = new provinceCN("广西省","772","来宾市");
p1.addProvinces(c);
c = new provinceCN("广西省","772","柳州市");
p1.addProvinces(c);
c = new provinceCN("广西省","771","南宁市");
p1.addProvinces(c);
c = new provinceCN("广西省","771","凭祥市");
p1.addProvinces(c);
c = new provinceCN("广西省","777","钦州市");
p1.addProvinces(c);
c = new provinceCN("广西省","774","梧州市")
p1.addProvinces(c);
c = new provinceCN("广西省","775","玉林市")
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","贵州省","贵州省");
c = new provinceCN("贵州省","853","安顺市");
p1.addProvinces(c);
c = new provinceCN("贵州省","857","毕节市");
p1.addProvinces(c);
c = new provinceCN("贵州省","852","赤水市");
p1.addProvinces(c);
c = new provinceCN("贵州省","854","都匀市");
p1.addProvinces(c);
c = new provinceCN("贵州省","851","贵阳市");
p1.addProvinces(c);
c = new provinceCN("贵州省","855","凯里市");
p1.addProvinces(c);
c = new provinceCN("贵州省","858","六盘水市");
p1.addProvinces(c);
c = new provinceCN("贵州省","856","铜仁市");
p1.addProvinces(c);
c = new provinceCN("贵州省","859","兴义市");
p1.addProvinces(c);
c = new provinceCN("贵州省","852","遵义市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","海南省","海南省");
c = new provinceCN("海南省","898","白沙黎族自治县");
p1.addProvinces(c);
c = new provinceCN("海南省","898","保亭黎族苗族自治县");
p1.addProvinces(c);
c = new provinceCN("海南省","898","昌江黎族自治县");
p1.addProvinces(c);
c = new provinceCN("海南省","100","澄迈县");
p1.addProvinces(c);
c = new provinceCN("海南省","890","儋州市");
p1.addProvinces(c);
c = new provinceCN("海南省","898","定安县");
p1.addProvinces(c);
c = new provinceCN("海南省","898","东方");
p1.addProvinces(c);
c = new provinceCN("海南省","898","海口市");
p1.addProvinces(c);
c = new provinceCN("海南省","898","乐东黎族自治县");
p1.addProvinces(c);
c = new provinceCN("海南省","898","临高县");
p1.addProvinces(c);
c = new provinceCN("海南省","898","陵水黎族自治县");
p1.addProvinces(c);
c = new provinceCN("海南省","8096","琼海");
p1.addProvinces(c);
c = new provinceCN("海南省","898","琼中黎族苗族自治县");
p1.addProvinces(c);
c = new provinceCN("海南省","899","三亚市");
p1.addProvinces(c);
c = new provinceCN("海南省","899","通什市");
p1.addProvinces(c);
c = new provinceCN("海南省","898","屯昌县");
p1.addProvinces(c);
c = new provinceCN("海南省","8097","万宁");
p1.addProvinces(c);
c = new provinceCN("海南省","898","文昌");
p1.addProvinces(c);
c = new provinceCN("海南省","898","五指山");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","河北省","河北省");
c = new provinceCN("河北省","312","保定市");
p1.addProvinces(c);
c = new provinceCN("河北省","317","泊头市");
p1.addProvinces(c);
c = new provinceCN("河北省","317","沧州市");
p1.addProvinces(c);
c = new provinceCN("河北省","314","承德市");
p1.addProvinces(c);
c = new provinceCN("河北省","312","定州市");
p1.addProvinces(c);
c = new provinceCN("河北省","310","邯郸市");
p1.addProvinces(c);
c = new provinceCN("河北省","318","衡水市");
p1.addProvinces(c);
c = new provinceCN("河北省","316","廊坊市");
p1.addProvinces(c);
c = new provinceCN("河北省","319","南宫市");
p1.addProvinces(c);
c = new provinceCN("河北省","335","秦皇岛市");
p1.addProvinces(c);
c = new provinceCN("河北省","317","任丘市");
p1.addProvinces(c);
c = new provinceCN("河北省","319","沙河市");
p1.addProvinces(c);
c = new provinceCN("河北省","311","石家庄市");
p1.addProvinces(c);
c = new provinceCN("河北省","315","唐山市");
p1.addProvinces(c);
c = new provinceCN("河北省","311","辛集市");
p1.addProvinces(c);
c = new provinceCN("河北省","319","邢台市");
p1.addProvinces(c);
c = new provinceCN("河北省","313","张家口市");
p1.addProvinces(c);
c = new provinceCN("河北省","312","涿州市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","河南省","河南省");
c = new provinceCN("河南省","372","安阳市");
p1.addProvinces(c);
c = new provinceCN("河南省","392","鹤壁市");
p1.addProvinces(c);
c = new provinceCN("河南省","391","济源");
p1.addProvinces(c);
c = new provinceCN("河南省","391","焦作市");
p1.addProvinces(c);
c = new provinceCN("河南省","378","开封市");
p1.addProvinces(c);
c = new provinceCN("河南省","395","漯河市");
p1.addProvinces(c);
c = new provinceCN("河南省","379","洛阳市");
p1.addProvinces(c);
c = new provinceCN("河南省","377","南阳市");
p1.addProvinces(c);
c = new provinceCN("河南省","375","平顶山市");
p1.addProvinces(c);
c = new provinceCN("河南省","393","濮阳市");
p1.addProvinces(c);
c = new provinceCN("河南省","398","三门峡市");
p1.addProvinces(c);
c = new provinceCN("河南省","370","商丘市");
p1.addProvinces(c);
c = new provinceCN("河南省","373","新乡市");
p1.addProvinces(c);
c = new provinceCN("河南省","376","信阳市");
p1.addProvinces(c);
c = new provinceCN("河南省","374","许昌市");
p1.addProvinces(c);
c = new provinceCN("河南省","398","义马市");
p1.addProvinces(c);
c = new provinceCN("河南省","371","郑州市");
p1.addProvinces(c);
c = new provinceCN("河南省","394","周口市");
p1.addProvinces(c);
c = new provinceCN("河南省","396","驻马店市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","黑龙江省","黑龙江省");
c = new provinceCN("黑龙江省","450","阿城市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","456","北安市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","459","大庆市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","457","大兴安岭");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","451","哈尔滨市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","454","鹤岗市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","456","黑河市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","453","鸡西市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","454","佳木斯市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","453","牡丹江市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","464","七台河市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","452","齐齐哈尔市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","454","双鸭山市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","453","绥汾河市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","455","绥化市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","454","同江市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","456","五大连池市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","458","伊春市");
p1.addProvinces(c);
c = new provinceCN("黑龙江省","451","肇东市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","湖北省","湖北省");
c = new provinceCN("湖北省","712","安陆市");
p1.addProvinces(c);
c = new provinceCN("湖北省","719","丹江口市");
p1.addProvinces(c);
c = new provinceCN("湖北省","711","鄂州市");
p1.addProvinces(c);
c = new provinceCN("湖北省","718","恩施市");
p1.addProvinces(c);
c = new provinceCN("湖北省","718","恩施土家族苗族自治州");
p1.addProvinces(c);
c = new provinceCN("湖北省","716","洪湖市");
p1.addProvinces(c);
c = new provinceCN("湖北省","713","黄冈市");
p1.addProvinces(c);
c = new provinceCN("湖北省","714","黄石市");
p1.addProvinces(c);
c = new provinceCN("湖北省","728","江汉市");
p1.addProvinces(c);
c = new provinceCN("湖北省","724","荆门市");
p1.addProvinces(c);
c = new provinceCN("湖北省","716","荆沙市");
p1.addProvinces(c);
c = new provinceCN("湖北省","716","荆州");
p1.addProvinces(c);
c = new provinceCN("湖北省","710","老河口市");
p1.addProvinces(c);
c = new provinceCN("湖北省","718","利川市");
p1.addProvinces(c);
c = new provinceCN("湖北省","713","麻城市");
p1.addProvinces(c);
c = new provinceCN("湖北省","715","蒲圻市");
p1.addProvinces(c);
c = new provinceCN("湖北省","728","潜江");
p1.addProvinces(c);
c = new provinceCN("湖北省","719","神农架林区");
p1.addProvinces(c);
c = new provinceCN("湖北省","719","十堰市");
p1.addProvinces(c);
c = new provinceCN("湖北省","716","石首市");
p1.addProvinces(c);
c = new provinceCN("湖北省","722","随州市");
p1.addProvinces(c);
c = new provinceCN("湖北省","728","天门市");
p1.addProvinces(c);
c = new provinceCN("湖北省","27","武汉市");
p1.addProvinces(c);
c = new provinceCN("湖北省","713","武穴市");
p1.addProvinces(c);
c = new provinceCN("湖北省","728","仙桃市");
p1.addProvinces(c);
c = new provinceCN("湖北省","715","咸宁");
p1.addProvinces(c);
c = new provinceCN("湖北省","715","咸宁市");
p1.addProvinces(c);
c = new provinceCN("湖北省","710","襄樊市");
p1.addProvinces(c);
c = new provinceCN("湖北省","712","孝感市");
p1.addProvinces(c);
c = new provinceCN("湖北省","717","宜昌市");
p1.addProvinces(c);
c = new provinceCN("湖北省","712","应城市");
p1.addProvinces(c);
c = new provinceCN("湖北省","717","枝城市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","湖南省","湖南省");
c = new provinceCN("湖南省","731","长沙市");
p1.addProvinces(c);
c = new provinceCN("湖南省","736","常德市");
p1.addProvinces(c);
c = new provinceCN("湖南省","735","郴州市");
p1.addProvinces(c);
c = new provinceCN("湖南省","734","衡阳市");
p1.addProvinces(c);
c = new provinceCN("湖南省","745","洪江市");
p1.addProvinces(c);
c = new provinceCN("湖南省","745","怀化市");
p1.addProvinces(c);
c = new provinceCN("湖南省","7481","吉首市");
p1.addProvinces(c);
c = new provinceCN("湖南省","736","津市");
p1.addProvinces(c);
c = new provinceCN("湖南省","734","耒阳市");
p1.addProvinces(c);
c = new provinceCN("湖南省","738","冷水江市");
p1.addProvinces(c);
c = new provinceCN("湖南省","746","冷水滩市");
p1.addProvinces(c);
c = new provinceCN("湖南省","738","涟源市");
p1.addProvinces(c);
c = new provinceCN("湖南省","738","娄底市");
p1.addProvinces(c);
c = new provinceCN("湖南省","730","汨罗市");
p1.addProvinces(c);
c = new provinceCN("湖南省","739","邵阳市");
p1.addProvinces(c);
c = new provinceCN("湖南省","732","湘潭市");
p1.addProvinces(c);
c = new provinceCN("湖南省","743","湘西土家族苗族自治州");
p1.addProvinces(c);
c = new provinceCN("湖南省","732","湘乡市");
p1.addProvinces(c);
c = new provinceCN("湖南省","737","益阳市");
p1.addProvinces(c);
c = new provinceCN("湖南省","746","永州市");
p1.addProvinces(c);
c = new provinceCN("湖南省","730","岳阳市");
p1.addProvinces(c);
c = new provinceCN("湖南省","744","张家界市");
p1.addProvinces(c);
c = new provinceCN("湖南省","733","株洲市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","吉林省","吉林省");
c = new provinceCN("吉林省","436","白城市");
p1.addProvinces(c);
c = new provinceCN("吉林省","439","白山市");
p1.addProvinces(c);
c = new provinceCN("吉林省","431","长春市");
p1.addProvinces(c);
c = new provinceCN("吉林省","433","敦化市");
p1.addProvinces(c);
c = new provinceCN("吉林省","438","扶余市");
p1.addProvinces(c);
c = new provinceCN("吉林省","434","公主岭市");
p1.addProvinces(c);
c = new provinceCN("吉林省","432","桦甸市");
p1.addProvinces(c);
c = new provinceCN("吉林省","439","浑江市");
p1.addProvinces(c);
c = new provinceCN("吉林省","432","吉林市");
p1.addProvinces(c);
c = new provinceCN("吉林省","435","集安市");
p1.addProvinces(c);
c = new provinceCN("吉林省","434","九台市");
p1.addProvinces(c);
c = new provinceCN("吉林省","437","辽源市");
p1.addProvinces(c);
c = new provinceCN("吉林省","433","龙井市");
p1.addProvinces(c);
c = new provinceCN("吉林省","448","梅河口市");
p1.addProvinces(c);
c = new provinceCN("吉林省","434","四平市");
p1.addProvinces(c);
c = new provinceCN("吉林省","438","松原");
p1.addProvinces(c);
c = new provinceCN("吉林省","436","洮南市");
p1.addProvinces(c);
c = new provinceCN("吉林省","435","通化市");
p1.addProvinces(c);
c = new provinceCN("吉林省","433","图们市");
p1.addProvinces(c);
c = new provinceCN("吉林省","433","延吉市");
p1.addProvinces(c);
c = new provinceCN("吉林省","440","晖春市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","江苏省","江苏省");
c = new provinceCN("江苏省","512","常熟市");
p1.addProvinces(c);
c = new provinceCN("江苏省","519","常州市");
p1.addProvinces(c);
c = new provinceCN("江苏省","511","丹阳市");
p1.addProvinces(c);
c = new provinceCN("江苏省","515","东台市");
p1.addProvinces(c);
c = new provinceCN("江苏省","517","淮安市");
p1.addProvinces(c);
c = new provinceCN("江苏省","517","淮阴市");
p1.addProvinces(c);
c = new provinceCN("江苏省","510","江阴市");
p1.addProvinces(c);
c = new provinceCN("江苏省","523","姜堰市");
p1.addProvinces(c);
c = new provinceCN("江苏省","519","金坛市");
p1.addProvinces(c);
c = new provinceCN("江苏省","518","连云港市");
p1.addProvinces(c);
c = new provinceCN("江苏省","25","南京市");
p1.addProvinces(c);
c = new provinceCN("江苏省","513","南通市");
p1.addProvinces(c);
c = new provinceCN("江苏省","513","启东");
p1.addProvinces(c);
c = new provinceCN("江苏省","512","苏州市");
p1.addProvinces(c);
c = new provinceCN("江苏省","527","宿迁市");
p1.addProvinces(c);
c = new provinceCN("江苏省","523","泰州市");
p1.addProvinces(c);
c = new provinceCN("江苏省","510","无锡市");
p1.addProvinces(c);
c = new provinceCN("江苏省","512","吴江市");
p1.addProvinces(c);
c = new provinceCN("江苏省","523","兴化市");
p1.addProvinces(c);
c = new provinceCN("江苏省","516","徐州市");
p1.addProvinces(c);
c = new provinceCN("江苏省","515","盐城市");
p1.addProvinces(c);
c = new provinceCN("江苏省","514","扬州市");
p1.addProvinces(c);
c = new provinceCN("江苏省","514","仪征市");
p1.addProvinces(c);
c = new provinceCN("江苏省","510","宜兴市");
p1.addProvinces(c);
c = new provinceCN("江苏省","512","张家港");
p1.addProvinces(c);
c = new provinceCN("江苏省","511","镇江市");
p1.addProvinces(c);
c = new provinceCN("江苏省","513","海门市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","江西省","江西省");
c = new provinceCN("江西省","794","抚州市");
p1.addProvinces(c);
c = new provinceCN("江西省","797","赣州市");
p1.addProvinces(c);
c = new provinceCN("江西省","796","吉安市");
p1.addProvinces(c);
c = new provinceCN("江西省","796","井冈山市");
p1.addProvinces(c);
c = new provinceCN("江西省","798","景德镇市");
p1.addProvinces(c);
c = new provinceCN("江西省","792","九江市");
p1.addProvinces(c);
c = new provinceCN("江西省","794","临川市");
p1.addProvinces(c);
c = new provinceCN("江西省","792","庐山市");
p1.addProvinces(c);
c = new provinceCN("江西省","791","南昌市");
p1.addProvinces(c);
c = new provinceCN("江西省","799","萍乡市");
p1.addProvinces(c);
c = new provinceCN("江西省","793","上饶市");
p1.addProvinces(c);
c = new provinceCN("江西省","790","新余市");
p1.addProvinces(c);
c = new provinceCN("江西省","795","宜春市");
p1.addProvinces(c);
c = new provinceCN("江西省","701","鹰潭市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","辽宁省","辽宁省");
c = new provinceCN("辽宁省","412","鞍山市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","421","北票市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","414","本溪市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","411","长海市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","421","朝阳市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","411","大连市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","415","丹东市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","413","抚顺市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","418","阜新市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","412","海城市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","429","葫芦岛");
p1.addProvinces(c);
c = new provinceCN("辽宁省","429","锦西市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","416","锦州市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","419","辽阳市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","427","盘锦市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","24","沈阳市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","410","铁法市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","410","铁岭市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","411","瓦房店市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","429","兴城市");
p1.addProvinces(c);
c = new provinceCN("辽宁省","417","营口市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","内蒙古自治区","内蒙古自治区");
c = new provinceCN("内蒙古自治区","483","阿拉善盟");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","478","巴彦淖尔盟");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","472","包头市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","476","赤峰市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","477","东胜市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","477","鄂尔多斯");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","479","二连浩特市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","470","海拉尔市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","471","呼和浩特市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","470","呼伦贝尔");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","475","霍林郭勒市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","474","集宁市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","478","临河市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","470","满洲里市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","475","通辽市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","473","乌海市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","474","乌兰察布盟");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","482","乌兰浩特市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","479","锡林郭勒盟");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","479","锡林浩特市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","482","兴安盟");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","470","牙克石市");
p1.addProvinces(c);
c = new provinceCN("内蒙古自治区","470","扎兰屯市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","宁夏回族自治区","宁夏回族自治区");
c = new provinceCN("宁夏回族自治区","954","固原市");
p1.addProvinces(c);
c = new provinceCN("宁夏回族自治区","953","青铜峡市");
p1.addProvinces(c);
c = new provinceCN("宁夏回族自治区","952","石嘴山市");
p1.addProvinces(c);
c = new provinceCN("宁夏回族自治区","953","吴忠市");
p1.addProvinces(c);
c = new provinceCN("宁夏回族自治区","951","银川市");
p1.addProvinces(c);
c = new provinceCN("宁夏回族自治区","953","中卫市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","青海省","青海省");
c = new provinceCN("青海省","977","德令哈市");
p1.addProvinces(c);
c = new provinceCN("青海省","979","格尔木市");
p1.addProvinces(c);
c = new provinceCN("青海省","974","共和市");
p1.addProvinces(c);
c = new provinceCN("青海省","975","果洛藏族自治州");
p1.addProvinces(c);
c = new provinceCN("青海省","970","海北藏族自治州");
p1.addProvinces(c);
c = new provinceCN("青海省","972","海东市");
p1.addProvinces(c);
c = new provinceCN("青海省","974","海南藏族自治州");
p1.addProvinces(c);
c = new provinceCN("青海省","977","海西蒙古族藏族自治州");
p1.addProvinces(c);
c = new provinceCN("青海省","970","海晏市");
p1.addProvinces(c);
c = new provinceCN("青海省","973","黄南藏族自治州");
p1.addProvinces(c);
c = new provinceCN("青海省","975","玛沁市");
p1.addProvinces(c);
c = new provinceCN("青海省","978","门源市");
p1.addProvinces(c);
c = new provinceCN("青海省","973","同仁市");
p1.addProvinces(c);
c = new provinceCN("青海省","971","西宁市");
p1.addProvinces(c);
c = new provinceCN("青海省","976","玉树藏族自治州");
p1.addProvinces(c);
c = new provinceCN("青海省","976","玉树市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","山东省","山东省");
c = new provinceCN("山东省","543","滨州市");
p1.addProvinces(c);
c = new provinceCN("山东省","534","德州市");
p1.addProvinces(c);
c = new provinceCN("山东省","546","东营市");
p1.addProvinces(c);
c = new provinceCN("山东省","530","荷泽市");
p1.addProvinces(c);
c = new provinceCN("山东省","531","济南市");
p1.addProvinces(c);
c = new provinceCN("山东省","537","济宁市");
p1.addProvinces(c);
c = new provinceCN("山东省","634","莱芜市");
p1.addProvinces(c);
c = new provinceCN("山东省","635","聊城市");
p1.addProvinces(c);
c = new provinceCN("山东省","635","临清市");
p1.addProvinces(c);
c = new provinceCN("山东省","539","临沂市");
p1.addProvinces(c);
c = new provinceCN("山东省","532","青岛市");
p1.addProvinces(c);
c = new provinceCN("山东省","536","青州市");
p1.addProvinces(c);
c = new provinceCN("山东省","537","曲阜市");
p1.addProvinces(c);
c = new provinceCN("山东省","633","日照市");
p1.addProvinces(c);
c = new provinceCN("山东省","538","泰安市");
p1.addProvinces(c);
c = new provinceCN("山东省","632","滕州市");
p1.addProvinces(c);
c = new provinceCN("山东省","631","威海市");
p1.addProvinces(c);
c = new provinceCN("山东省","536","潍坊市");
p1.addProvinces(c);
c = new provinceCN("山东省","631","文登市");
p1.addProvinces(c);
c = new provinceCN("山东省","538","新泰市");
p1.addProvinces(c);
c = new provinceCN("山东省","535","烟台市");
p1.addProvinces(c);
c = new provinceCN("山东省","632","枣庄市");
p1.addProvinces(c);
c = new provinceCN("山东省","536","诸城市");
p1.addProvinces(c);
c = new provinceCN("山东省","533","淄博市");
p1.addProvinces(c);
c = new provinceCN("山东省","535","莱州市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","山西省","山西省");
c = new provinceCN("山西省","355","长治市");
p1.addProvinces(c);
c = new provinceCN("山西省","352","大同市");
p1.addProvinces(c);
c = new provinceCN("山西省","357","侯马市");
p1.addProvinces(c);
c = new provinceCN("山西省","356","晋城市");
p1.addProvinces(c);
c = new provinceCN("山西省","354","晋中");
p1.addProvinces(c);
c = new provinceCN("山西省","357","临汾市");
p1.addProvinces(c);
c = new provinceCN("山西省","358","吕梁");
p1.addProvinces(c);
c = new provinceCN("山西省","349","朔州");
p1.addProvinces(c);
c = new provinceCN("山西省","351","太原市");
p1.addProvinces(c);
c = new provinceCN("山西省","350","忻州市");
p1.addProvinces(c);
c = new provinceCN("山西省","353","阳泉市");
p1.addProvinces(c);
c = new provinceCN("山西省","354","榆次市");
p1.addProvinces(c);
c = new provinceCN("山西省","359","运城市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","陕西省","陕西省");
c = new provinceCN("陕西省","915","安康市");
p1.addProvinces(c);
c = new provinceCN("陕西省","917","宝鸡市");
p1.addProvinces(c);
c = new provinceCN("陕西省","916","汉中市");
p1.addProvinces(c);
c = new provinceCN("陕西省","914","商洛");
p1.addProvinces(c);
c = new provinceCN("陕西省","914","商州市");
p1.addProvinces(c);
c = new provinceCN("陕西省","919","铜川市");
p1.addProvinces(c);
c = new provinceCN("陕西省","913","渭南市");
p1.addProvinces(c);
c = new provinceCN("陕西省","29","西安市");
p1.addProvinces(c);
c = new provinceCN("陕西省","910","咸阳市");
p1.addProvinces(c);
c = new provinceCN("陕西省","911","延安市");
p1.addProvinces(c);
c = new provinceCN("陕西省","912","榆林市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","上海","上海");
c = new provinceCN("上海","021","宝山区");
p1.addProvinces(c);
c = new provinceCN("上海","021","长宁区");
p1.addProvinces(c);
c = new provinceCN("上海","021","崇明县");
p1.addProvinces(c);
c = new provinceCN("上海","021","川沙县");
p1.addProvinces(c);
c = new provinceCN("上海","021","奉贤区");
p1.addProvinces(c);
c = new provinceCN("上海","021","虹口区");
p1.addProvinces(c);
c = new provinceCN("上海","021","黄浦区");
p1.addProvinces(c);
c = new provinceCN("上海","021","嘉定区");
p1.addProvinces(c);
c = new provinceCN("上海","021","金山区");
p1.addProvinces(c);
c = new provinceCN("上海","021","静安区");
p1.addProvinces(c);
c = new provinceCN("上海","021","卢湾区");
p1.addProvinces(c);
c = new provinceCN("上海","021","闵行区");
p1.addProvinces(c);
c = new provinceCN("上海","021","南汇区");
p1.addProvinces(c);
c = new provinceCN("上海","021","浦东新区");
p1.addProvinces(c);
c = new provinceCN("上海","021","普陀区");
p1.addProvinces(c);
c = new provinceCN("上海","021","青浦区");
p1.addProvinces(c);
c = new provinceCN("上海","021","松江区");
p1.addProvinces(c);
c = new provinceCN("上海","021","徐汇区");
p1.addProvinces(c);
c = new provinceCN("上海","021","杨浦区");
p1.addProvinces(c);
c = new provinceCN("上海","021","闸北区");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","四川省","四川省");
c = new provinceCN("四川省","837","阿坝藏族羌族自治州");
p1.addProvinces(c);
c = new provinceCN("四川省","827","巴中");
p1.addProvinces(c);
c = new provinceCN("四川省","28","成都市");
p1.addProvinces(c);
c = new provinceCN("四川省","818","达县市");
p1.addProvinces(c);
c = new provinceCN("四川省","838","德阳市");
p1.addProvinces(c);
c = new provinceCN("四川省","810","涪陵市");
p1.addProvinces(c);
c = new provinceCN("四川省","836","甘孜藏族自治州");
p1.addProvinces(c);
c = new provinceCN("四川省","826","广安");
p1.addProvinces(c);
c = new provinceCN("四川省","839","广元市");
p1.addProvinces(c);
c = new provinceCN("四川省","826","华蓥市");
p1.addProvinces(c);
c = new provinceCN("四川省","833","乐山市");
p1.addProvinces(c);
c = new provinceCN("四川省","834","凉山彝族自治州");
p1.addProvinces(c);
c = new provinceCN("四川省","830","泸州市");
p1.addProvinces(c);
c = new provinceCN("四川省","837","马尔康市");
p1.addProvinces(c);
c = new provinceCN("四川省","833","眉山");
p1.addProvinces(c);
c = new provinceCN("四川省","816","绵阳市");
p1.addProvinces(c);
c = new provinceCN("四川省","832","内江市");
p1.addProvinces(c);
c = new provinceCN("四川省","817","南充市");
p1.addProvinces(c);
c = new provinceCN("四川省","812","攀枝花市");
p1.addProvinces(c);
c = new provinceCN("四川省","825","遂宁市");
p1.addProvinces(c);
c = new provinceCN("四川省","819","万县市");
p1.addProvinces(c);
c = new provinceCN("四川省","834","西昌市");
p1.addProvinces(c);
c = new provinceCN("四川省","835","雅安市");
p1.addProvinces(c);
c = new provinceCN("四川省","831","宜宾市");
p1.addProvinces(c);
c = new provinceCN("四川省","832","资阳");
p1.addProvinces(c);
c = new provinceCN("四川省","813","自贡市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","天津","天津");
c = new provinceCN("天津","022","宝坻区");
p1.addProvinces(c);
c = new provinceCN("天津","022","北辰区");
p1.addProvinces(c);
c = new provinceCN("天津","022","东丽区");
p1.addProvinces(c);
c = new provinceCN("天津","022","汉沽区");
p1.addProvinces(c);
c = new provinceCN("天津","022","和平区");
p1.addProvinces(c);
c = new provinceCN("天津","022","河北区");
p1.addProvinces(c);
c = new provinceCN("天津","022","河东区");
p1.addProvinces(c);
c = new provinceCN("天津","022","河西区");
p1.addProvinces(c);
c = new provinceCN("天津","022","红桥区");
p1.addProvinces(c);
c = new provinceCN("天津","022","津南区");
p1.addProvinces(c);
c = new provinceCN("天津","022","静海县");
p1.addProvinces(c);
c = new provinceCN("天津","022","南开区");
p1.addProvinces(c);
c = new provinceCN("天津","022","宁河县");
p1.addProvinces(c);
c = new provinceCN("天津","022","西青区");
p1.addProvinces(c);
c = new provinceCN("天津","022","大港区");
p1.addProvinces(c);
c = new provinceCN("天津","022","塘沽区");
p1.addProvinces(c);
c = new provinceCN("天津","022","蓟县");
p1.addProvinces(c);
c = new provinceCN("天津","022","武清县");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","西藏自治区","西藏自治区");
c = new provinceCN("西藏自治区","897","阿里市");
p1.addProvinces(c);
c = new provinceCN("西藏自治区","895","昌都市");
p1.addProvinces(c);
c = new provinceCN("西藏自治区","891","拉萨市");
p1.addProvinces(c);
c = new provinceCN("西藏自治区","894","林芝市");
p1.addProvinces(c);
c = new provinceCN("西藏自治区","896","那曲市");
p1.addProvinces(c);
c = new provinceCN("西藏自治区","892","日喀则市");
p1.addProvinces(c);
c = new provinceCN("西藏自治区","983","山南市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","新疆维吾尔自治区","新疆维吾尔自治区");
c = new provinceCN("新疆维吾尔自治区","997","阿克苏市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","997","阿拉尔");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","906","阿勒泰市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","908","阿图什市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","996","巴音郭楞蒙古自治州");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","909","博尔塔拉蒙古自治州");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","909","博乐市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","994","昌吉回族自治州");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","994","昌吉市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","902","哈密市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","903","和田市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","998","喀什市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","990","克拉玛依");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","990","克拉玛依市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","908","克孜勒苏柯尔克孜自治州");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","996","库尔勒市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","992","奎屯市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","993","石河子市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","901","塔城市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","995","吐鲁番市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","991","乌鲁木齐市");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","994","五家渠");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","999","伊犁哈萨克自治州");
p1.addProvinces(c);
c = new provinceCN("新疆维吾尔自治区","999","伊宁市");
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","云南省","云南省");
c = new provinceCN("云南省","875","保山市");
p1.addProvinces(c);
c = new provinceCN("云南省","878","楚雄市");
p1.addProvinces(c);
c = new provinceCN("云南省","878","楚雄彝族自治州");
p1.addProvinces(c);
c = new provinceCN("云南省","872","大理白族自治州");
p1.addProvinces(c);
c = new provinceCN("云南省","872","大理市");
p1.addProvinces(c);
c = new provinceCN("云南省","692","德宏傣族景颇族自治州");
p1.addProvinces(c);
c = new provinceCN("云南省","887","迪庆藏族自治州");
p1.addProvinces(c);
c = new provinceCN("云南省","881","东川市");
p1.addProvinces(c);
c = new provinceCN("云南省","873","个旧市");
p1.addProvinces(c);
c = new provinceCN("云南省","873","红河哈尼族彝族自治州");
p1.addProvinces(c);
c = new provinceCN("云南省","691","景洪市");
p1.addProvinces(c);
c = new provinceCN("云南省","873","开远市");
p1.addProvinces(c);
c = new provinceCN("云南省","871","昆明市");
p1.addProvinces(c);
c = new provinceCN("云南省","888","丽江市");
p1.addProvinces(c);
c = new provinceCN("云南省","883","临沧市");
p1.addProvinces(c);
c = new provinceCN("云南省","886","六库市");
p1.addProvinces(c);
c = new provinceCN("云南省","692","潞西市");
p1.addProvinces(c);
c = new provinceCN("云南省","886","怒江傈傈族自治州");
p1.addProvinces(c);
c = new provinceCN("云南省","874","曲靖市")
p1.addProvinces(c);
c = new provinceCN("云南省","879","思茅市")
p1.addProvinces(c);
c = new provinceCN("云南省","876","文山市")
p1.addProvinces(c);
c = new provinceCN("云南省","876","文山壮族苗族自治州")
p1.addProvinces(c);
c = new provinceCN("云南省","691","西双版纳傣族自治州")
p1.addProvinces(c);
c = new provinceCN("云南省","877","玉溪市")
p1.addProvinces(c);
c = new provinceCN("云南省","870","昭通市")
p1.addProvinces(c);
c = new provinceCN("云南省","887","中甸市")
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","浙江省","浙江省");
c = new provinceCN("浙江省","574","慈溪")
p1.addProvinces(c);
c = new provinceCN("浙江省","579","东阳市")
p1.addProvinces(c);
c = new provinceCN("浙江省","573","海宁市")
p1.addProvinces(c);
c = new provinceCN("浙江省","571","杭州市")
p1.addProvinces(c);
c = new provinceCN("浙江省","572","湖州市")
p1.addProvinces(c);
c = new provinceCN("浙江省","573","嘉兴市")
p1.addProvinces(c);
c = new provinceCN("浙江省","570","江山市")
p1.addProvinces(c);
c = new provinceCN("浙江省","576","椒江市")
p1.addProvinces(c);
c = new provinceCN("浙江省","579","金华市")
p1.addProvinces(c);
c = new provinceCN("浙江省","579","兰溪市")
p1.addProvinces(c);
c = new provinceCN("浙江省","578","丽水市")
p1.addProvinces(c);
c = new provinceCN("浙江省","576","临海市")
p1.addProvinces(c);
c = new provinceCN("浙江省","574","宁波市")
p1.addProvinces(c);
c = new provinceCN("浙江省","570","衢州市")
p1.addProvinces(c);
c = new provinceCN("浙江省","577","瑞安市")
p1.addProvinces(c);
c = new provinceCN("浙江省","575","上虞市")
p1.addProvinces(c);
c = new provinceCN("浙江省","575","绍兴市")
p1.addProvinces(c);
c = new provinceCN("浙江省","580","嵊泗")
p1.addProvinces(c);
c = new provinceCN("浙江省","575","嵊州市")
p1.addProvinces(c);
c = new provinceCN("浙江省","576","台州市")
p1.addProvinces(c);
c = new provinceCN("浙江省","573","桐乡市")
p1.addProvinces(c);
c = new provinceCN("浙江省","577","温州市")
p1.addProvinces(c);
c = new provinceCN("浙江省","571","萧山市")
p1.addProvinces(c);
c = new provinceCN("浙江省","579","永康市")
p1.addProvinces(c);
c = new provinceCN("浙江省","579","义乌市")
p1.addProvinces(c);
c = new provinceCN("浙江省","574","余姚市")
p1.addProvinces(c);
c = new provinceCN("浙江省","580","舟山市")
p1.addProvinces(c);
c = new provinceCN("浙江省","575","诸暨市")
p1.addProvinces(c);
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","重庆","重庆");
c = new provinceCN("重庆","023","巴南区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","北碚区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","璧山县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","长寿区 ")
p1.addProvinces(c);
c = new provinceCN("重庆","023","城口县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","大足县 ")
p1.addProvinces(c);
c = new provinceCN("重庆","023","垫江县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","渡口区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","丰都县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","奉节县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","涪陵区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","涪陵市")
p1.addProvinces(c);
c = new provinceCN("重庆","023","合川市")
p1.addProvinces(c);
c = new provinceCN("重庆","023","江北区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","江津市")
p1.addProvinces(c);
c = new provinceCN("重庆","023","九龙坡区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","开县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","梁平县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","南岸区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","南川市")
p1.addProvinces(c);
c = new provinceCN("重庆","023","彭水苗族土家族自治县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","綦江县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","黔江区 ")
p1.addProvinces(c);
c = new provinceCN("重庆","023","荣昌县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","沙坪坝区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","石柱土家族自治县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","双桥区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","铜梁县 ")
p1.addProvinces(c);
c = new provinceCN("重庆","023","潼南县 ")
p1.addProvinces(c);
c = new provinceCN("重庆","023","万盛区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","万县市")
p1.addProvinces(c);
c = new provinceCN("重庆","023","万州区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","巫山县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","巫溪县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","武隆县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","秀山土家族苗族自治县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","永川市")
p1.addProvinces(c);
c = new provinceCN("重庆","023","酉阳土家族苗族自治县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","渝北区")
p1.addProvinces(c);
c = new provinceCN("重庆","023","云阳县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","忠县")
p1.addProvinces(c);
c = new provinceCN("重庆","023","渝中区")
p1.addProvinces(c);
//lxh add
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","中国香港","香港");
provincesListArr = provincesListArr.concat(p1);
var p1 = new provincesList("中国","中国台湾","台湾");
//lxh add edn
cur = new Country("中国","中国", "86", "1");
CountryArrHot = CountryArrHot.concat(cur);
CountryArrCN = CountryArrCN.concat(cur);
cur.addBoard(new Board("中国","安徽省","安徽"))
cur.addBoard(new Board("中国","北京","北京"))
cur.addBoard(new Board("中国","福建省","福建"))
cur.addBoard(new Board("中国","甘肃省","甘肃"))
cur.addBoard(new Board("中国","广东省","广东"))
cur.addBoard(new Board("中国","广西省","广西"))
cur.addBoard(new Board("中国","贵州省","贵州"))
cur.addBoard(new Board("中国","海南省","海南"))
cur.addBoard(new Board("中国","河北省","河北"))
cur.addBoard(new Board("中国","河南省","河南"))
cur.addBoard(new Board("中国","黑龙江省","黑龙江"))
cur.addBoard(new Board("中国","湖北省","湖北"))
cur.addBoard(new Board("中国","湖南省","湖南"))
cur.addBoard(new Board("中国","吉林省","吉林"))
cur.addBoard(new Board("中国","江苏省","江苏"))
cur.addBoard(new Board("中国","江西省","江西"))
cur.addBoard(new Board("中国","辽宁省","辽宁"))
cur.addBoard(new Board("中国","内蒙古自治区","内蒙古"))
cur.addBoard(new Board("中国","宁夏回族自治区","宁夏"))
cur.addBoard(new Board("中国","青海省","青海"))
cur.addBoard(new Board("中国","山东省","山东"))
cur.addBoard(new Board("中国","山西省","山西"))
cur.addBoard(new Board("中国","陕西省","陕西"))
cur.addBoard(new Board("中国","上海","上海"))
cur.addBoard(new Board("中国","四川省","四川"))
cur.addBoard(new Board("中国","天津","天津"))
cur.addBoard(new Board("中国","西藏自治区","西藏"))
cur.addBoard(new Board("中国","新疆维吾尔自治区","新疆"))
cur.addBoard(new Board("中国","云南省","云南"))
cur.addBoard(new Board("中国","浙江省","浙江"))
cur.addBoard(new Board("中国","重庆","重庆"))
//lxh add
cur.addBoard(new Board("","中国香港","香港"))
cur.addBoard(new Board("","中国台湾","台湾"))
cur.addBoard(new Board("","中国澳门","澳门"))
//lxh add end 
cur = new Country("中国香港","中国香港", "852", "2");
CountryArrHot = CountryArrHot.concat(cur);
CountryArrCN = CountryArrCN.concat(cur);
cur = new Country("中国台湾","中国台湾", "886", "2");
CountryArrHot = CountryArrHot.concat(cur);
CountryArrCN = CountryArrCN.concat(cur);
cur = new Country("中国澳门","中国澳门", "853", "2");
CountryArrHot = CountryArrHot.concat(cur);
CountryArrCN = CountryArrCN.concat(cur);
cur = new Country("Singapore","Singapore", "65", "0");
CountryArrHot = CountryArrHot.concat(cur);
CountryArrCN = CountryArrCN.concat(cur);
cur = new Country("其他国家/地区","其他国家/地区", "", "0");
CountryArrHot = CountryArrHot.concat(cur);
CountryArrCN = CountryArrCN.concat(cur);
provincesListArr = provincesListArr.concat(p1);
var tb1 = div1;
var tb2 = div2;
var tb3 = div3;
var tb4 = div4;
var tb5 = div5;
var tb6 = div6;
var selectCountryList = "all";
if( "中国" == "中国") {
selectCountryList = "中国";
}else if( "中国香港" == "中国" || "中国台湾" == "中国" || "Singapore" == "中国" || "中国澳门"  ==  "中国"){
selectCountryList = "hot";
}
var CountryListCN = form.CountryListCN
var CountryListHot = form.CountryListHot
var CountryForm = form.CountryList
for(var i=0;i < CountryArrCN.length;i++){
CountryListCN.options[i] = new Option(CountryArrCN[i].title,CountryArrCN[i].id);
CountryListHot.options[i] = new Option(CountryArrCN[i].title,CountryArrCN[i].id);
if(CountryArrHot[i].id == "中国") {
CountryListCN.options[i].selected=true;
CountryListHot.options[i].selected=true;
}
}
var boardForm = form.province1;
var provinceCN = form.provinceCN;
var cityCN = form.cityCN;
//var cityCN = form.cityCN;
var provinceListHot = form.provinceListHot;
var provinceTextHot = form.provinceTextHot;
var Province1 = form.province1;
var Province2 = form.province2;
var selectedProvinceName = "";
var selectedCountryName = "";
var selectedCityName = "";
for (var i=0;i<CountryArr.length;i++) {
CountryForm.options[i+1]=new Option(CountryArr[i].title,CountryArr[i].id);
if(CountryArr[i].id == "中国")
CountryForm.options[i+1].selected=true;
}
if("中国" == selectCountryList){
changeCountry(CountryListCN,selectCountryList);
}else if("hot" == selectCountryList){
changeCountry(CountryListHot,selectCountryList);
}else {
changeCountry(CountryForm,selectCountryList);
}
var len = provinceCN.options.length;
for (var i=0;i<len;i++) {
if(provinceCN.options[i].value == "" || provinceCN.options[i].value == "$group.Province.Value") {
provinceCN.options[i].selected=true;
selectedProvinceName = provinceCN.options[i].text;
}
}
len = boardForm.options.length;
for (var i=0;i<len;i++) {
if(boardForm.options[i].value == "$group.Province.Value") {
boardForm.options[i].selected=true;
}
}
changeProvinceList(provinceCN);
// if ( mm==0) 
//  LastProvince="";
//else
LastProvince=ProvinceStr;
len = cityCN.options.length;
for(var i = 0;i < len; i++) {
if(cityCN.options[i].value == ""){
cityCN.options[i].selected = true;
//changeCity(cityCN);
len = cityCN.options.length;
for(var i = 0;i < len; i++){
if(cityCN.options[i].value == "$group.City.Value") {
cityCN.options[i].selected = true;
selectedCityName =  cityCN.options[i].text;
}
}
}
}
function beginAddress(){
var selectFlag;
var selectIndex
if (document.form.J_z_Z_Country.value=="中国"){
list=document.form.CountryListCN;
selectFlag="中国";
selectIndex=0;
}else if(document.form.J_z_Z_Country.value=="中国香港" || document.form.J_z_Z_Country.value=="中国台湾" ||document.form.J_z_Z_Country.value=="Singapore"   ||document.form.J_z_Z_Country.value == "中国澳门"){
list=document.form.CountryListHot;
selectFlag="all";
if(document.form.J_z_Z_Country.value=="中国香港"){
selectIndex=1;
}else if(document.form.J_z_Z_Country.value=="中国台湾"){
selectIndex=2;
}else if(document.form.J_z_Z_Country.value=="中国澳门"){
selectIndex=3;
}else if(document.form.J_z_Z_Country.value=="Singapore"){
selectIndex=4;
}
}else{
list=document.form.CountryList;
selectFlag="all";
}
if(selectFlag == "中国" || selectFlag == "hot" ) {
if(selectIndex == 0){
selectFlag = "中国"
}else if( selectIndex == 5 ){
selectFlag = "all";
selectIndex = 1;
}else{
selectFlag = "hot";
}
}else if(selectFlag == "all" ){
var cn = document.form.J_z_Z_Country.value;
if("中国香港" == cn || "中国台湾" == cn || "Singapore" == cn || "中国澳门" == cn ){
selectFlag = "hot";
if("中国香港" == cn) {
selectIndex = 1;
}
if("中国台湾" == cn) {
selectIndex = 2;
}
if("中国澳门" == cn) {
selectIndex = 3;
}
if("Singapore" == cn) {
selectIndex = 4;
}
}else {
selectFlag = "all";
}
}
if ( selectFlag == "all" && selectIndex<=0) {
CountryForm.options[0].selected=true;
var len = boardForm.options.length;
for (var i=len-1;i>0;i--){
boardForm.options[i]=null;
}
}
else {
var countryname;
countryname=form.J_z_Z_Country.value;
selectCountryList = selectFlag;
tb6.style.display="block";
form.notCNCity.value = "";
form.province2.value = "";
if("中国" == countryname) {
var provincecnSelected = provinceCN.selectedIndex;
var boardscn = CountryArrCN[selectIndex].getOptions();
for (var i=0;i<form.provinceCN.options.length;i++) {
if(form.provinceCN.options[i].text == form.J_z_Z_Province.value)
form.provinceCN.options[i].selected=true;
}
changeProvinceList(form.provinceCN);
for (var i=0;i<form.cityCN.options.length;i++) {
if(form.cityCN.options[i].text == form.J_z_Z_City.value)
form.cityCN.options[i].selected=true;
}
selectCountryList = "中国";
tb1.style.display="block";
tb2.style.display="none";
tb3.style.display="none";
tb4.style.display="none";
tb5.style.display="none";
tb6.style.display="none";
}else if("中国香港" == countryname || "中国台湾" == countryname || "Singapore" == countryname || "中国澳门" == countryname ) {
selectCountryList = "hot";
for (var i=0;i<form.CountryListHot.options.length;i++) {
if(form.CountryListHot.options[i].text == countryname)
form.CountryListHot.options[i].selected=true;
}
tb1.style.display="none";
tb2.style.display="block";
tb3.style.display="none";
tb4.style.display="none";
form.notCNCity.value = form.J_z_Z_City.value;
form.province1.value = form.J_z_Z_Province.value;
form.province2.value = form.J_z_Z_Province.value;
if("中国香港" == countryname || "中国台湾" == countryname || "中国澳门" == countryname) {
tb5.style.display="none";
}else {
tb5.style.display="block";
}
}else {
for (var i=0;i<form.CountryList.options.length;i++) {
if(form.CountryList.options[i].text == countryname)
form.CountryList.options[i].selected=true;
}
form.notCNCity.value = form.J_z_Z_City.value;
form.province1.value = form.J_z_Z_Province.value;
form.province2.value = form.J_z_Z_Province.value;
tb1.style.display="none";
tb2.style.display="none";
tb3.style.display="block";
tb4.style.display="none";
if ("中国澳门" != countryname){
tb5.style.display="block";
}
}
}
}
beginAddress();
function DoFilter() {
/*
if (form.w.value=="" || form.w.value=="输入关键字")
{
alert("请输入关键字！");
form.w.focus();
return false;
}
*/
//本页中有,省份过滤,属性过滤,买卖通会员过滤,时间和经营模式过滤
var act = form.action;

if( form.z){
if("中国" == selectCountryList) {
form.J_z_Z_Country.value = "中国";
var provinceSelectedIndex = form.provinceCN.selectedIndex;
if( provinceSelectedIndex < 0)
provinceSelectedIndex = 0;
form.J_z_Z_Province.value = form.provinceCN.options[provinceSelectedIndex].value;
var capitalSelectIndex = form.cityCN.selectedIndex;
if( capitalSelectIndex < 0)
capitalSelectIndex = 0;
var citySelectIndex = form.cityCN.selectedIndex;
if( citySelectIndex < 0)
citySelectIndex = 0;
form.J_z_Z_City.value = form.cityCN.options[citySelectIndex].value;
}else if( "hot" == selectCountryList ) {
var country = CountryArrHot[CountryListHot.selectedIndex];
form.J_z_Z_Country.value = country.id;
if(country.hasProvince=="0") {
form.J_z_Z_Province.value = form.province2.value;
}
else {
form.J_z_Z_Province.value = ""
}
form.J_z_Z_City.value = form.notCNCity.value;
}else {
var country = CountryArr[CountryForm.selectedIndex-1];
form.J_z_Z_Country.value = country.id;
if(CountryArr[form.CountryList.selectedIndex-1].hasProvince=="0") {
form.J_z_Z_Province.value = form.province2.value;
}
else if (CountryArr[form.CountryList.selectedIndex-1].hasProvince=="1" ) {
var selectedIndex = form.province1.selectedIndex;
if( selectedIndex < 0)
selectedIndex = 0;
form.J_z_Z_Province.value = form.province1.options[selectedIndex].value;
}
else {
form.J_z_Z_Province.value = ""
}
form.J_z_Z_City.value = form.notCNCity.value;
}
//form.submit();
if(selectCountryList != "hot" && form.J_z_Z_Province.value != "" && form.J_z_Z_Province.value != "(省级地区)")
{
if(form.J_z_Z_City.value != "" && form.J_z_Z_City.value != "(城市)")
{
form.z.value = form.J_z_Z_Country.value + ":" + form.J_z_Z_Province.value + ":" +form.J_z_Z_City.value
}
else
{
form.z.value = form.J_z_Z_Country.value + ":" + form.J_z_Z_Province.value;
}
}
else if(selectCountryList == "hot" && form.J_z_Z_Country.value =="Singapore")
{
if(form.J_z_Z_City.value != "" && form.J_z_Z_City.value != "(城市)")
form.z.value = form.J_z_Z_Country.value + ":" + form.J_z_Z_Province.value + ":" + form.J_z_Z_City.value;
else
form.z.value = form.J_z_Z_Country.value + form.J_z_Z_Province.value;			
}
else
{
if(form.J_z_Z_City.value != "" && form.J_z_Z_City.value != "(城市)")
form.z.value = form.J_z_Z_Country.value + ":" + form.J_z_Z_City.value;
else
form.z.value = form.J_z_Z_Country.value;
}
if(form.z.value == "中国")
form.z.value = "";
if(form.z.value == "中国:中国香港")
form.z.value = "中国香港";
if(form.z.value == "中国:中国澳门")
form.z.value = "中国澳门";
if(form.z.value == "中国:中国台湾")
form.z.value = "中国台湾";
//省份
act += ("&z=" + form.z.value);
}
//属性
if(form.propertycount)
{
var pCount = parseInt(form.propertycount.value);
var pValue = "";
var tValue = "";
for (var lp = 0;lp<pCount;lp++)
{
var objName = document.getElementById('h' + lp);
if (objName != null)
{
tValue = objName.options[objName.selectedIndex].value;
if(tValue != "")
pValue += (tValue + ";");	
}
}
act += "&h=" + pValue;
}
//买卖通会员
if(form.a && form.a.checked)
act += "&a=1";

//时间
act += "&d=" + form.d.options[form.d.selectedIndex].value;
//经营模式
if(form.j)
act += "&j=" + form.j.options[form.j.selectedIndex].value;
//报价查询
if(form.g && form.l)
act = act + "&g=" + form.g.value + "&l=" + form.l.value;
if(form.f && form.f.checked)
act += "&f=1";
//IM在线查询
if(form.o && form.o.checked)
act += "&o=1";
//关键字
if(form.w)
	act += "&w=" + form.w.value;
//紧急求购
if(form.b && form.b.checked)
act += "&b=5";
window.location.href = act;
return false;
}

//初始化选择状态
changeAllStatus();
function resetAllStatus()
{
var elems = document.form.elements;
var e;
var ld;
for(var i=0;i<elems.length;i++)
{
e = elems[i];
if(e && e.type == "select-one")
e.selectedIndex = 0;
else if(e && e.type == "checkbox")
e.checked = false;	
else if(e && e.type == "text")
e.value = "";
}
changeAllStatus();
}
function changeAllStatus(){
var elems = document.form.elements;
var e;
var Id;
for(var i=0;i<elems.length;i++){
e = elems[i];
if(e && e.type!="hidden" && e.type!="submit" && e.type!="button"){
Id = e.name +"Status";
changeStatus(e,Id);
}
}
}
//改变选择是否选择的状态
function changeStatus(sel,id){
var status = document.getElementById(id);
if(sel == null || status == null)
return false;
if(sel.value=="" || sel.value == 0){
status.innerHTML="<img width=18 height=15 src=/imagev31/noselected.gif border=0>";
}else{
status.innerHTML="<img width=18 height=15 src=/imagev31/selected.gif border=0>";
trace_f='f';
}
}
function changeAreaAndStatus(province){
changeProvinceList(province);
changeStatus(province,'provinceCNStatus');
changeStatus(citysel,'cityCNStatus');
}