var ProvinceArray = new Array;
var ProvinceValue = new Array;
tCitys = new Array;
tCityv = new Array;
ProvinceArray[0] = '选择充值区域';
ProvinceValue[0] = '';
ProvinceArray[1] = '上海电信';
ProvinceValue[1] = '81';
tCitys[1] = new Array;
tCityv[1] = new Array;
tCitys[1][0] = '上海电信一区';
tCityv[1][0] = '320';
tCitys[1][1] = '上海电信二区';
tCityv[1][1] = '326';
ProvinceArray[2] = '广东电信';
ProvinceValue[2] = '82';
tCitys[2] = new Array;
tCityv[2] = new Array;
tCitys[2][0] = '广东电信一区';
tCityv[2][0] = '318';
tCitys[2][1] = '广东电信二区';
tCityv[2][1] = '327';
tCitys[2][2] = '广东电信三区';
tCityv[2][2] = '338';
tCitys[2][3] = '广东电信四区';
tCityv[2][3] = '339';
ProvinceArray[3] = '广西电信';
ProvinceValue[3] = '102';
tCitys[3] = new Array;
tCityv[3] = new Array;
tCitys[3][0] = '广西电信一区';
tCityv[3][0] = '353';
ProvinceArray[4] = '南方电信';
ProvinceValue[4] = '92';
tCitys[4] = new Array;
tCityv[4] = new Array;
tCitys[4][0] = '南方电信大区';
tCityv[4][0] = '342';
ProvinceArray[5] = '湖南电信';
ProvinceValue[5] = '91';
tCitys[5] = new Array;
tCityv[5] = new Array;
tCitys[5][0] = '湖南电信一区';
tCityv[5][0] = '341';
tCitys[5][1] = '湖南电信二区';
tCityv[5][1] = '340';
ProvinceArray[6] = '湖北电信';
ProvinceValue[6] = '85';
tCitys[6] = new Array;
tCityv[6] = new Array;
tCitys[6][0] = '湖北电信一区';
tCityv[6][0] = '328';
tCitys[6][1] = '湖北电信二区';
tCityv[6][1] = '329';
ProvinceArray[7] = '浙江电信';
ProvinceValue[7] = '86';
tCitys[7] = new Array;
tCityv[7] = new Array;
tCitys[7][0] = '浙江电信一区';
tCityv[7][0] = '325';
tCitys[7][1] = '浙江电信二区';
tCityv[7][1] = '349';
ProvinceArray[8] = '江苏电信';
ProvinceValue[8] = '94';
tCitys[8] = new Array;
tCityv[8] = new Array;
tCitys[8][0] = '江苏电信一区';
tCityv[8][0] = '344';
tCitys[8][1] = '江苏电信二区';
tCityv[8][1] = '357';
ProvinceArray[9] = '福建电信';
ProvinceValue[9] = '87';
tCitys[9] = new Array;
tCityv[9] = new Array;
tCitys[9][0] = '福建电信一区';
tCityv[9][0] = '324';
ProvinceArray[10] = '江西电信';
ProvinceValue[10] = '101';
tCitys[10] = new Array;
tCityv[10] = new Array;
tCitys[10][0] = '江西电信一区';
tCityv[10][0] = '352';
ProvinceArray[11] = '陕西电信';
ProvinceValue[11] = '88';
tCitys[11] = new Array;
tCityv[11] = new Array;
tCitys[11][0] = '陕西电信一区';
tCityv[11][0] = '330';
ProvinceArray[12] = '四川电信';
ProvinceValue[12] = '90';
tCitys[12] = new Array;
tCityv[12] = new Array;
tCitys[12][0] = '四川电信一区';
tCityv[12][0] = '333';
tCitys[12][1] = '四川电信二区';
tCityv[12][1] = '356';
ProvinceArray[13] = '重庆电信';
ProvinceValue[13] = '89';
tCitys[13] = new Array;
tCityv[13] = new Array;
tCitys[13][0] = '重庆电信一区';
tCityv[13][0] = '332';
ProvinceArray[14] = '安徽电信';
ProvinceValue[14] = '97';
tCitys[14] = new Array;
tCityv[14] = new Array;
tCitys[14][0] = '安徽电信一区';
tCityv[14][0] = '347';
ProvinceArray[15] = '云南电信';
ProvinceValue[15] = '98';
tCitys[15] = new Array;
tCityv[15] = new Array;
tCitys[15][0] = '云南电信一区';
tCityv[15][0] = '348';
ProvinceArray[16] = '北方网通';
ProvinceValue[16] = '93';
tCitys[16] = new Array;
tCityv[16] = new Array;
tCitys[16][0] = '北方网通大区';
tCityv[16][0] = '343';
ProvinceArray[17] = '辽宁网通';
ProvinceValue[17] = '84';
tCitys[17] = new Array;
tCityv[17] = new Array;
tCitys[17][0] = '辽宁网通一区';
tCityv[17][0] = '322';
tCitys[17][1] = '辽宁网通二区';
tCityv[17][1] = '323';
tCitys[17][2] = '辽宁网通三区';
tCityv[17][2] = '336';
ProvinceArray[18] = '黑龙江网通';
ProvinceValue[18] = '99';
tCitys[18] = new Array;
tCityv[18] = new Array;
tCitys[18][0] = '黑龙江网通区';
tCityv[18][0] = '350';
ProvinceArray[19] = '吉林网通';
ProvinceValue[19] = '100';
tCitys[19] = new Array;
tCityv[19] = new Array;
tCitys[19][0] = '吉林网通一区';
tCityv[19][0] = '351';
ProvinceArray[20] = '北京网通';
ProvinceValue[20] = '83';
tCitys[20] = new Array;
tCityv[20] = new Array;
tCitys[20][0] = '北京网通一区';
tCityv[20][0] = '319';
tCitys[20][1] = '北京网通二区';
tCityv[20][1] = '321';
tCitys[20][2] = '北京网通三区';
tCityv[20][2] = '334';
tCitys[20][3] = '北京网通四区';
tCityv[20][3] = '335';
ProvinceArray[21] = '山东网通';
ProvinceValue[21] = '96';
tCitys[21] = new Array;
tCityv[21] = new Array;
tCitys[21][0] = '山东网通一区';
tCityv[21][0] = '346';
tCitys[21][1] = '山东网通二区';
tCityv[21][1] = '358';
ProvinceArray[22] = '山西网通';
ProvinceValue[22] = '103';
tCitys[22] = new Array;
tCityv[22] = new Array;
tCitys[22][0] = '山西网通一区';
tCityv[22][0] = '354';
ProvinceArray[23] = '河南网通';
ProvinceValue[23] = '170';
tCitys[23] = new Array;
tCityv[23] = new Array;
tCitys[23][0] = '河南一区';
tCityv[23][0] = '345';
ProvinceArray[24] = '河北网通';
ProvinceValue[24] = '171';
tCitys[24] = new Array;
tCityv[24] = new Array;
tCitys[24][0] = '河北一区';
tCityv[24][0] = '355';


var init = 0;
	
function ProvinceOptionMenu()
{
	if(init == 0)
	{
		init = 1;
    var i;
    provincebox = $("area");
    for(i = 0; i < ProvinceArray.length; i++)
    {
    provincebox.options[i] = new Option(ProvinceArray[i],ProvinceValue[i]);
    }
    provincebox.length = i;
  }
}

function selectarea(obj)
{
$("ubzczarea1").value = obj.options[obj.selectedIndex].value + "||" + obj.options[obj.selectedIndex].text;
provincebox = $("area");
selcity = parseInt(provincebox.selectedIndex);
tCity = tCitys[selcity];
tCitv = tCityv[selcity];
citybox = $("serv");
if(tCity != null)
{
citybox = $("serv");
if (tCity.length>1){
citybox.options[0] = new Option("请选择充值服务器","");
for(i = 0; i < tCity.length; i++)
{
str = tCity[i];
citybox.options[i+1] = new Option(str, tCitv[i]);
}
citybox.length = i+1;
}
else
{
str = tCity[0];
citybox.options[0] = new Option(str,tCitv[0]);
citybox.length=1;
citybox.options[0].selected;
}
}
else{
if (citybox != null){
citybox.options[0] = new Option("请先选择充值区域","");
citybox.length = 1;}
}

$("ubzczarea2").value = citybox.options[0].value + "||" + citybox.options[0].text;
}


function SetServ(obj)
{
	$("ubzczarea2").value = obj.options[obj.selectedIndex].value + "||" + obj.options[obj.selectedIndex].text;
}

function checkmobile(obj)
{
	obj1 = $("ubzcztype");
	if(obj1.value == "" || obj.value == "")
	{
		alert("请填写接收密宝卡的手机号");
	}
	
	if(obj1.value != obj.value)
	{
		alert("接收密宝卡的手机号两次输入不一致");
	}
}
          
function TplShow()
{
	ProvinceOptionMenu();
}

TplShow();
