var arrGood,arrServer,arrPrice;
var unit='USD';
var paypal,egold,google,checked;
var ip='38.107.191.112';
kfmail='sale@virgolds.com';
skmail='gameim.com@gmail.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,'9.00');
arrPrice[1] = new Array(247,1047,'9.00');
arrPrice[2] = new Array(247,1048,'9.00');
arrPrice[3] = new Array(247,1049,'9.00');
arrPrice[4] = new Array(247,1050,'9.00');
arrPrice[5] = new Array(247,1051,'9.70');
arrPrice[6] = new Array(247,1052,'9.00');
arrPrice[7] = new Array(247,1053,'9.00');
arrPrice[8] = new Array(247,1054,'9.70');
arrPrice[9] = new Array(247,1055,'9.00');
arrPrice[10] = new Array(247,1056,'9.00');
arrPrice[11] = new Array(248,1046,'18.00');
arrPrice[12] = new Array(248,1047,'18.00');
arrPrice[13] = new Array(248,1048,'18.00');
arrPrice[14] = new Array(248,1049,'18.00');
arrPrice[15] = new Array(248,1050,'18.00');
arrPrice[16] = new Array(248,1051,'19.40');
arrPrice[17] = new Array(248,1052,'18.00');
arrPrice[18] = new Array(248,1053,'18.00');
arrPrice[19] = new Array(248,1054,'19.40');
arrPrice[20] = new Array(248,1055,'18.00');
arrPrice[21] = new Array(248,1056,'18.00');
arrPrice[22] = new Array(249,1046,'27.00');
arrPrice[23] = new Array(249,1047,'27.00');
arrPrice[24] = new Array(249,1048,'27.00');
arrPrice[25] = new Array(249,1049,'27.00');
arrPrice[26] = new Array(249,1050,'27.00');
arrPrice[27] = new Array(249,1051,'29.10');
arrPrice[28] = new Array(249,1052,'27.00');
arrPrice[29] = new Array(249,1053,'27.00');
arrPrice[30] = new Array(249,1054,'29.10');
arrPrice[31] = new Array(249,1055,'27.00');
arrPrice[32] = new Array(249,1056,'27.00');
arrPrice[33] = new Array(250,1046,'45.00');
arrPrice[34] = new Array(250,1047,'45.00');
arrPrice[35] = new Array(250,1048,'45.00');
arrPrice[36] = new Array(250,1049,'45.00');
arrPrice[37] = new Array(250,1050,'45.00');
arrPrice[38] = new Array(250,1051,'48.50');
arrPrice[39] = new Array(250,1052,'45.00');
arrPrice[40] = new Array(250,1053,'45.00');
arrPrice[41] = new Array(250,1054,'48.50');
arrPrice[42] = new Array(250,1055,'45.00');
arrPrice[43] = new Array(250,1056,'45.00');
arrPrice[44] = new Array(260,1046,'89.99');
arrPrice[45] = new Array(260,1047,'89.99');
arrPrice[46] = new Array(260,1048,'89.99');
arrPrice[47] = new Array(260,1049,'89.99');
arrPrice[48] = new Array(260,1050,'89.99');
arrPrice[49] = new Array(260,1051,'97.00');
arrPrice[50] = new Array(260,1052,'89.99');
arrPrice[51] = new Array(260,1053,'89.99');
arrPrice[52] = new Array(260,1054,'97.00');
arrPrice[53] = new Array(260,1055,'89.99');
arrPrice[54] = new Array(260,1056,'89.99');
arrPrice[55] = new Array(307,1046,'53.99');
arrPrice[56] = new Array(307,1047,'53.99');
arrPrice[57] = new Array(307,1048,'53.99');
arrPrice[58] = new Array(307,1049,'53.99');
arrPrice[59] = new Array(307,1050,'53.99');
arrPrice[60] = new Array(307,1051,'58.20');
arrPrice[61] = new Array(307,1052,'53.99');
arrPrice[62] = new Array(307,1053,'53.99');
arrPrice[63] = new Array(307,1054,'58.20');
arrPrice[64] = new Array(307,1055,'53.99');
arrPrice[65] = new Array(307,1056,'53.99');
arrPrice[66] = new Array(308,1046,'62.99');
arrPrice[67] = new Array(308,1047,'62.99');
arrPrice[68] = new Array(308,1048,'62.99');
arrPrice[69] = new Array(308,1049,'62.99');
arrPrice[70] = new Array(308,1050,'62.99');
arrPrice[71] = new Array(308,1051,'67.90');
arrPrice[72] = new Array(308,1052,'62.99');
arrPrice[73] = new Array(308,1053,'62.99');
arrPrice[74] = new Array(308,1054,'67.90');
arrPrice[75] = new Array(308,1055,'62.99');
arrPrice[76] = new Array(308,1056,'62.99');
arrPrice[77] = new Array(309,1046,'71.99');
arrPrice[78] = new Array(309,1047,'71.99');
arrPrice[79] = new Array(309,1048,'71.99');
arrPrice[80] = new Array(309,1049,'71.99');
arrPrice[81] = new Array(309,1050,'71.99');
arrPrice[82] = new Array(309,1051,'77.60');
arrPrice[83] = new Array(309,1052,'71.99');
arrPrice[84] = new Array(309,1053,'71.99');
arrPrice[85] = new Array(309,1054,'77.60');
arrPrice[86] = new Array(309,1055,'71.99');
arrPrice[87] = new Array(309,1056,'71.99');
arrPrice[88] = new Array(310,1046,'80.99');
arrPrice[89] = new Array(310,1047,'80.99');
arrPrice[90] = new Array(310,1048,'80.99');
arrPrice[91] = new Array(310,1049,'80.99');
arrPrice[92] = new Array(310,1050,'80.99');
arrPrice[93] = new Array(310,1051,'87.30');
arrPrice[94] = new Array(310,1052,'80.99');
arrPrice[95] = new Array(310,1053,'80.99');
arrPrice[96] = new Array(310,1054,'87.30');
arrPrice[97] = new Array(310,1055,'80.99');
arrPrice[98] = new Array(310,1056,'80.99');
arrPrice[99] = new Array(484,1046,'179.98');
arrPrice[100] = new Array(484,1047,'179.98');
arrPrice[101] = new Array(484,1048,'179.98');
arrPrice[102] = new Array(484,1049,'179.98');
arrPrice[103] = new Array(484,1050,'179.98');
arrPrice[104] = new Array(484,1051,'194.00');
arrPrice[105] = new Array(484,1052,'179.98');
arrPrice[106] = new Array(484,1053,'179.98');
arrPrice[107] = new Array(484,1054,'194.00');
arrPrice[108] = new Array(484,1055,'179.98');
arrPrice[109] = new Array(484,1056,'179.98');
arrPrice[110] = new Array(485,1046,'269.97');
arrPrice[111] = new Array(485,1047,'269.97');
arrPrice[112] = new Array(485,1048,'269.97');
arrPrice[113] = new Array(485,1049,'269.97');
arrPrice[114] = new Array(485,1050,'269.97');
arrPrice[115] = new Array(485,1051,'291.00');
arrPrice[116] = new Array(485,1052,'269.97');
arrPrice[117] = new Array(485,1053,'269.97');
arrPrice[118] = new Array(485,1054,'291.00');
arrPrice[119] = new Array(485,1055,'269.97');
arrPrice[120] = new Array(485,1056,'269.97');
arrPrice[121] = new Array(486,1046,'449.95');
arrPrice[122] = new Array(486,1047,'449.95');
arrPrice[123] = new Array(486,1048,'449.95');
arrPrice[124] = new Array(486,1049,'449.95');
arrPrice[125] = new Array(486,1050,'449.95');
arrPrice[126] = new Array(486,1051,'485.00');
arrPrice[127] = new Array(486,1052,'449.95');
arrPrice[128] = new Array(486,1053,'449.95');
arrPrice[129] = new Array(486,1054,'485.00');
arrPrice[130] = new Array(486,1055,'449.95');
arrPrice[131] = new Array(486,1056,'449.95');
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;
}
}
}