var arrGood,arrServer,arrPrice;
var unit='USD';
var paypal,egold,google,checked;
var ip='127.0.0.1';
kfmail='sale@virgolds.com';
skmail='paypal@jiandangame.com';
livechat='';
announce='';
advertisement='';
paypal='1';
egold='1';
google='1';
checked=0;
arrGood = new Array(12);
arrGood[0] = new Array(247,'10 Gold');
arrGood[1] = new Array(248,'20 Gold');
arrGood[2] = new Array(249,'30 Gold');
arrGood[3] = new Array(250,'50 Gold');
arrGood[4] = new Array(260,'100 Gold');
arrGood[5] = new Array(307,'60 Gold');
arrGood[6] = new Array(308,'70 Gold');
arrGood[7] = new Array(309,'80 Gold');
arrGood[8] = new Array(310,'90 Gold');
arrGood[9] = new Array(484,'200 Gold');
arrGood[10] = new Array(485,'300 Gold');
arrGood[11] = new Array(486,'500 Gold');
arrServer = new Array(11);
arrServer[0] = new Array(1046,'Arkenstone');
arrServer[1] = new Array(1047,'Brandywine');
arrServer[2] = new Array(1048,'Elendilmir');
arrServer[3] = new Array(1049,'Firefoot');
arrServer[4] = new Array(1050,'Gladden');
arrServer[5] = new Array(1051,'Landroval');
arrServer[6] = new Array(1052,'Meneldor');
arrServer[7] = new Array(1053,'Nimrodel');
arrServer[8] = new Array(1054,'Silverlode');
arrServer[9] = new Array(1055,'Vilya');
arrServer[10] = new Array(1056,'Windfola');
arrPrice= new Array(132);
arrPrice[0] = new Array(247,1046,'7.85');
arrPrice[1] = new Array(247,1047,'9.46');
arrPrice[2] = new Array(247,1048,'8.35');
arrPrice[3] = new Array(247,1049,'8.35');
arrPrice[4] = new Array(247,1050,'8.95');
arrPrice[5] = new Array(247,1051,'8.35');
arrPrice[6] = new Array(247,1052,'7.85');
arrPrice[7] = new Array(247,1053,'7.85');
arrPrice[8] = new Array(247,1054,'8.35');
arrPrice[9] = new Array(247,1055,'8.35');
arrPrice[10] = new Array(247,1056,'8.35');
arrPrice[11] = new Array(248,1046,'15.70');
arrPrice[12] = new Array(248,1047,'18.92');
arrPrice[13] = new Array(248,1048,'16.70');
arrPrice[14] = new Array(248,1049,'16.70');
arrPrice[15] = new Array(248,1050,'17.90');
arrPrice[16] = new Array(248,1051,'16.70');
arrPrice[17] = new Array(248,1052,'15.70');
arrPrice[18] = new Array(248,1053,'15.70');
arrPrice[19] = new Array(248,1054,'16.70');
arrPrice[20] = new Array(248,1055,'16.70');
arrPrice[21] = new Array(248,1056,'16.70');
arrPrice[22] = new Array(249,1046,'23.55');
arrPrice[23] = new Array(249,1047,'28.38');
arrPrice[24] = new Array(249,1048,'25.05');
arrPrice[25] = new Array(249,1049,'25.05');
arrPrice[26] = new Array(249,1050,'26.85');
arrPrice[27] = new Array(249,1051,'25.05');
arrPrice[28] = new Array(249,1052,'23.55');
arrPrice[29] = new Array(249,1053,'23.55');
arrPrice[30] = new Array(249,1054,'25.05');
arrPrice[31] = new Array(249,1055,'25.05');
arrPrice[32] = new Array(249,1056,'25.05');
arrPrice[33] = new Array(250,1046,'39.25');
arrPrice[34] = new Array(250,1047,'47.30');
arrPrice[35] = new Array(250,1048,'41.75');
arrPrice[36] = new Array(250,1049,'41.75');
arrPrice[37] = new Array(250,1050,'44.75');
arrPrice[38] = new Array(250,1051,'41.75');
arrPrice[39] = new Array(250,1052,'39.25');
arrPrice[40] = new Array(250,1053,'39.25');
arrPrice[41] = new Array(250,1054,'41.75');
arrPrice[42] = new Array(250,1055,'41.75');
arrPrice[43] = new Array(250,1056,'41.75');
arrPrice[44] = new Array(260,1046,'78.50');
arrPrice[45] = new Array(260,1047,'94.60');
arrPrice[46] = new Array(260,1048,'83.50');
arrPrice[47] = new Array(260,1049,'83.50');
arrPrice[48] = new Array(260,1050,'89.50');
arrPrice[49] = new Array(260,1051,'83.50');
arrPrice[50] = new Array(260,1052,'78.50');
arrPrice[51] = new Array(260,1053,'78.50');
arrPrice[52] = new Array(260,1054,'83.50');
arrPrice[53] = new Array(260,1055,'83.50');
arrPrice[54] = new Array(260,1056,'83.50');
arrPrice[55] = new Array(307,1046,'47.10');
arrPrice[56] = new Array(307,1047,'56.76');
arrPrice[57] = new Array(307,1048,'50.10');
arrPrice[58] = new Array(307,1049,'50.10');
arrPrice[59] = new Array(307,1050,'53.70');
arrPrice[60] = new Array(307,1051,'50.10');
arrPrice[61] = new Array(307,1052,'47.10');
arrPrice[62] = new Array(307,1053,'47.10');
arrPrice[63] = new Array(307,1054,'50.10');
arrPrice[64] = new Array(307,1055,'50.10');
arrPrice[65] = new Array(307,1056,'50.10');
arrPrice[66] = new Array(308,1046,'54.95');
arrPrice[67] = new Array(308,1047,'66.22');
arrPrice[68] = new Array(308,1048,'58.45');
arrPrice[69] = new Array(308,1049,'58.45');
arrPrice[70] = new Array(308,1050,'62.65');
arrPrice[71] = new Array(308,1051,'58.45');
arrPrice[72] = new Array(308,1052,'54.95');
arrPrice[73] = new Array(308,1053,'54.95');
arrPrice[74] = new Array(308,1054,'58.45');
arrPrice[75] = new Array(308,1055,'58.45');
arrPrice[76] = new Array(308,1056,'58.45');
arrPrice[77] = new Array(309,1046,'62.80');
arrPrice[78] = new Array(309,1047,'75.68');
arrPrice[79] = new Array(309,1048,'66.80');
arrPrice[80] = new Array(309,1049,'66.80');
arrPrice[81] = new Array(309,1050,'71.60');
arrPrice[82] = new Array(309,1051,'66.80');
arrPrice[83] = new Array(309,1052,'62.80');
arrPrice[84] = new Array(309,1053,'62.80');
arrPrice[85] = new Array(309,1054,'66.80');
arrPrice[86] = new Array(309,1055,'66.80');
arrPrice[87] = new Array(309,1056,'66.80');
arrPrice[88] = new Array(310,1046,'70.65');
arrPrice[89] = new Array(310,1047,'85.14');
arrPrice[90] = new Array(310,1048,'75.15');
arrPrice[91] = new Array(310,1049,'75.15');
arrPrice[92] = new Array(310,1050,'80.55');
arrPrice[93] = new Array(310,1051,'75.15');
arrPrice[94] = new Array(310,1052,'70.65');
arrPrice[95] = new Array(310,1053,'70.65');
arrPrice[96] = new Array(310,1054,'75.15');
arrPrice[97] = new Array(310,1055,'75.15');
arrPrice[98] = new Array(310,1056,'75.15');
arrPrice[99] = new Array(484,1046,'157.00');
arrPrice[100] = new Array(484,1047,'189.20');
arrPrice[101] = new Array(484,1048,'167.00');
arrPrice[102] = new Array(484,1049,'167.00');
arrPrice[103] = new Array(484,1050,'179.00');
arrPrice[104] = new Array(484,1051,'167.00');
arrPrice[105] = new Array(484,1052,'157.00');
arrPrice[106] = new Array(484,1053,'157.00');
arrPrice[107] = new Array(484,1054,'167.00');
arrPrice[108] = new Array(484,1055,'167.00');
arrPrice[109] = new Array(484,1056,'167.00');
arrPrice[110] = new Array(485,1046,'235.50');
arrPrice[111] = new Array(485,1047,'283.80');
arrPrice[112] = new Array(485,1048,'250.50');
arrPrice[113] = new Array(485,1049,'250.50');
arrPrice[114] = new Array(485,1050,'268.50');
arrPrice[115] = new Array(485,1051,'250.50');
arrPrice[116] = new Array(485,1052,'235.50');
arrPrice[117] = new Array(485,1053,'235.50');
arrPrice[118] = new Array(485,1054,'250.50');
arrPrice[119] = new Array(485,1055,'250.50');
arrPrice[120] = new Array(485,1056,'250.50');
arrPrice[121] = new Array(486,1046,'392.50');
arrPrice[122] = new Array(486,1047,'473.00');
arrPrice[123] = new Array(486,1048,'417.50');
arrPrice[124] = new Array(486,1049,'417.50');
arrPrice[125] = new Array(486,1050,'447.50');
arrPrice[126] = new Array(486,1051,'417.50');
arrPrice[127] = new Array(486,1052,'392.50');
arrPrice[128] = new Array(486,1053,'392.50');
arrPrice[129] = new Array(486,1054,'417.50');
arrPrice[130] = new Array(486,1055,'417.50');
arrPrice[131] = new Array(486,1056,'417.50');
function pp(){
var forms=document.forms;
var i;
for(i=0;i0)
{
for (var i=0; i0 && typeof(serverObj)=="object")
{
for(var i=serverObj.length;i>0;i--){
serverObj.remove(i-1);
}
for (var i=0; i0 && typeof(serverObj)=="object")
{
for(var i=serverObj.length;i>0;i--){
serverObj.remove(i-1);
}
for (var i=0; i0;i--){
goodObj.remove(i-1);
}
for (var i=0; i0 && typeof(GoodObj)=="object")
{
if (GoodObj.selectedIndex>-1)
{
goodId = GoodObj.options[GoodObj.selectedIndex].value;
}else{
goodId = GoodObj.options[0].value;
}
for (var i=0; igoodId && arrPrice[i][1]>serverId)
{
break;
}
}
if (price !=10000)
{
priceObj.value = price;
disPriceObj.value = unit +" "+ price;
}else{
priceObj.value = defaultPrice;
disPriceObj.value = unit +" "+ defaultPrice;
}
}
}
function LoadPrice(goodName,serverObj,priceObj,disPriceObj){
var goodId;
var serverId;
var price,defaultPrice;
defaultPrice =10000;
price =10000;
goodId = GetGoodId(goodName);
if (goodId>0 && typeof(serverObj)=="object")
{
if (serverObj.selectedIndex>-1)
{
serverId = serverObj.options[serverObj.selectedIndex].value;
}else{
serverId = serverObj.options[0].value;
}
defaultPrice =10000;
price =10000;
for (var i=0; igoodId && arrPrice[i][1]>serverId)
{
break;
}
}
if (price !=10000)
{
priceObj.value = price;
disPriceObj.value = unit +" "+ price;
}else{
priceObj.value = defaultPrice;
disPriceObj.value = unit +" "+ defaultPrice;
}
}
}