var biz;
var speed=1000;
var pre=1;
var objDate;
var objTime;
var returnval;
var timeOffset;
var timerB;

function doChange(){
	var selectValue = document.getElementById("To").value;
	var floatTime = parseFloat(selectValue.replace(":30",".5"));
	timeOffset = floatTime * 1000 * 60 * 60;
	timerB=window.setTimeout("setCurrTime()",speed);
}
function setCurrTime(){
    dB = new Date();
    gtB = dB.getTime();
    if (navigator.appVersion.substring(0,3) == "2.0"){
      offset = (dB.getTimezoneOffset()*60*1000);
	}else{
      offset = -(dB.getTimezoneOffset()*60*1000);
	}
    gtB = gtB + offset;
    gtB = gtB + timeOffset;
    dB.setTime(gtB);
    var strTime = dB.toGMTString();
    strTime = strTime.substr(0,strTime.length-4);
    document.getElementById("worldtime").innerText = strTime;
    tidB=window.setTimeout("setCurrTime()",speed);
}


var astrASIA = new Array();
astrASIA[0] = new Array();
astrASIA[1] = new Array();
astrASIA[0][0] = "-4:30"; astrASIA[1][0] = "Abadan 阿巴丹[伊朗]";
astrASIA[0][1] = "-4"; astrASIA[1][1] = "Abu Dhabi 阿布扎比[阿联酋]";
astrASIA[0][2] = "-5"; astrASIA[1][2] = "Aden 亚丁[也门]";
astrASIA[0][3] = "-6"; astrASIA[1][3] = "Amman 安曼[约旦]";
astrASIA[0][4] = "-6"; astrASIA[1][4] = "Ankara 安卡拉[土耳其]";
astrASIA[0][5] = "-5"; astrASIA[1][5] = "Baghdad 巴格达[伊拉克]";
astrASIA[0][6] = "-6"; astrASIA[1][6] = "Baku 巴库[阿塞拜疆]";
astrASIA[0][7] = "0"; astrASIA[1][7] = "Bandar Seri Begawan 斯里巴加湾港[文莱]";
astrASIA[0][8] = "-1"; astrASIA[1][8] = "Bangkok 曼谷[泰国]";
astrASIA[0][9] = "0"; astrASIA[1][9] = "BeiJing 北京[中国]";
astrASIA[0][10] = "-6"; astrASIA[1][10] = "Beirut 贝鲁特[黎巴嫩]";
astrASIA[0][11] = "-2:30"; astrASIA[1][11] = "Bombay 孟买[印度]";
astrASIA[0][12] = "-2:30"; astrASIA[1][12] = "Calcutta 加尔各答[印度]";
astrASIA[0][13] = "-2:30"; astrASIA[1][13] = "Colombo 科伦坡[斯里兰卡]";
astrASIA[0][14] = "-6"; astrASIA[1][143] = "Damascus 大马士革[叙利亚]";
astrASIA[0][15] = "-2"; astrASIA[1][15] = "Dhaka 达卡[孟加拉]";
astrASIA[0][16] = "-1"; astrASIA[1][16] = "Djakarta 雅加达[印度尼西亚]";
astrASIA[0][17] = "0"; astrASIA[1][17] = "Guangzhou 广州[中国]";
astrASIA[0][18] = "-1"; astrASIA[1][18] = "Hanoi 河内[越南]";
astrASIA[0][19] = "0"; astrASIA[1][19] = "Hong Kong 中国香港";
astrASIA[0][20] = "0"; astrASIA[1][20] = "Irkutsk 伊尔库次克[俄罗斯]";
astrASIA[0][21] = "-3"; astrASIA[1][21] = "Islamabad 伊斯兰堡[巴基斯坦]";
astrASIA[0][22] = "-6"; astrASIA[1][22] = "Jerusalem 耶路撒冷[巴勒斯坦]";
astrASIA[0][23] = "-3"; astrASIA[1][23] = "Karachi 卡拉奇[巴基斯坦]";
astrASIA[0][24] = "-2:30"; astrASIA[1][24] = "Katmandu 加德满都[尼泊尔]";
astrASIA[0][25] = "0"; astrASIA[1][25] = "Kuala Lumpur 吉隆坡[马来西亚]";
astrASIA[0][26] = "-5"; astrASIA[1][26] = "Kuwait 科威特[科威特]";
astrASIA[0][27] = "+1"; astrASIA[1][27] = "Kyoto 京都[日本]";
astrASIA[0][28] = "0"; astrASIA[1][28] = "Macao 澳门地区";
astrASIA[0][29] = "0"; astrASIA[1][29] = "Manila 马尼拉[菲律宾]";
astrASIA[0][30] = "-5"; astrASIA[1][30] = "Mecca 麦加[沙特]";
astrASIA[0][31] = "+1"; astrASIA[1][31] = "Nagasaki 长崎[日本]";
astrASIA[0][32] = "-2:30"; astrASIA[1][32] = "New Delhi 新德里[印度]";
astrASIA[0][33] = "+1"; astrASIA[1][33] = "Nikolayevsk-on-Amure尼古拉耶夫斯克(庙街)[俄罗斯]";
astrASIA[0][34] = "-3"; astrASIA[1][34] = "Omsk 鄂木斯克[俄罗斯]";
astrASIA[0][35] = "+1"; astrASIA[1][35] = "Osaka 大阪[日本]";
astrASIA[0][36] = "-1"; astrASIA[1][36] = "Phnom Penh 金边[柬埔寨]";
astrASIA[0][37] = "+1"; astrASIA[1][37] = "Pyongyang 平壤[朝鲜]";
astrASIA[0][38] = "-1:30"; astrASIA[1][38] = "Rangoon 仰光[缅甸]";
astrASIA[0][39] = "-3"; astrASIA[1][39] = "Rawalpindi 拉瓦尔品第[巴基斯坦]";
astrASIA[0][40] = "+1"; astrASIA[1][40] = "Seoul 汉城[南朝鲜]";
astrASIA[0][41] = "0"; astrASIA[1][41] = "Shanghai 上海[中国]";
astrASIA[0][42] = "0"; astrASIA[1][42] = "Singapore 新加坡[新加坡]";
astrASIA[0][43] = "0"; astrASIA[1][43] = "Taibei 台北[中国]";
astrASIA[0][44] = "-4:30"; astrASIA[1][44] = "Tehran 德黑兰[伊朗]";
astrASIA[0][45] = "+1"; astrASIA[1][45] = "Tokyo 东京[日本]";
astrASIA[0][46] = "0"; astrASIA[1][46] = "Ulan Bator 乌兰巴托[蒙古]";
astrASIA[0][47] = "+2"; astrASIA[1][47] = "Vladivostok 符拉迪沃斯托克(海参崴)[俄罗斯]";
astrASIA[0][48] = "+1"; astrASIA[1][48] = "Yokohama 横滨[日本]";   

var astrEurope = new Array();
astrEurope[0] = new Array();
astrEurope[1] = new Array();
astrEurope[0][0] = "-8"; astrEurope[1][0] = "Aberdeen 阿伯丁[英国]";
astrEurope[0][1] = "-7"; astrEurope[1][1] = "Amsterdam 阿姆斯特丹[荷兰]";
astrEurope[0][2] = "-7"; astrEurope[1][2] = "Antwerp 安特卫普[比利时]";
astrEurope[0][3] = "-6"; astrEurope[1][3] = "Athens 雅典[希腊]";
astrEurope[0][4] = "-8"; astrEurope[1][4] = "Belfast 贝尔法斯特[英国]";
astrEurope[0][5] = "-7"; astrEurope[1][5] = "Belgrade 贝尔格莱德[南斯拉夫]";
astrEurope[0][6] = "-7"; astrEurope[1][6] = "Berlin 柏林[德国]";
astrEurope[0][7] = "-8"; astrEurope[1][7] = "Birmingham 伯明翰[英国]";
astrEurope[0][8] = "-7"; astrEurope[1][8] = "Bonn 波恩[德国]";
astrEurope[0][9] = "-7"; astrEurope[1][9] = "Brussels 布鲁塞尔[比利时]";
astrEurope[0][10] = "-6"; astrEurope[1][10] = "Bucharest 布加勒斯特[罗马尼亚]";
astrEurope[0][11] = "-7"; astrEurope[1][11] = "Budapest 布达佩斯[匈牙利]";
astrEurope[0][12] = "-6"; astrEurope[1][12] = "Constantsa 康斯坦萨[罗马尼亚]";
astrEurope[0][13] = "-7"; astrEurope[1][13] = "Copenhagen 哥本哈根[丹麦]";
astrEurope[0][14] = "-8"; astrEurope[1][14] = "Dublin 都柏林[爱尔兰]";
astrEurope[0][15] = "-8"; astrEurope[1][15] = "Edinburgh 爱丁堡[英国]";
astrEurope[0][16] = "-7"; astrEurope[1][16] = "Frankfurt 法兰克福[德国]";
astrEurope[0][17] = "-7"; astrEurope[1][17] = "Gdansk 格但斯克[波兰]";
astrEurope[0][18] = "-7"; astrEurope[1][18] = "Geneva 日内瓦[瑞士]";
astrEurope[0][19] = "-7"; astrEurope[1][19] = "Genoa 热那亚[意大利]";
astrEurope[0][20] = "-7"; astrEurope[1][20] = "Gibraltar 直布罗陀[英国殖民地]";
astrEurope[0][21] = "-8"; astrEurope[1][21] = "Glasgow 格拉斯哥[英国]";
astrEurope[0][22] = "-7"; astrEurope[1][22] = "Hamburg 汉堡[德国]";
astrEurope[0][23] = "-6"; astrEurope[1][23] = "Helsinki 赫尔辛基[芬兰]";
astrEurope[0][24] = "-6"; astrEurope[1][24] = "Istanbul 伊斯坦布尔[土耳其]";
astrEurope[0][25] = "-5"; astrEurope[1][25] = "Kiev 基辅[乌克兰]";
astrEurope[0][26] = "-8"; astrEurope[1][26] = "Leeds 利兹[英国]";
astrEurope[0][27] = "-7"; astrEurope[1][27] = "Leipzig 莱比锡[德国]";
astrEurope[0][28] = "-8"; astrEurope[1][28] = "Lisbon 里斯本[葡萄牙]";
astrEurope[0][29] = "-8"; astrEurope[1][29] = "Liverpool 利物浦[英国]";
astrEurope[0][30] = "-8"; astrEurope[1][30] = "London 伦敦[英国]";
astrEurope[0][31] = "-7"; astrEurope[1][31] = "Madrid 马德里[西班牙]";
astrEurope[0][32] = "-8"; astrEurope[1][32] = "Manchester 曼彻斯特[英国]";
astrEurope[0][33] = "-7"; astrEurope[1][33] = "Marseilles 马塞[法国]";
astrEurope[0][34] = "-7"; astrEurope[1][34] = "Milan 米兰[意大利]";
astrEurope[0][35] = "-5"; astrEurope[1][35] = "Moscow 莫斯科[俄罗斯]";
astrEurope[0][36] = "-7"; astrEurope[1][36] = "Munich 慕尼黑[德国]";
astrEurope[0][37] = "-5"; astrEurope[1][37] = "Murmansk 摩尔曼斯克[俄罗斯]";
astrEurope[0][38] = "-5"; astrEurope[1][38] = "Odessa 敖德萨[乌克兰]";
astrEurope[0][39] = "-7"; astrEurope[1][39] = "Oslo 奥斯陆[挪威]";
astrEurope[0][40] = "-7"; astrEurope[1][40] = "Paris 巴黎[法国]";
astrEurope[0][41] = "-7"; astrEurope[1][41] = "Prague 布拉格[捷克]";
astrEurope[0][42] = "-8"; astrEurope[1][42] = "Reykjavik 雷克雅未克[冰岛]";
astrEurope[0][43] = "-7"; astrEurope[1][43] = "Rome 罗马[意大利]";
astrEurope[0][44] = "-7"; astrEurope[1][44] = "Rotterdam 鹿特丹[荷兰]";
astrEurope[0][45] = "-5"; astrEurope[1][45] = "St. Peterburg 圣彼得堡[俄罗斯]";
astrEurope[0][46] = "-6"; astrEurope[1][46] = "Sofia 索非亚[保加利亚]";
astrEurope[0][47] = "-7"; astrEurope[1][47] = "Stockholm 斯德哥尔摩[瑞典]";
astrEurope[0][48] = "-7"; astrEurope[1][48] = "Tirana 地拉那[阿尔巴尼亚]";
astrEurope[0][49] = "-7"; astrEurope[1][49] = "Vatican 梵蒂冈[罗马教廷所在地]";
astrEurope[0][50] = "-7"; astrEurope[1][50] = "Venice 威尼斯[意大利]";
astrEurope[0][51] = "-7"; astrEurope[1][51] = "Vienna 维也纳[奥地利]";
astrEurope[0][52] = "-7"; astrEurope[1][52] = "Warsaw 华沙[波兰]";
astrEurope[0][53] = "-7"; astrEurope[1][53] = "Zurich 苏黎世[瑞士]";	
                      
var astrAMERICA = new Array();
astrAMERICA[0] = new Array();
astrAMERICA[1] = new Array();
astrAMERICA[0][0] = "-12"; astrAMERICA[1][0] = "Asuncion 亚松森[巴拉圭]";
astrAMERICA[0][1] = "-13"; astrAMERICA[1][1] = "Atlanta 亚特兰大[美国]";
astrAMERICA[0][2] = "-13"; astrAMERICA[1][2] = "Baltimore 巴尔的摩[美国]";
astrAMERICA[0][3] = "-11"; astrAMERICA[1][3] = "Belem 贝伦[巴西]";
astrAMERICA[0][4] = "-13"; astrAMERICA[1][4] = "Bogota 波哥大[哥伦比亚]";
astrAMERICA[0][5] = "-13"; astrAMERICA[1][5] = "Boston 波士顿[美国]";
astrAMERICA[0][6] = "-11"; astrAMERICA[1][6] = "Brasilia 巴西利亚[巴西]";
astrAMERICA[0][7] = "-11"; astrAMERICA[1][7] = "Buenos Aires 布宜诺斯艾利斯[阿根廷]";
astrAMERICA[0][8] = "-12"; astrAMERICA[1][8] = "Caracas 加拉加斯[委内瑞拉]";
astrAMERICA[0][9] = "-14"; astrAMERICA[1][9] = "Chicago 芝加哥[美国]";
astrAMERICA[0][10] = "-14"; astrAMERICA[1][10] = "Churchill 丘吉尔港[加拿大]";
astrAMERICA[0][11] = "-13"; astrAMERICA[1][11] = "Colon 科隆[巴拿马]";
astrAMERICA[0][12] = "-14"; astrAMERICA[1][12] = "Dallas 达拉斯[美国]";
astrAMERICA[0][13] = "-15"; astrAMERICA[1][13] = "Denver 丹佛[美国]";
astrAMERICA[0][14] = "-13"; astrAMERICA[1][14] = "Detroit 底特律[美国]";
astrAMERICA[0][15] = "-15"; astrAMERICA[1][15] = "Edmonton 埃德蒙顿[加拿大]";
astrAMERICA[0][16] = "-13"; astrAMERICA[1][16] = "Havana 哈瓦那[古巴]";
astrAMERICA[0][17] = "-14"; astrAMERICA[1][17] = "Houston 休斯敦[美国]";
astrAMERICA[0][18] = "-13"; astrAMERICA[1][18] = "Kingston 金斯敦[牙买加]";
astrAMERICA[0][19] = "-12"; astrAMERICA[1][19] = "La Paz 拉巴斯[玻利维亚]";
astrAMERICA[0][20] = "-16"; astrAMERICA[1][20] = "Las Vegas 拉斯韦加斯[美国]";
astrAMERICA[0][21] = "-13"; astrAMERICA[1][21] = "Lima 利马[秘鲁]";
astrAMERICA[0][22] = "-16"; astrAMERICA[1][22] = "Los Angeles 洛杉矶[美国]";
astrAMERICA[0][23] = "-14"; astrAMERICA[1][23] = "Mexico City 墨西哥城[墨西哥]";
astrAMERICA[0][24] = "-13"; astrAMERICA[1][24] = "Miami 迈阿密[美国]";
astrAMERICA[0][25] = "-11"; astrAMERICA[1][25] = "Montevideo 蒙得维的亚[乌拉圭]";
astrAMERICA[0][26] = "-13"; astrAMERICA[1][26] = "Montreal 蒙特利尔[加拿大]";
astrAMERICA[0][27] = "-14"; astrAMERICA[1][27] = "New Orleans 新奥尔良[美国]";
astrAMERICA[0][28] = "-13"; astrAMERICA[1][28] = "New York 纽约[美国]";
astrAMERICA[0][29] = "-13"; astrAMERICA[1][29] = "Ottawa 渥太华[加拿大]";
astrAMERICA[0][30] = "-13"; astrAMERICA[1][30] = "Panama 巴拿马城[巴拿马]";
astrAMERICA[0][31] = "-11"; astrAMERICA[1][31] = "Paramaribo 帕拉马里博[苏里南]";
astrAMERICA[0][32] = "-13"; astrAMERICA[1][32] = "Philadelphia 费城[美国]";
astrAMERICA[0][33] = "-13"; astrAMERICA[1][33] = "Pittsburgh 匹兹堡[美国]";
astrAMERICA[0][34] = "-12"; astrAMERICA[1][34] = "Port-of-Spain 西班牙港[特立尼达和多巴哥]";
astrAMERICA[0][35] = "-13"; astrAMERICA[1][35] = "Quebec 魁北克[加拿大]";
astrAMERICA[0][36] = "-11"; astrAMERICA[1][36] = "Ria de janeiro 里约热内卢[巴西]";
astrAMERICA[0][37] = "-14"; astrAMERICA[1][37] = "saint Louis 圣路易斯[美国]";
astrAMERICA[0][38] = "-15"; astrAMERICA[1][38] = "Salt Lake City 盐湖城[美国]";
astrAMERICA[0][39] = "-16"; astrAMERICA[1][39] = "San Diego 圣迭戈[美国]";
astrAMERICA[0][40] = "-16"; astrAMERICA[1][40] = "San Francisco 旧金山(圣弗兰西斯科)[美国]";
astrAMERICA[0][41] = "-12"; astrAMERICA[1][41] = "San Juan 圣胡安[波多黎各]";
astrAMERICA[0][42] = "-12"; astrAMERICA[1][42] = "Santiago 圣地亚哥[智利]";
astrAMERICA[0][43] = "-16"; astrAMERICA[1][43] = "Seattle 西雅图[美国]";
astrAMERICA[0][44] = "-13"; astrAMERICA[1][44] = "Toronto 多伦多[加拿大]";
astrAMERICA[0][45] = "-16"; astrAMERICA[1][45] = "Vancouver 温哥华[加拿大]";
astrAMERICA[0][46] = "-13"; astrAMERICA[1][46] = "Washington D.c.华盛顿[美国]";
astrAMERICA[0][47] = "-14"; astrAMERICA[1][47] = "Winnipeg 温尼伯[加拿大]";	
astrAMERICA[0][48] = "-17"; astrAMERICA[1][48] = "Anchorage 安克雷奇[美国]";
                      
var astrAFRICA = new Array();
astrAFRICA[0] = new Array(); 
astrAFRICA[1] = new Array();
astrAFRICA[0][0] = "-8"; astrAFRICA[1][0] = "Abidjan 阿比让[科特迪瓦]";
astrAFRICA[0][1] = "-5"; astrAFRICA[1][1] = "Addis Ababa 亚的斯亚贝巴[埃塞俄比亚]";
astrAFRICA[0][2] = "-6"; astrAFRICA[1][2] = "Alexandria 亚历山大[埃及]";
astrAFRICA[0][3] = "-7"; astrAFRICA[1][3] = "Algiers 阿尔及尔[阿尔及利亚]";
astrAFRICA[0][4] = "-8"; astrAFRICA[1][4] = "Bamako 巴马科[马里]";
astrAFRICA[0][5] = "-6"; astrAFRICA[1][5] = "Banghazi 班加西[利比亚]";
astrAFRICA[0][6] = "-6"; astrAFRICA[1][6] = "Beira 贝拉[莫桑比克]";
astrAFRICA[0][7] = "-7"; astrAFRICA[1][7] = "Brazzaville 布拉柴维尔[刚果]";
astrAFRICA[0][8] = "-6"; astrAFRICA[1][8] = "Cairo 开罗[埃及]";
astrAFRICA[0][9] = "-6"; astrAFRICA[1][9] = "Cape Town 开普敦[南非]";
astrAFRICA[0][10] = "-8"; astrAFRICA[1][10] = "Dakar 达喀尔[塞内加尔]";
astrAFRICA[0][11] = "-8"; astrAFRICA[1][11] = "Dar el Beida 达尔贝达(卡萨布兰卡)[摩洛哥]";
astrAFRICA[0][12] = "-5"; astrAFRICA[1][12] = "Dar es Salaam 达累斯萨拉姆[坦桑尼亚]";
astrAFRICA[0][13] = "-5"; astrAFRICA[1][13] = "Djibouti 吉布提[吉布提]";
astrAFRICA[0][140] = "-7"; astrAFRICA[1][14] = "Douala 杜阿拉[喀麦隆]";
astrAFRICA[0][15] = "-6"; astrAFRICA[1][15] = "Durban 德班[南非]";
astrAFRICA[0][16] = "-6"; astrAFRICA[1][16] = "Gaborone 哈博罗内[博茨瓦纳]";
astrAFRICA[0][17] = "-6"; astrAFRICA[1][17] = "Johannesburg 约翰内斯堡[南非]";
astrAFRICA[0][18] = "-5"; astrAFRICA[1][18] = "Kampala 坎帕拉[乌干达]";
astrAFRICA[0][19] = "-7"; astrAFRICA[1][19] = "Kano 卡诺[尼日利亚]";
astrAFRICA[0][20] = "-6"; astrAFRICA[1][20] = "Khartoum 喀土穆[苏丹]";
astrAFRICA[0][21] = "-7"; astrAFRICA[1][21] = "Kinshasa 金沙萨[民主刚果]";
astrAFRICA[0][22] = "-7"; astrAFRICA[1][22] = "Lagos 拉各斯[尼日利亚]";
astrAFRICA[0][23] = "-8"; astrAFRICA[1][23] = "Las Palmas 拉斯帕耳马斯[加那利群岛]";
astrAFRICA[0][24] = "-7"; astrAFRICA[1][24] = "Luanda 罗安达[安哥拉]";
astrAFRICA[0][25] = "-6"; astrAFRICA[1][25] = "Lusaka 卢萨卡[赞比亚]";
astrAFRICA[0][26] = "-6"; astrAFRICA[1][26] = "Maputo 马普托[莫桑比克]";
astrAFRICA[0][27] = "-5"; astrAFRICA[1][27] = "Mogadishu 摩加迪沙[索马里]";
astrAFRICA[0][28] = "-5"; astrAFRICA[1][28] = "Mombasa 蒙巴萨[肯尼亚]";
astrAFRICA[0][29] = "-8"; astrAFRICA[1][29] = "Monrovia 蒙罗维亚[利比里亚]";
astrAFRICA[0][30] = "-5"; astrAFRICA[1][30] = "Nairobi 内罗毕[肯尼亚]";
astrAFRICA[0][31] = "-7"; astrAFRICA[1][31] = "Ndjamena 恩贾梅纳[乍得]";
astrAFRICA[0][32] = "-8"; astrAFRICA[1][32] = "Niamey 尼亚美[尼日尔]";
astrAFRICA[0][33] = "-8"; astrAFRICA[1][33] = "Nouakchott 努瓦克肖特[毛里塔尼亚]";
astrAFRICA[0][34] = "-7"; astrAFRICA[1][34] = "Pointe-Noire 黑角[刚果]";
astrAFRICA[0][35] = "-4"; astrAFRICA[1][35] = "Port Louis 路易港[毛里求斯]";
astrAFRICA[0][36] = "-6"; astrAFRICA[1][36] = "Pretoria 比勒陀利亚[南非]";
astrAFRICA[0][37] = "-8"; astrAFRICA[1][37] = "Rabat 拉巴特[摩洛哥]";
astrAFRICA[0][38] = "-8"; astrAFRICA[1][38] = "Sao Tome 圣多美[圣多美和普林西比]";
astrAFRICA[0][39] = "-5"; astrAFRICA[1][39] = "Tananarive 塔那那利佛[马达加斯加]";
astrAFRICA[0][40] = "-6"; astrAFRICA[1][40] = "Tripoli 的黎波里[利比亚]";
astrAFRICA[0][41] = "-7"; astrAFRICA[1][41] = "Tunis 突尼斯[突尼斯]";
astrAFRICA[0][42] = "-6"; astrAFRICA[1][42] = "Windhoek 温得和克[纳米比亚]";	
                      	
var astrOceania = new Array();
astrOceania[0] = new Array();
astrOceania[1] = new Array();
astrOceania[0][0]="+2"; astrOceania[1][0] = "Agana 阿加尼亚[关岛]";
astrOceania[0][1]="-19"; astrOceania[1][1] = "Apia 阿皮亚[西萨摩亚]";
astrOceania[0][2]="+4"; astrOceania[1][2] = "Auckland 奥克兰[新西兰]";
astrOceania[0][3]="+2"; astrOceania[1][3] = "Brisbane 布里斯班[澳大利亚]";
astrOceania[0][4]="+2"; astrOceania[1][4] = "Canberra 堪培拉[澳大利亚]";
astrOceania[0][5]="0"; astrOceania[1][5] = "Fremantle 弗里曼特尔[澳大利亚]";
astrOceania[0][6]="+2"; astrOceania[1][6] = "Hobart 霍巴特[澳大利亚]";
astrOceania[0][7]="-18"; astrOceania[1][7] = "Honolulu 火奴鲁鲁(檀香山)[美国]";
astrOceania[0][8]="+2"; astrOceania[1][8] = "Melburne 墨尔本[澳大利亚]";
astrOceania[0][9]="+3"; astrOceania[1][9] = "Noumea 努美阿[法属新喀里多尼亚]";
astrOceania[0][10]="-18"; astrOceania[1][10] = "Papeete 帕皮提[法属波利尼西亚]";
astrOceania[0][11]="0"; astrOceania[1][11] = "Perth 佩思[澳大利亚]";
astrOceania[0][12]="+2"; astrOceania[1][12] = "Port Moresby 莫尔兹比港[巴布亚新几内亚]";
astrOceania[0][13]="+4"; astrOceania[1][13] = "Suva 苏瓦[斐济]";
astrOceania[0][14]="+2"; astrOceania[1][14] = "Sydney 悉尼[澳大利亚]";
astrOceania[0][15]="+3"; astrOceania[1][15] = "vila 维拉港[瓦努阿图]";
astrOceania[0][16]="+4"; astrOceania[1][16] = "Wellington 惠灵顿[新西兰]";			
	
function AddItem(a,b){
	AddToSelectBox(document.getElementById("From").value)
}
function AddToSelectBox(fromValue){
	var To = document.getElementById("To");    
	// Remove All
	var max = To.options.length-1 ;        
	for (var i=max;i>=0;i--){
		To.options.remove(i);
	}    
	if (fromValue == "ASIA"){
		var i;
		for (i=0;i<=48;i++){
			To.options.add(new Option(astrASIA[1][i],astrASIA[0][i]));
		}
	} else if (fromValue == "europe"){
		var i;
		for (i=0;i<=48;i++){
			To.options.add(new Option(astrEurope[1][i],astrEurope[0][i]));
		}
	} else if (fromValue == "AMERICA"){
		var i;
		for (i=0;i<=48;i++){
			To.options.add(new Option(astrAMERICA[1][i],astrAMERICA[0][i]));
		}
	}else if (fromValue == "AFRICA"){
		var i;
		for (i=0;i<=48;i++){
			To.options.add(new Option(astrAFRICA[1][i],astrAFRICA[0][i]));
		}
	}else if (fromValue == "Oceania"){
		var i;
		for (i=0;i<=48;i++){
			To.options.add(new Option(astrOceania[1][i],astrOceania[0][i]));
		}
	}    
	document.getElementById("To").style.width = "160";
}
function init(){
	document.getElementById("From").style.width ="160";
	AddToSelectBox("ASIA");
	var max = To.options.length-1 ;        
	for (var i=max;i>=0;i--){
		if (To.options[i].text == "BeiJing 北京[中国]"){
			To.options[i].selected = true;
			break;
		}
	}
	timeOffset = 0;
	timerB=window.setTimeout("setCurrTime()",speed);
}
var xmlHttp;
function createXMLHttpRequest() {
   if (window.ActiveXObject) {
       xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
   } 
   else if (window.XMLHttpRequest) {
       xmlHttp = new XMLHttpRequest();
   }
}
function getRequestBackText( url ) {
	createXMLHttpRequest();
	var queryString = url+'&timestamp='+Math.random();
	xmlHttp.open("GET", queryString, false);
	try{
		xmlHttp.send();
	}catch( e ){
		return;
	}
	return xmlHttp.responseText;
}

