var arrGood,arrServer,arrPrice;
var unit='USD';
var paypal,egold,google,checked;
var ip='211.21.45.48';
kfmail='goldicq@gmail.com';
skmail='goldicq@gmail.com';
livechat='';
arrGood = new Array(8);
arrGood[0] = new Array(186,'100M');
arrGood[1] = new Array(187,'200M');
arrGood[2] = new Array(188,'300M');
arrGood[3] = new Array(189,'500M');
arrGood[4] = new Array(190,'1000M');
arrGood[5] = new Array(191,'1500M');
arrGood[6] = new Array(192,'2000M');
arrGood[7] = new Array(193,'3000M');
arrServer = new Array(1);
arrServer[0] = new Array(211,'Dragon');
arrPrice= new Array(8);
arrPrice[0] = new Array(186,211,'3.63');
arrPrice[1] = new Array(187,211,'7.25');
arrPrice[2] = new Array(188,211,'10.87');
arrPrice[3] = new Array(189,211,'18.09');
arrPrice[4] = new Array(190,211,'36.16');
arrPrice[5] = new Array(191,211,'54.23');
arrPrice[6] = new Array(192,211,'72.29');
arrPrice[7] = new Array(193,211,'108.43');
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;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;
}
}
}