// ==UserScript==
// @name AuTo Redeemer Steamkey(自动激活Steamkey)
// @namespace HCLonely
// @author HCLonely
// @description 复制网页中的Steamkey后自动打开激活页面并激活
// @include *://*/*
// @exclude *store.steampowered.com/widget/*
// @version 2.4.2
// @grant GM_setClipboard
// @grant GM_addStyle
// @run-at document-end
// @require https://greasyfork.org/scripts/376437-hclonely-function/code/HCLonely_function.js?version=660229
// @require https://cdn.bootcss.com/sweetalert/2.1.2/sweetalert.min.js
// ==/UserScript==
(function() {
'use strict';
try{
const url = window.location.href;
//选中激活功能
const iconSize = 24;
const translationTestSize = 16;
let icon = document.createElement('div');
const style = '' +
'width:32px;' +
'height:32px;' +
'margin:0px!important;' +
'';
icon.innerHTML = '' +
'<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABsFBMVEVHcEz9/f3+/v8Tdaf///8LGTP+/v4NPWX+/v8GGDj8/f4OGzX///////////8ZJ1ALJ0oNGzf+/v4mOGXX2+T8/f3z9vkPH0UjMFj5+fr///8NGzMJG0ERHS8SKEgXW40Ubp8WY5Ula5ePnrb3+PlnhKUfQ3Q3R3C2vMvt8PRcZH7///8TgrMTgbITfa4YNmcPHDT///8JGj0HGT2rucxGWYJ0g6H///9aZYbGy9jFyNQhL1TO0dp5lbOTma39/f7///+Sl6br7O6SlqT///////8UY5UUY5UJGTgTc6QThLUTfa8VToETdKYQK1sRK1sUWowUY5X///+mq7tlc5MzWX7Mztl5gZuytcJPV3AjL08iLlEUTYAUPXATK10Tfa4FO3IVToHEz9wAL2fj5+5GUG4JFz1mbIC8wMsFFzYFGDwHGkILGTIJG0cLHUoFGD8RJFMUU4YUN2kOIE4TSHsUYJMUbqAUQnUVTYAQLWEUWowUPG8SKFoTZ5kRHDATfq8Tdqf///8IIFQUaJkeWYrA0N4JMmgHQndAc5wJTYIIVooGXpNllrdchanT3ui2xtaZV9eJAAAAaXRSTlMAj/j97/vmAtD8xzncwJvwJay59uHd/ObqgnBtlpgLPfz8Femx+/7s0vitXqVLf53k3VmE9fDr59vaxLSY/qmGRnxeXjI/lGy5MLbr+8A/cPuiqLzgfLHJhJfN17bjr6z8xfmu9cH4cHitMXlOAAACjUlEQVQ4y2XTh1faQBgA8IMGQqCiGPaQAgUE3OLeFTfurR120SYkAQSrQUABUSyOf7l3kQC+/i7JfXff9/Ly4DsAXuA4AG0qi02jsVlUbS/rRnCpsvXkqnpsKmGrnsZBy2KOyTGyHBrooWlpeAkMLAzDyBiRDIayvloFnKwMJSOoKgJGsghD9YsVOLASBEE3pKtz/8t34MBCEXQddbQ7O/trjKAiVB96BY630I2ow1BobjoUmjXQdAR+KRyL0Ug0VhWlD+c+jBkMxzNzM3BXgwrWog1oYyBgODr47adnpv2xSBT+HkDDRlgxz9H+wM/jgNkc8BvNBzGWtQLgNLAcy8JbGLFJs3HSZDJNmQzjpmaWM7SBviRXk2SbxyXGSQkCI1jAqUB/Mp6sYbfV6mGvWq2W7JOSPQ7urIPuJBsXccNbkNG7t7cf397aQQkrMLUPZLh4JoMushV5P0yS3vatUbSV+QwkytaRQbJQ4DOFwqiySQnBR1PTKAnTPCyY0ikUSoVrgPcOjihE2vYdPnPK8yTfDczytwKtbsQVhHOvTqcd4Hn+VMCvg2lM3itHMK3LMyiXD/UGPbeXkFBwuQacrh8Yhg1hiM8TxHxu/vT8UvQJtud3j/ubVKCXTrix8O15Xaob/hf21MlJOZiX5qXSvHvi+Tacqgmn7Kgfvl6E7+58ped8vpTyTdwlLkThi49CP9gTiZv7R/1juXxTerpPNEINA6/d9Eb6/kH/VNKXbtJ1G+kFsSk3zxyOv46Hh3KlclbjOJsHYleDzWKxmK1UskUkixSzxfnGc9f1DvkjQvHCq6OHL61eX1+/qYLR6tKrw4lKOr+sXFWtdNj/O99wiTs7uzqWlzu6Op14Pf0P2PD9NrHDeWsAAAAASUVORK5CYII=" href="javascript:void(0)" style="' + style + '">'
'';
icon.setAttribute('style', '' +
'width:32px!important;' +
'height:32px!important;' +
'display:none!important;' +
'background:#fff!important;' +
'border-radius:16px!important;' +
'box-shadow:4px 4px 8px #888!important;' +
'position:absolute!important;' +
'z-index:2147483647!important;' +
'cursor:pointer;'+
'');
icon.setAttribute("title","激活");
// 添加激活图标到 DOM
document.documentElement.appendChild(icon);
// 鼠标事件:防止选中的文本消失
document.addEventListener('mousedown', function (e) {
if (e.target == icon || (e.target.parentNode && e.target.parentNode == icon) || (e.target.parentNode.parentNode && e.target.parentNode.parentNode == icon)) {// 点击了激活图标
e.preventDefault();
}
});
// 选中变化事件:当点击已经选中的文本的时候,隐藏激活图标和激活面板(此时浏览器动作是:选中的文本已经取消选中了)
document.addEventListener("selectionchange", ()=> {
if (!window.getSelection().toString().trim()) {
icon.style.display = 'none';
}
});
// 鼠标事件:防止选中的文本消失;显示、隐藏激活图标
document.addEventListener('mouseup', function (e) {
if (e.target == icon || (e.target.parentNode && e.target.parentNode == icon) || (e.target.parentNode.parentNode && e.target.parentNode.parentNode == icon)) {// 点击了激活图标
e.preventDefault();
return;
}
let text = window.getSelection().toString().trim();
let productKey = window.getSelection().toString().trim() || e.target.value;
if (/^([\w\W]*)?([\d\w]{5}(\-[\d\w]{5}){2}(\r||,||,)?){1,}/.test(productKey) && text && icon.style.display == 'none') {
icon.style.top = e.pageY + 12 + 'px';
icon.style.left = e.pageX + 18 + 'px';
icon.style.display = 'block';
} else if (!text) {
icon.style.display = 'none';
}
});
// 激活图标点击事件
icon.addEventListener('click', function (e) {
let productKey = window.getSelection().toString().trim() || e.target.value;
productKey=productKey.replace(/\r\n/g,",").replace(/\n/g,",");
window.open("https://store.steampowered.com/account/registerkey?key=" + productKey, "_blank");
});
//复制激活功能
if (!/https?:\/\/store\.steampowered\.com\/account\/registerkey[\w\W]{0,}/.test(url)){//非激活页面
let activateProduct = function(e) {
let productKey = window.getSelection().toString().trim() || e.target.value;
if (/^([\w\W]*)?([\d\w]{5}(\-[\d\w]{5}){2}(\r||,||,)?){1,}/.test(productKey)&&(confirm("检测到神秘key,是否进入steam激活页面并激活?"))) {
productKey=productKey.replace(/\r\n/g,",").replace(/\n/g,",");
window.open("https://store.steampowered.com/account/registerkey?key=" + productKey, "_blank");
}
};
window.addEventListener("copy", activateProduct, false);
}
//激活页面自动激活
if (/^https?:\/\/store\.steampowered\.com\/account\/registerkey*/.test(url)){
const autoDivideNum = 9;
const waitingSeconds = 20;
const ajaxTimeout = 15;
let keyCount = 0;
let recvCount = 0;
let timer;
let allUnusedKeys = [];
const failureDetail = {
14: '无效激活码',
15: '重复激活',
53: '次数上限',
13: '地区限制',
9: '已拥有',
24: '缺少主游戏',
36: '需要PS3?',
50: '这是充值码',
};
const myTexts = {
fail: '失败',
success: '成功',
network: '网络错误或超时',
line: '——',
nothing: '',
others: '其他错误',
unknown: '未知错误',
redeeming: '激活中',
waiting: '等待中',
showUnusedKey: '显示未使用的Key',
hideUnusedKey: '隐藏未使用的Key',
};
const unusedKeyReasons = [
'次数上限',
'地区限制',
'已拥有',
'缺少主游戏',
'其他错误',
'未知错误',
'网络错误或超时',
];
function redeemKey(key) {
jQuery.ajax({
url: 'https://store.steampowered.com/account/ajaxregisterkey/',
data: {
product_key: key,
sessionid: g_sessionID
},
type: 'post',
dataType: 'json',
timeout: 1000 * ajaxTimeout,
beforeSend: function(){
if (jQuery('table').is(':hidden')) {
jQuery('table').fadeIn();
}
},
error: function() {
tableUpdateKey(key, myTexts.fail, myTexts.network, 0, myTexts.nothing);
return;
},
success: function(data) {
if (data.success == 1) {
tableUpdateKey(key, myTexts.success, myTexts.line,
data.purchase_receipt_info.line_items[0].packageid,
data.purchase_receipt_info.line_items[0].line_item_description);
return;
} else if (data.purchase_result_details !== undefined && data.purchase_receipt_info) {
if (!data.purchase_receipt_info.line_items[0]) {
tableUpdateKey(key, myTexts.fail,
failureDetail[data.purchase_result_details] ? failureDetail[data.purchase_result_details] : myTexts.others,
0, myTexts.nothing);
} else {
tableUpdateKey(key, myTexts.fail,
failureDetail[data.purchase_result_details] ? failureDetail[data.purchase_result_details] : myTexts.others,
data.purchase_receipt_info.line_items[0].packageid,
data.purchase_receipt_info.line_items[0].line_item_description);
}
return;
}
tableUpdateKey(key, myTexts.fail, myTexts.nothing, 0, myTexts.nothing);
}
});
}
function setUnusedKeys(key, success, reason, subId, subName) {
if (success && allUnusedKeys.includes(key)) {
var listObject;
allUnusedKeys = allUnusedKeys.filter(function(keyItem){
return keyItem != key;
});
jQuery('li').map((i,e)=>{
if(jQuery(e).innerHTML.includes(key)) {
listObject.remove();
}
});
} else if (!success && !allUnusedKeys.includes(key) && unusedKeyReasons.includes(reason)) {
listObject = jQuery('<li></li>');
listObject.html(key + ' ( ' + reason +
(subId != 0 ? (': <code>' + subId + '</code> ' + subName) : '') +
' )');
jQuery('#unusedKeys').append(listObject);
allUnusedKeys.push(key);
}
}
function tableInsertKey(key) {
keyCount++;
let row = jQuery('<tr></tr>');
// number
row.append('<td class="nobr">' + keyCount + '</td>');
//key
row.append('<td class="nobr"><code>' + key + '</code></td>');
//redeeming...
row.append('<td colspan="3">' + myTexts.redeeming + '...</td>');
jQuery('tbody').prepend(row);
}
function tableWaitKey(key) {
keyCount++;
let row = jQuery('<tr></tr>');
// number
row.append('<td class="nobr">' + keyCount + '</td>');
//key
row.append('<td class="nobr"><code>' + key + '</code></td>');
//waiting...
row.append('<td colspan="3">' + myTexts.waiting +
' (' + waitingSeconds + '秒)...</td>');
jQuery('tbody').prepend(row);
}
function tableUpdateKey(key, result, detail, subId, subName) {
setUnusedKeys(key, result === myTexts.success, detail, subId, subName);
recvCount++;
if (recvCount == keyCount) {
jQuery('#buttonRedeem').fadeIn();
jQuery('#inputKey').removeAttr('disabled');
}
var rowObjects = jQuery('tr');
for (let i = 1; i < rowObjects.length; i++) {
let rowElement = rowObjects[i];
let rowObject = jQuery(rowElement);
if (rowObject.children()[1].innerHTML.includes(key)&&rowObject.children()[2].innerHTML.includes(myTexts.redeeming)) {
rowObject.children()[2].remove();
// result
if (result == myTexts.fail) rowObject.append('<td class="nobr" style="color:red">' + result + '</td>');
else rowObject.append('<td class="nobr" style="color:green">' + result + '</td>');
// detail
rowObject.append('<td class="nobr">' + detail + '</td>');
// sub
if (subId === 0) {
rowObject.append('<td>——</td>');
} else {
rowObject.append('<td><code>' + subId + '</code> <a href="https://steamdb.info/sub/' +
subId + '/" target="_blank">' + subName + '</a></td>');
}
break;
}
}
}
function getKeysByRE(text) {
text = text.trim().toUpperCase();
let reg = new RegExp('([0-9,A-Z]{5}-){2,4}[0-9,A-Z]{5}', 'g');
let keys = [];
let result = void 0;
while (result = reg.exec(text)) {
keys.push(result[0]);
}
return keys;
}
function startTimer() {
timer = setInterval(function() {
let flag = false;
let nowKey = 0;
let rowObjects = jQuery('tr');
for (let i = rowObjects.length - 1; i >= 1; i--) {
let rowElement = rowObjects[i];
let rowObject = jQuery(rowElement);
if (rowObject.children()[2].innerHTML.includes(myTexts.waiting)) {
nowKey++;
if (nowKey <= autoDivideNum) {
let key = rowObject.children()[1].innerHTML.substring(6);
key = key.substring(0, key.indexOf('</code>'));
rowObject.children()[2].innerHTML = '<td colspan="3">' + myTexts.redeeming + '...</td>';
redeemKey(key);
} else {
flag = true;
break;
}
}
}
if (!flag) {
clearInterval(timer);
}
}, 1000 * waitingSeconds);
}
function redeem(keys){
if (keys.length <= 0) {
return;
}
jQuery('#buttonRedeem').hide();
jQuery('#inputKey').attr('disabled', 'disabled');
let nowKey = 0;
keys.forEach(function (key) {
nowKey++;
if (nowKey <= autoDivideNum) {
tableInsertKey(key);
redeemKey(key);
} else {
tableWaitKey(key);
}
});
if (nowKey > autoDivideNum) {
startTimer();
}
}
function redeemKeys() {
let keys = getKeysByRE(jQuery('#inputKey').val().trim());
redeem(keys);
}
function toggleUnusedKeyArea() {
if (jQuery('#unusedKeyArea').is(':hidden')) {
jQuery('#unusedKeyArea').show();
} else {
jQuery('#unusedKeyArea').hide();
}
}
jQuery('#registerkey_examples_text').html(
'<div class="notice_box_content" id="unusedKeyArea" style="display: none">' +
'<b>未使用的Key:</b><br>'+
'<div><ol id="unusedKeys">' +
'</ol></div>' +
'</div>' +
'<div class="table-responsive table-condensed">' +
'<table class="table table-hover" style="display: none">' +
'<caption><h2>激活记录</h2></caption><thead><th>No.</th><th>Key</th>' +
'<th>结果</th><th>详情</th><th>Sub</th></thead><tbody></tbody>' +
'</table></div><br>');
jQuery('.registerkey_input_box_text').parent().css("float","none");
jQuery('.registerkey_input_box_text').parent().append('<textarea class="form-control" rows="3"' +
' id="inputKey" placeholder="支持批量激活,可以把整个网页文字复制过来 ' +
'若一次激活的Key的数量超过9个则会自动分批激活(等待20秒) ' +
'激活多个SUB时每个SUB之间用英文逗号隔开 ' +
'激活礼物卡或钱包充值码功能目前属于测试功,且不支持批量激活"' +
' style="margin: 3px 0px 0px; width: 525px; height: 102px;"></textarea><br>');
/^https?:\/\/store\.steampowered\.com\/account\/registerkey\?key\=[\w\W]+/.test(url)&&(document.getElementById("inputKey").value=url.replace(/https?:\/\/store\.steampowered\.com\/account\/registerkey\?key\=/i,""));
jQuery('.registerkey_input_box_text').hide();
jQuery('#purchase_confirm_ssa').hide();
jQuery('#register_btn').parent().css("margin","10px 0")
jQuery('#register_btn').parent().append('<a tabindex="300" class="btnv6_blue_hoverfade btn_medium" style="margin-left:0"' +
' id="redeemKey"><span>激活key</span></a>' + ' ' +
'<a tabindex="300" class="btnv6_blue_hoverfade btn_medium" style="margin-left:0"' +
' id="redeemSub"><span>激活sub</span></a>' + ' ' +
'<a tabindex="300" class="btnv6_blue_hoverfade btn_medium" style="margin-left:0"' +
' id="redeemCode"><span>激活礼物卡或钱包充值码</span></a>' + ' ' +
'<a tabindex="300" class="btnv6_blue_hoverfade btn_medium" style="margin-left:0"' +
' id="changeCountry"><span>更换国家/地区</span></a>' + ' ');
jQuery('#register_btn').remove();
/^https?:\/\/store\.steampowered\.com\/account\/registerkey\?key\=[\w\W]+/.test(url)&&(redeem(getKeysByRE(url.replace(/https?:\/\/store\.steampowered\.com\/account\/registerkey\?key\=/i,"").trim())));
jQuery('#redeemKey').click(redeemKeys);
jQuery('#redeemSub').click(redeemSubs);
jQuery('#redeemCode').click(redeemCode);
jQuery('#changeCountry').click(cc);
jQuery(".block_content.checkout_content_box").append(`
<script>
var g_ActiveDropLists = {};
var g_LastSelectHideTime = 0;
$J(function() {
$J(document).on( 'mousedown', HandleMouseClick );
$J(document).on( 'keydown', HandleKeyDown );
});
function HandleMouseClick( e ){
for ( var key in g_ActiveDropLists ){
if ( !g_ActiveDropLists[key] )
continue;
var ulAboveEvent = $J(e.target).closest( 'ul' )[0];
if ( ulAboveEvent && ulAboveEvent.id == key+'_droplist' )
continue;
DSelectHide( key );
}
}
var TYPEAHEAD_TIMEOUT_MS = 750;
var g_timeLastCharEvent = 0;
var g_strTypeahead = '';
function HandleKeyDown( e ){
var bSwallowEvent = false;
var keynum = 0;
if ( e.altKey || e.ctrlKey ){
// bail out now so the browser can do it's thing
return;
}
if( e.keyCode ){// IE
keynum = e.keyCode;
}
else if( e.which ){// Old Netscape/Firefox/Opera
keynum = e.which;
}
var bCharEvent = false;
switch ( keynum ){
case Event.KEY_DOWN: case Event.KEY_UP: case Event.KEY_RETURN: case Event.KEY_TAB:
case Event.KEY_PAGEDOWN: case Event.KEY_PAGEUP: case Event.KEY_HOME:
case Event.KEY_END:
case Event.KEY_ESC:
break;
case 16: return !bSwallowEvent;
default:
bCharEvent = true;
break;
}
for ( var id in g_ActiveDropLists ){
if ( !g_ActiveDropLists[id] )
continue;
var droplist = $(id+'_droplist');
var trigger = $(id+'_trigger');
var rgItems = droplist.getElementsByTagName('a');
var curIndex = trigger.highlightedItem == undefined ? -1 : trigger.highlightedItem;
if ( keynum != Event.KEY_TAB )
bSwallowEvent = true;
if ( keynum == Event.KEY_RETURN || keynum == Event.KEY_TAB ){
DHighlightItem( id, curIndex, true );
continue;
}else if ( keynum == Event.KEY_ESC ){
DSelectHide( id );
continue;
}
if ( bCharEvent ){
var c = String.fromCharCode( keynum );
var bExpandingMatch = false;
var time = new Date().getTime();
if ( time - g_timeLastCharEvent < TYPEAHEAD_TIMEOUT_MS ){
c = g_strTypeahead + c;
bExpandingMatch = true;
}
g_timeLastCharEvent = time;
g_strTypeahead = c;
var firstIndex = curIndex;
var nextIndex = curIndex;
var regExp = new RegExp( '^' + c, 'i' );
if ( !bExpandingMatch || !rgItems[curIndex].innerHTML.match( regExp ) ){
for( var i = 0; i < rgItems.length; ++ i ){
var s = rgItems[i].innerHTML;
if ( s.length > 0 && s.match( regExp ) ){
if ( curIndex == firstIndex )
firstIndex = i;
if ( curIndex < i ){
nextIndex = i;
break;
}
}
}
}
if ( nextIndex != curIndex )
curIndex = nextIndex;
else if ( firstIndex != curIndex )
curIndex = firstIndex;
DHighlightItem( id, curIndex, false );
if ( !DSelectClassCheck( $( id+'_trigger' ), 'activetrigger' ) ){
DSelectShow( id );
}
}else{
g_timeLastCharEvent = 0;
if ( keynum == Event.KEY_DOWN )
curIndex++;
else if ( keynum == Event.KEY_UP )
curIndex--;
else if ( keynum == Event.KEY_HOME )
curIndex = 0;
else if ( keynum == Event.KEY_END )
curIndex = rgItems.length - 1;
var nPageItemCount = rgItems.length < 1 ? 0 : Math.floor((droplist.clientHeight / rgItems[0].clientHeight))
if ( keynum == Event.KEY_PAGEDOWN )
curIndex += Math.min( nPageItemCount, (rgItems.length - curIndex - 1) );
else if ( keynum == Event.KEY_PAGEUP )
curIndex -= Math.min( nPageItemCount, curIndex );
if( curIndex >= 0 && curIndex < rgItems.length ){
DHighlightItem( id, curIndex, false );
if ( !DSelectClassCheck( $( id+'_trigger' ), 'activetrigger' ) ){
DSelectShow( id );
}
}
}
}
if ( bSwallowEvent )
e.preventDefault();
return !bSwallowEvent;
}
function DHighlightItem( id, index, bSetSelected ){
var droplist = $(id+'_droplist');
var trigger = $(id+'_trigger');
var rgItems = droplist.getElementsByTagName('a');
if ( index >= 0 && index < rgItems.length ){
var item = rgItems[index];
if ( trigger.highlightedItem != undefined && trigger.highlightedItem != index )
rgItems[trigger.highlightedItem].className = 'inactive_selection';
trigger.highlightedItem = index;
rgItems[index].className = 'highlighted_selection';
var yOffset = rgItems[index].offsetTop+rgItems[index].clientHeight;
var curVisibleOffset = droplist.scrollTop+droplist.clientHeight;
var bScrolledDown = false;
var nMaxLoopIterations = rgItems.length;
var nLoopCounter = 0;
while ( curVisibleOffset < yOffset && nLoopCounter < nMaxLoopIterations ){
droplist.scrollTop = droplist.scrollTop + rgItems[index].clientHeight;
curVisibleOffset = droplist.scrollTop+droplist.clientHeight;
bScrolledDown = true;
nLoopCounter++;
}
if ( !bScrolledDown ){
nLoopCounter = 0;
yOffset = rgItems[index].offsetTop;
curVisibleOffset = droplist.scrollTop;
while( curVisibleOffset > yOffset && nLoopCounter < nMaxLoopIterations ){
droplist.scrollTop = droplist.scrollTop - rgItems[index].clientHeight;
curVisibleOffset = droplist.scrollTop;
nLoopCounter++;
}
}
if ( bSetSelected ){
trigger.innerHTML = item.innerHTML;
$(id).value = item.id;
if ( $(id).onchange )
$(id).onchange();
DSelectHide( id );
}
}
}
function DHighlightItemByValue( id, value, bSetSelected ){
var droplist = $(id+'_droplist');
var rgItems = droplist.getElementsByTagName('a');
for ( var index = 0; index < rgItems.length; index++ ){
var item = rgItems[index];
if ( item.id == value ){
DHighlightItem( id, index, bSetSelected );
return;
}
}
}
function DSelectNoop(){
return;
}
function DSelectOnFocus( id ){
g_ActiveDropLists[id] = true;
}
function DSelectOnBlur( id ){
if ( !DSelectClassCheck( $( id+'_trigger' ), 'activetrigger' ) ){
g_ActiveDropLists[id] = false;
}
}
function DSelectHide( id ){
var trigger = $(id+'_trigger');
var droplist = $(id+'_droplist');
var d = new Date()
g_LastSelectHideTime = d.valueOf();
trigger.className = 'trigger';
droplist.className = 'dropdownhidden';
g_ActiveDropLists[id] = false;
trigger.focus();
}
function DSelectShow( id ){
var d = new Date()
if ( d - g_LastSelectHideTime < 50 )
return;
var trigger = $(id+'_trigger');
var droplist = $(id+'_droplist');
trigger.className = 'activetrigger';
droplist.className = 'dropdownvisible';
g_ActiveDropLists[id] = true;
trigger.focus();
}
function DSelectOnTriggerClick( id ){
var trigger = $( id+'_trigger' );
if ( !DSelectClassCheck( $( id+'_trigger' ), 'activetrigger' ) ){
DSelectShow( id );
}
}
function DSelectClassCheck( element, class_name ){
return new RegExp('\\b'+class_name+'\\b').test(element.className);
}
function DSelectSwapClass( element, class1, class2 ){
var class_name = element.className;
if ( DSelectClassCheck( element, class1 ) ){
element.className = class2;
}else{
element.className = class1;
}
}
</script>
<div id="wallet_code_form" name="wallet_code_form" class="redeem_wallet_code_form" style="display:none">
<h2>
输入您的 Steam 钱包充值码来向您的 Steam 钱包充值 </h2>
<div>
<br>Steam 预付卡</div>
<div>
<br>Steam 钱包充值码</div>
<div style="float: left;">
<input name="wallet_code" id="wallet_code" type="text" class="redeem_input_box_text" value="">
</div>
<div class="button_row">
<a tabindex="300" href="javascript:ValidateWalletCode();" class="btnv6_blue_hoverfade btn_medium" id="validate_btn"> <span>继续</span>
</a>
<div id="validate_btn_in_progress" class="btnv6_blue_hoverfade btn_medium" style="display:none"> <span>处理中</span>
</div>
</div>
<div style="clear: both;"></div>
</div>
<div id="address_form" name="address_form" style="display:none;" class="redeem_wallet_code_form">
<h2>输入您的通讯地址</h2>
<div class="redeem_wallet_form_description">我们需要知道您的住址以便代扣消费税。
<br>请在下方输入您的地址:</div>
<div class="form_row redeem_form_row" id="billing_address_row">
<div>
<div class="form_left">
<label for="billing_address">街道地址</label>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
<div>
<div class="form_left">
<input tabindex="101" type="text" class="redeem_input_box_text" maxlength="255" name="billing_address" id="billing_address">
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
</div>
<div class="form_row redeem_form_row" id="billing_address_2_row">
<div>
<div class="form_left">
<label for="billing_address_two">街道地址行 2</label>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
<div>
<div class="form_left">
<input tabindex="102" type="text" class="redeem_input_box_text" maxlength="255" name="billing_address_two" id="billing_address_two">
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
</div>
<div class="form_row redeem_form_row" id="billing_city_row">
<div>
<div class="form_left">
<label for="billing_city">城市</label>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
<div>
<div class="form_left">
<input type="text" class="redeem_input_box_text" tabindex="103" maxlength="255" name="billing_city" id="billing_city">
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
</div>
<div class="form_row redeem_form_row" id="billing_state_row">
<div>
<div class="form_left">
<label for="billing_state">州/省</label>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
<div>
<div class="form_left">
<input tabindex="104" type="text" class="redeem_input_box_text" maxlength="33" name="billing_state_text" id="billing_state_text" style="display: block;">
<div class="dselect_container" id="billing_state_select_dselect_container" style="display:none">
<input id="billing_state_select" type="hidden" name="billing_state_select" value=""> <a class="trigger" tabindex="104" id="billing_state_select_trigger" href="javascript:DSelectNoop();" onfocus="DSelectOnFocus( 'billing_state_select');" onblur="DSelectOnBlur( 'billing_state_select');" onclick="DSelectOnTriggerClick('billing_state_select');">选择州/省</a>
<div class="dropcontainer">
<ul class="dropdownhidden" id="billing_state_select_droplist">
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 0, false );" id="" onclick="DHighlightItem( 'billing_state_select', 0, true );">选择州/省</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 1, false );" id="AA" onclick="DHighlightItem( 'billing_state_select', 1, true );">AA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 2, false );" id="AE" onclick="DHighlightItem( 'billing_state_select', 2, true );">AE</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 3, false );" id="AP" onclick="DHighlightItem( 'billing_state_select', 3, true );">AP</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 4, false );" id="AK" onclick="DHighlightItem( 'billing_state_select', 4, true );">AK</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 5, false );" id="AL" onclick="DHighlightItem( 'billing_state_select', 5, true );">AL</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 6, false );" id="AR" onclick="DHighlightItem( 'billing_state_select', 6, true );">AR</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 7, false );" id="AS" onclick="DHighlightItem( 'billing_state_select', 7, true );">AS</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 8, false );" id="AZ" onclick="DHighlightItem( 'billing_state_select', 8, true );">AZ</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 9, false );" id="CA" onclick="DHighlightItem( 'billing_state_select', 9, true );">CA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 10, false );" id="CO" onclick="DHighlightItem( 'billing_state_select', 10, true );">CO</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 11, false );" id="CT" onclick="DHighlightItem( 'billing_state_select', 11, true );">CT</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 12, false );" id="DC" onclick="DHighlightItem( 'billing_state_select', 12, true );">DC</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 13, false );" id="DE" onclick="DHighlightItem( 'billing_state_select', 13, true );">DE</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 14, false );" id="FL" onclick="DHighlightItem( 'billing_state_select', 14, true );">FL</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 15, false );" id="FM" onclick="DHighlightItem( 'billing_state_select', 15, true );">FM</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 16, false );" id="GA" onclick="DHighlightItem( 'billing_state_select', 16, true );">GA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 17, false );" id="GU" onclick="DHighlightItem( 'billing_state_select', 17, true );">GU</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 18, false );" id="HI" onclick="DHighlightItem( 'billing_state_select', 18, true );">HI</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 19, false );" id="IA" onclick="DHighlightItem( 'billing_state_select', 19, true );">IA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 20, false );" id="ID" onclick="DHighlightItem( 'billing_state_select', 20, true );">ID</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 21, false );" id="IL" onclick="DHighlightItem( 'billing_state_select', 21, true );">IL</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 22, false );" id="IN" onclick="DHighlightItem( 'billing_state_select', 22, true );">IN</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 23, false );" id="KS" onclick="DHighlightItem( 'billing_state_select', 23, true );">KS</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 24, false );" id="KY" onclick="DHighlightItem( 'billing_state_select', 24, true );">KY</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 25, false );" id="LA" onclick="DHighlightItem( 'billing_state_select', 25, true );">LA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 26, false );" id="MA" onclick="DHighlightItem( 'billing_state_select', 26, true );">MA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 27, false );" id="ME" onclick="DHighlightItem( 'billing_state_select', 27, true );">ME</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 28, false );" id="MD" onclick="DHighlightItem( 'billing_state_select', 28, true );">MD</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 29, false );" id="MH" onclick="DHighlightItem( 'billing_state_select', 29, true );">MH</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 30, false );" id="MI" onclick="DHighlightItem( 'billing_state_select', 30, true );">MI</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 31, false );" id="MN" onclick="DHighlightItem( 'billing_state_select', 31, true );">MN</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 32, false );" id="MO" onclick="DHighlightItem( 'billing_state_select', 32, true );">MO</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 33, false );" id="MS" onclick="DHighlightItem( 'billing_state_select', 33, true );">MS</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 34, false );" id="MT" onclick="DHighlightItem( 'billing_state_select', 34, true );">MT</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 35, false );" id="NC" onclick="DHighlightItem( 'billing_state_select', 35, true );">NC</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 36, false );" id="ND" onclick="DHighlightItem( 'billing_state_select', 36, true );">ND</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 37, false );" id="NE" onclick="DHighlightItem( 'billing_state_select', 37, true );">NE</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 38, false );" id="NH" onclick="DHighlightItem( 'billing_state_select', 38, true );">NH</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 39, false );" id="NJ" onclick="DHighlightItem( 'billing_state_select', 39, true );">NJ</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 40, false );" id="NM" onclick="DHighlightItem( 'billing_state_select', 40, true );">NM</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 41, false );" id="NV" onclick="DHighlightItem( 'billing_state_select', 41, true );">NV</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 42, false );" id="NY" onclick="DHighlightItem( 'billing_state_select', 42, true );">NY</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 43, false );" id="MP" onclick="DHighlightItem( 'billing_state_select', 43, true );">MP</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 44, false );" id="OH" onclick="DHighlightItem( 'billing_state_select', 44, true );">OH</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 45, false );" id="OK" onclick="DHighlightItem( 'billing_state_select', 45, true );">OK</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 46, false );" id="OR" onclick="DHighlightItem( 'billing_state_select', 46, true );">OR</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 47, false );" id="PA" onclick="DHighlightItem( 'billing_state_select', 47, true );">PA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 48, false );" id="PR" onclick="DHighlightItem( 'billing_state_select', 48, true );">PR</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 49, false );" id="PW" onclick="DHighlightItem( 'billing_state_select', 49, true );">PW</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 50, false );" id="RI" onclick="DHighlightItem( 'billing_state_select', 50, true );">RI</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 51, false );" id="SC" onclick="DHighlightItem( 'billing_state_select', 51, true );">SC</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 52, false );" id="SD" onclick="DHighlightItem( 'billing_state_select', 52, true );">SD</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 53, false );" id="TN" onclick="DHighlightItem( 'billing_state_select', 53, true );">TN</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 54, false );" id="TX" onclick="DHighlightItem( 'billing_state_select', 54, true );">TX</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 55, false );" id="UT" onclick="DHighlightItem( 'billing_state_select', 55, true );">UT</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 56, false );" id="VI" onclick="DHighlightItem( 'billing_state_select', 56, true );">VI</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 57, false );" id="VT" onclick="DHighlightItem( 'billing_state_select', 57, true );">VT</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 58, false );" id="VA" onclick="DHighlightItem( 'billing_state_select', 58, true );">VA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 59, false );" id="WA" onclick="DHighlightItem( 'billing_state_select', 59, true );">WA</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 60, false );" id="WI" onclick="DHighlightItem( 'billing_state_select', 60, true );">WI</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 61, false );" id="WV" onclick="DHighlightItem( 'billing_state_select', 61, true );">WV</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_state_select', 62, false );" id="WY" onclick="DHighlightItem( 'billing_state_select', 62, true );">WY</a>
</li>
</ul>
</div>
</div>
<script language="javascript">
$J(function() {
$J('#billing_state_select_dselect_container').on('keydown', HandleKeyDown);
});
</script>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
</div>
<div class="form_row redeem_form_row" id="billing_country_row">
<div>
<div class="form_left">
<label for="billing_country">国家</label>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
<div>
<div class="form_left">
<div class="dselect_container" id="billing_country_dselect_container">
<input id="billing_country" type="hidden" name="billing_country" value="CN" onchange="UpdateStateSelection();"> <a class="trigger" tabindex="105" id="billing_country_trigger" href="javascript:DSelectNoop();" onfocus="DSelectOnFocus( 'billing_country');" onblur="DSelectOnBlur( 'billing_country');" onclick="DSelectOnTriggerClick('billing_country');">中国</a>
<div class="dropcontainer">
<ul class="dropdownhidden" id="billing_country_droplist">
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 0, false );" id="BT" onclick="DHighlightItem( 'billing_country', 0, true );">不丹</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 1, false );" id="TL" onclick="DHighlightItem( 'billing_country', 1, true );">东帝汶</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 2, false );" id="CN" onclick="DHighlightItem( 'billing_country', 2, true );">中国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 3, false );" id="CF" onclick="DHighlightItem( 'billing_country', 3, true );">中非共和国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 4, false );" id="DK" onclick="DHighlightItem( 'billing_country', 4, true );">丹麦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 5, false );" id="UA" onclick="DHighlightItem( 'billing_country', 5, true );">乌克兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 6, false );" id="UZ" onclick="DHighlightItem( 'billing_country', 6, true );">乌兹别克斯坦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 7, false );" id="UG" onclick="DHighlightItem( 'billing_country', 7, true );">乌干达</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 8, false );" id="UY" onclick="DHighlightItem( 'billing_country', 8, true );">乌拉圭</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 9, false );" id="TD" onclick="DHighlightItem( 'billing_country', 9, true );">乍得</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 10, false );" id="YE" onclick="DHighlightItem( 'billing_country', 10, true );">也门</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 11, false );" id="AM" onclick="DHighlightItem( 'billing_country', 11, true );">亚美尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 12, false );" id="IL" onclick="DHighlightItem( 'billing_country', 12, true );">以色列</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 13, false );" id="IQ" onclick="DHighlightItem( 'billing_country', 13, true );">伊拉克</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 14, false );" id="BZ" onclick="DHighlightItem( 'billing_country', 14, true );">伯利兹</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 15, false );" id="CV" onclick="DHighlightItem( 'billing_country', 15, true );">佛得角</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 16, false );" id="RU" onclick="DHighlightItem( 'billing_country', 16, true );">俄罗斯联邦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 17, false );" id="BG" onclick="DHighlightItem( 'billing_country', 17, true );">保加利亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 18, false );" id="HR" onclick="DHighlightItem( 'billing_country', 18, true );">克罗地亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 19, false );" id="GU" onclick="DHighlightItem( 'billing_country', 19, true );">关岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 20, false );" id="GM" onclick="DHighlightItem( 'billing_country', 20, true );">冈比亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 21, false );" id="IS" onclick="DHighlightItem( 'billing_country', 21, true );">冰岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 22, false );" id="GN" onclick="DHighlightItem( 'billing_country', 22, true );">几内亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 23, false );" id="GW" onclick="DHighlightItem( 'billing_country', 23, true );">几内亚比绍</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 24, false );" id="LI" onclick="DHighlightItem( 'billing_country', 24, true );">列支敦士登</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 25, false );" id="CG" onclick="DHighlightItem( 'billing_country', 25, true );">刚果</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 26, false );" id="CD" onclick="DHighlightItem( 'billing_country', 26, true );">刚果民主共和国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 27, false );" id="LY" onclick="DHighlightItem( 'billing_country', 27, true );">利比亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 28, false );" id="LR" onclick="DHighlightItem( 'billing_country', 28, true );">利比里亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 29, false );" id="MK" onclick="DHighlightItem( 'billing_country', 29, true );">前南斯拉夫马其顿共和国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 30, false );" id="CA" onclick="DHighlightItem( 'billing_country', 30, true );">加拿大</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 31, false );" id="GH" onclick="DHighlightItem( 'billing_country', 31, true );">加纳</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 32, false );" id="GA" onclick="DHighlightItem( 'billing_country', 32, true );">加蓬</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 33, false );" id="HU" onclick="DHighlightItem( 'billing_country', 33, true );">匈牙利</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 34, false );" id="MP" onclick="DHighlightItem( 'billing_country', 34, true );">北马里亚纳群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 35, false );" id="GS" onclick="DHighlightItem( 'billing_country', 35, true );">南乔治亚岛和南桑威奇群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 36, false );" id="AQ" onclick="DHighlightItem( 'billing_country', 36, true );">南极洲</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 37, false );" id="ZA" onclick="DHighlightItem( 'billing_country', 37, true );">南非</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 38, false );" id="BW" onclick="DHighlightItem( 'billing_country', 38, true );">博茨瓦纳</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 39, false );" id="QA" onclick="DHighlightItem( 'billing_country', 39, true );">卡塔尔</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 40, false );" id="RW" onclick="DHighlightItem( 'billing_country', 40, true );">卢旺达</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 41, false );" id="LU" onclick="DHighlightItem( 'billing_country', 41, true );">卢森堡公国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 42, false );" id="IN" onclick="DHighlightItem( 'billing_country', 42, true );">印度</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 43, false );" id="ID" onclick="DHighlightItem( 'billing_country', 43, true );">印度尼西亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 44, false );" id="GT" onclick="DHighlightItem( 'billing_country', 44, true );">危地马拉</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 45, false );" id="EC" onclick="DHighlightItem( 'billing_country', 45, true );">厄瓜多尔</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 46, false );" id="ER" onclick="DHighlightItem( 'billing_country', 46, true );">厄立特里亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 47, false );" id="TW" onclick="DHighlightItem( 'billing_country', 47, true );">台湾</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 48, false );" id="KG" onclick="DHighlightItem( 'billing_country', 48, true );">吉尔吉斯斯坦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 49, false );" id="DJ" onclick="DHighlightItem( 'billing_country', 49, true );">吉布提</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 50, false );" id="KZ" onclick="DHighlightItem( 'billing_country', 50, true );">哈萨克斯坦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 51, false );" id="CO" onclick="DHighlightItem( 'billing_country', 51, true );">哥伦比亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 52, false );" id="CR" onclick="DHighlightItem( 'billing_country', 52, true );">哥斯达黎加</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 53, false );" id="CM" onclick="DHighlightItem( 'billing_country', 53, true );">喀麦隆</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 54, false );" id="TV" onclick="DHighlightItem( 'billing_country', 54, true );">图瓦卢</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 55, false );" id="TM" onclick="DHighlightItem( 'billing_country', 55, true );">土库曼斯坦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 56, false );" id="TR" onclick="DHighlightItem( 'billing_country', 56, true );">土耳其</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 57, false );" id="LC" onclick="DHighlightItem( 'billing_country', 57, true );">圣卢西亚岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 58, false );" id="KN" onclick="DHighlightItem( 'billing_country', 58, true );">圣基茨和尼维斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 59, false );" id="ST" onclick="DHighlightItem( 'billing_country', 59, true );">圣多美普林西比</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 60, false );" id="VA" onclick="DHighlightItem( 'billing_country', 60, true );">圣廷(梵蒂冈)</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 61, false );" id="VC" onclick="DHighlightItem( 'billing_country', 61, true );">圣文森特和格林纳丁斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 62, false );" id="PM" onclick="DHighlightItem( 'billing_country', 62, true );">圣皮埃尔和密克隆</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 63, false );" id="CX" onclick="DHighlightItem( 'billing_country', 63, true );">圣诞岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 64, false );" id="SH" onclick="DHighlightItem( 'billing_country', 64, true );">圣赫勒拿</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 65, false );" id="SM" onclick="DHighlightItem( 'billing_country', 65, true );">圣马力诺</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 66, false );" id="GY" onclick="DHighlightItem( 'billing_country', 66, true );">圭亚那</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 67, false );" id="TZ" onclick="DHighlightItem( 'billing_country', 67, true );">坦桑尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 68, false );" id="EG" onclick="DHighlightItem( 'billing_country', 68, true );">埃及</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 69, false );" id="ET" onclick="DHighlightItem( 'billing_country', 69, true );">埃塞俄比亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 70, false );" id="KI" onclick="DHighlightItem( 'billing_country', 70, true );">基里巴斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 71, false );" id="TJ" onclick="DHighlightItem( 'billing_country', 71, true );">塔吉克斯坦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 72, false );" id="SN" onclick="DHighlightItem( 'billing_country', 72, true );">塞内加尔</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 73, false );" id="RS" onclick="DHighlightItem( 'billing_country', 73, true );">塞尔维亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 74, false );" id="SL" onclick="DHighlightItem( 'billing_country', 74, true );">塞拉利昂</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 75, false );" id="CY" onclick="DHighlightItem( 'billing_country', 75, true );">塞浦路斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 76, false );" id="SC" onclick="DHighlightItem( 'billing_country', 76, true );">塞舌尔</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 77, false );" id="MX" onclick="DHighlightItem( 'billing_country', 77, true );">墨西哥</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 78, false );" id="TG" onclick="DHighlightItem( 'billing_country', 78, true );">多哥</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 79, false );" id="DM" onclick="DHighlightItem( 'billing_country', 79, true );">多米尼克</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 80, false );" id="DO" onclick="DHighlightItem( 'billing_country', 80, true );">多米尼加共和国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 81, false );" id="AX" onclick="DHighlightItem( 'billing_country', 81, true );">奥兰群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 82, false );" id="AT" onclick="DHighlightItem( 'billing_country', 82, true );">奥地利</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 83, false );" id="VE" onclick="DHighlightItem( 'billing_country', 83, true );">委内瑞拉</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 84, false );" id="BD" onclick="DHighlightItem( 'billing_country', 84, true );">孟加拉国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 85, false );" id="AO" onclick="DHighlightItem( 'billing_country', 85, true );">安哥拉</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 86, false );" id="AI" onclick="DHighlightItem( 'billing_country', 86, true );">安圭拉岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 87, false );" id="AG" onclick="DHighlightItem( 'billing_country', 87, true );">安提瓜和巴布达</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 88, false );" id="AD" onclick="DHighlightItem( 'billing_country', 88, true );">安道尔</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 89, false );" id="FM" onclick="DHighlightItem( 'billing_country', 89, true );">密克罗尼西亚联邦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 90, false );" id="NI" onclick="DHighlightItem( 'billing_country', 90, true );">尼加拉瓜</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 91, false );" id="NG" onclick="DHighlightItem( 'billing_country', 91, true );">尼日利亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 92, false );" id="NE" onclick="DHighlightItem( 'billing_country', 92, true );">尼日尔</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 93, false );" id="NP" onclick="DHighlightItem( 'billing_country', 93, true );">尼泊尔</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 94, false );" id="PS" onclick="DHighlightItem( 'billing_country', 94, true );">巴勒斯坦占领区</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 95, false );" id="BS" onclick="DHighlightItem( 'billing_country', 95, true );">巴哈马群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 96, false );" id="PK" onclick="DHighlightItem( 'billing_country', 96, true );">巴基斯坦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 97, false );" id="BB" onclick="DHighlightItem( 'billing_country', 97, true );">巴巴多斯岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 98, false );" id="PG" onclick="DHighlightItem( 'billing_country', 98, true );">巴布亚新几内亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 99, false );" id="PY" onclick="DHighlightItem( 'billing_country', 99, true );">巴拉圭</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 100, false );" id="PA" onclick="DHighlightItem( 'billing_country', 100, true );">巴拿马</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 101, false );" id="BH" onclick="DHighlightItem( 'billing_country', 101, true );">巴林</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 102, false );" id="BR" onclick="DHighlightItem( 'billing_country', 102, true );">巴西</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 103, false );" id="BF" onclick="DHighlightItem( 'billing_country', 103, true );">布基纳法索</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 104, false );" id="BV" onclick="DHighlightItem( 'billing_country', 104, true );">布维岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 105, false );" id="BI" onclick="DHighlightItem( 'billing_country', 105, true );">布隆迪</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 106, false );" id="GR" onclick="DHighlightItem( 'billing_country', 106, true );">希腊</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 107, false );" id="PW" onclick="DHighlightItem( 'billing_country', 107, true );">帕劳</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 108, false );" id="CK" onclick="DHighlightItem( 'billing_country', 108, true );">库克群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 109, false );" id="KY" onclick="DHighlightItem( 'billing_country', 109, true );">开曼群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 110, false );" id="DE" onclick="DHighlightItem( 'billing_country', 110, true );">德国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 111, false );" id="IT" onclick="DHighlightItem( 'billing_country', 111, true );">意大利</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 112, false );" id="SB" onclick="DHighlightItem( 'billing_country', 112, true );">所罗门群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 113, false );" id="TK" onclick="DHighlightItem( 'billing_country', 113, true );">托克劳</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 114, false );" id="LV" onclick="DHighlightItem( 'billing_country', 114, true );">拉脱维亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 115, false );" id="NO" onclick="DHighlightItem( 'billing_country', 115, true );">挪威</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 116, false );" id="CZ" onclick="DHighlightItem( 'billing_country', 116, true );">捷克</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 117, false );" id="MD" onclick="DHighlightItem( 'billing_country', 117, true );">摩尔多瓦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 118, false );" id="MA" onclick="DHighlightItem( 'billing_country', 118, true );">摩洛哥</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 119, false );" id="MC" onclick="DHighlightItem( 'billing_country', 119, true );">摩纳哥</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 120, false );" id="BN" onclick="DHighlightItem( 'billing_country', 120, true );">文莱达鲁萨兰国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 121, false );" id="FJ" onclick="DHighlightItem( 'billing_country', 121, true );">斐济</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 122, false );" id="SZ" onclick="DHighlightItem( 'billing_country', 122, true );">斯威士兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 123, false );" id="SK" onclick="DHighlightItem( 'billing_country', 123, true );">斯洛伐克</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 124, false );" id="SI" onclick="DHighlightItem( 'billing_country', 124, true );">斯洛文尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 125, false );" id="SJ" onclick="DHighlightItem( 'billing_country', 125, true );">斯瓦尔巴特和扬马延岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 126, false );" id="LK" onclick="DHighlightItem( 'billing_country', 126, true );">斯里兰卡</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 127, false );" id="SG" onclick="DHighlightItem( 'billing_country', 127, true );">新加坡</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 128, false );" id="NC" onclick="DHighlightItem( 'billing_country', 128, true );">新喀里多尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 129, false );" id="NZ" onclick="DHighlightItem( 'billing_country', 129, true );">新西兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 130, false );" id="JP" onclick="DHighlightItem( 'billing_country', 130, true );">日本</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 131, false );" id="CL" onclick="DHighlightItem( 'billing_country', 131, true );">智利</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 132, false );" id="IM" onclick="DHighlightItem( 'billing_country', 132, true );">曼岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 133, false );" id="KH" onclick="DHighlightItem( 'billing_country', 133, true );">柬埔寨</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 134, false );" id="GG" onclick="DHighlightItem( 'billing_country', 134, true );">根西岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 135, false );" id="GD" onclick="DHighlightItem( 'billing_country', 135, true );">格林纳达</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 136, false );" id="GL" onclick="DHighlightItem( 'billing_country', 136, true );">格陵兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 137, false );" id="GE" onclick="DHighlightItem( 'billing_country', 137, true );">格鲁吉亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 138, false );" id="BE" onclick="DHighlightItem( 'billing_country', 138, true );">比利时</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 139, false );" id="MR" onclick="DHighlightItem( 'billing_country', 139, true );">毛利塔尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 140, false );" id="MU" onclick="DHighlightItem( 'billing_country', 140, true );">毛里求斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 141, false );" id="TO" onclick="DHighlightItem( 'billing_country', 141, true );">汤加</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 142, false );" id="SA" onclick="DHighlightItem( 'billing_country', 142, true );">沙特阿拉伯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 143, false );" id="FR" onclick="DHighlightItem( 'billing_country', 143, true );">法国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 144, false );" id="TF" onclick="DHighlightItem( 'billing_country', 144, true );">法属南部领土</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 145, false );" id="GF" onclick="DHighlightItem( 'billing_country', 145, true );">法属圭亚那</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 146, false );" id="PF" onclick="DHighlightItem( 'billing_country', 146, true );">法属波利尼西亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 147, false );" id="FO" onclick="DHighlightItem( 'billing_country', 147, true );">法罗群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 148, false );" id="PL" onclick="DHighlightItem( 'billing_country', 148, true );">波兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 149, false );" id="PR" onclick="DHighlightItem( 'billing_country', 149, true );">波多黎各</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 150, false );" id="BA" onclick="DHighlightItem( 'billing_country', 150, true );">波斯尼亚和黑塞哥维那</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 151, false );" id="TH" onclick="DHighlightItem( 'billing_country', 151, true );">泰国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 152, false );" id="JE" onclick="DHighlightItem( 'billing_country', 152, true );">泽西岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 153, false );" id="ZW" onclick="DHighlightItem( 'billing_country', 153, true );">津巴布韦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 154, false );" id="HN" onclick="DHighlightItem( 'billing_country', 154, true );">洪都拉斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 155, false );" id="HT" onclick="DHighlightItem( 'billing_country', 155, true );">海地</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 156, false );" id="AU" onclick="DHighlightItem( 'billing_country', 156, true );">澳大利亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 157, false );" id="MO" onclick="DHighlightItem( 'billing_country', 157, true );">澳门</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 158, false );" id="IE" onclick="DHighlightItem( 'billing_country', 158, true );">爱尔兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 159, false );" id="EE" onclick="DHighlightItem( 'billing_country', 159, true );">爱沙尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 160, false );" id="JM" onclick="DHighlightItem( 'billing_country', 160, true );">牙买加</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 161, false );" id="TC" onclick="DHighlightItem( 'billing_country', 161, true );">特克斯和凯科斯群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 162, false );" id="TT" onclick="DHighlightItem( 'billing_country', 162, true );">特立尼达和多巴哥</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 163, false );" id="BO" onclick="DHighlightItem( 'billing_country', 163, true );">玻利维亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 164, false );" id="NR" onclick="DHighlightItem( 'billing_country', 164, true );">瑙鲁</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 165, false );" id="SE" onclick="DHighlightItem( 'billing_country', 165, true );">瑞典</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 166, false );" id="CH" onclick="DHighlightItem( 'billing_country', 166, true );">瑞士</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 167, false );" id="GP" onclick="DHighlightItem( 'billing_country', 167, true );">瓜德罗普岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 168, false );" id="WF" onclick="DHighlightItem( 'billing_country', 168, true );">瓦利斯和富图纳</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 169, false );" id="VU" onclick="DHighlightItem( 'billing_country', 169, true );">瓦努阿图</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 170, false );" id="RE" onclick="DHighlightItem( 'billing_country', 170, true );">留尼汪</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 171, false );" id="BY" onclick="DHighlightItem( 'billing_country', 171, true );">白俄罗斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 172, false );" id="BM" onclick="DHighlightItem( 'billing_country', 172, true );">百慕大群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 173, false );" id="PN" onclick="DHighlightItem( 'billing_country', 173, true );">皮特凯恩群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 174, false );" id="GI" onclick="DHighlightItem( 'billing_country', 174, true );">直布罗陀</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 175, false );" id="FK" onclick="DHighlightItem( 'billing_country', 175, true );">福克兰群岛(马尔维纳斯)</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 176, false );" id="KW" onclick="DHighlightItem( 'billing_country', 176, true );">科威特</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 177, false );" id="KM" onclick="DHighlightItem( 'billing_country', 177, true );">科摩罗</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 178, false );" id="CI" onclick="DHighlightItem( 'billing_country', 178, true );">科特迪瓦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 179, false );" id="CC" onclick="DHighlightItem( 'billing_country', 179, true );">科科斯(基林)群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 180, false );" id="PE" onclick="DHighlightItem( 'billing_country', 180, true );">秘鲁</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 181, false );" id="TN" onclick="DHighlightItem( 'billing_country', 181, true );">突尼斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 182, false );" id="LT" onclick="DHighlightItem( 'billing_country', 182, true );">立陶宛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 183, false );" id="SO" onclick="DHighlightItem( 'billing_country', 183, true );">索马里</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 184, false );" id="JO" onclick="DHighlightItem( 'billing_country', 184, true );">约旦</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 185, false );" id="NA" onclick="DHighlightItem( 'billing_country', 185, true );">纳米比亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 186, false );" id="NU" onclick="DHighlightItem( 'billing_country', 186, true );">纽埃岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 187, false );" id="MM" onclick="DHighlightItem( 'billing_country', 187, true );">缅甸</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 188, false );" id="RO" onclick="DHighlightItem( 'billing_country', 188, true );">罗马尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 189, false );" id="US" onclick="DHighlightItem( 'billing_country', 189, true );">美国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 190, false );" id="UM" onclick="DHighlightItem( 'billing_country', 190, true );">美国本土外小岛屿</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 191, false );" id="VI" onclick="DHighlightItem( 'billing_country', 191, true );">美属维尔京群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 192, false );" id="AS" onclick="DHighlightItem( 'billing_country', 192, true );">美属萨摩亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 193, false );" id="LA" onclick="DHighlightItem( 'billing_country', 193, true );">老挝</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 194, false );" id="KE" onclick="DHighlightItem( 'billing_country', 194, true );">肯尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 195, false );" id="FI" onclick="DHighlightItem( 'billing_country', 195, true );">芬兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 196, false );" id="SR" onclick="DHighlightItem( 'billing_country', 196, true );">苏里南</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 197, false );" id="GB" onclick="DHighlightItem( 'billing_country', 197, true );">英国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 198, false );" id="IO" onclick="DHighlightItem( 'billing_country', 198, true );">英属印度洋领地</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 199, false );" id="VG" onclick="DHighlightItem( 'billing_country', 199, true );">英属维尔京群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 200, false );" id="NL" onclick="DHighlightItem( 'billing_country', 200, true );">荷兰</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 201, false );" id="AN" onclick="DHighlightItem( 'billing_country', 201, true );">荷属安的列斯</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 202, false );" id="MZ" onclick="DHighlightItem( 'billing_country', 202, true );">莫桑比克</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 203, false );" id="LS" onclick="DHighlightItem( 'billing_country', 203, true );">莱索托</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 204, false );" id="PH" onclick="DHighlightItem( 'billing_country', 204, true );">菲律宾</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 205, false );" id="SV" onclick="DHighlightItem( 'billing_country', 205, true );">萨尔瓦多</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 206, false );" id="WS" onclick="DHighlightItem( 'billing_country', 206, true );">萨摩亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 207, false );" id="PT" onclick="DHighlightItem( 'billing_country', 207, true );">葡萄牙</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 208, false );" id="MN" onclick="DHighlightItem( 'billing_country', 208, true );">蒙古</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 209, false );" id="MS" onclick="DHighlightItem( 'billing_country', 209, true );">蒙特塞拉特岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 210, false );" id="EH" onclick="DHighlightItem( 'billing_country', 210, true );">西撒哈拉</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 211, false );" id="ES" onclick="DHighlightItem( 'billing_country', 211, true );">西班牙</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 212, false );" id="NF" onclick="DHighlightItem( 'billing_country', 212, true );">诺福克岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 213, false );" id="BJ" onclick="DHighlightItem( 'billing_country', 213, true );">贝宁</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 214, false );" id="ZM" onclick="DHighlightItem( 'billing_country', 214, true );">赞比亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 215, false );" id="GQ" onclick="DHighlightItem( 'billing_country', 215, true );">赤道几内亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 216, false );" id="HM" onclick="DHighlightItem( 'billing_country', 216, true );">赫德和麦克唐纳岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 217, false );" id="VN" onclick="DHighlightItem( 'billing_country', 217, true );">越南</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 218, false );" id="AZ" onclick="DHighlightItem( 'billing_country', 218, true );">阿塞拜疆</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 219, false );" id="AF" onclick="DHighlightItem( 'billing_country', 219, true );">阿富汗</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 220, false );" id="DZ" onclick="DHighlightItem( 'billing_country', 220, true );">阿尔及利亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 221, false );" id="AL" onclick="DHighlightItem( 'billing_country', 221, true );">阿尔巴尼亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 222, false );" id="AE" onclick="DHighlightItem( 'billing_country', 222, true );">阿拉伯联合酋长国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 223, false );" id="OM" onclick="DHighlightItem( 'billing_country', 223, true );">阿曼</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 224, false );" id="AR" onclick="DHighlightItem( 'billing_country', 224, true );">阿根廷</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 225, false );" id="AW" onclick="DHighlightItem( 'billing_country', 225, true );">阿鲁巴岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 226, false );" id="KR" onclick="DHighlightItem( 'billing_country', 226, true );">韩国</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 227, false );" id="HK" onclick="DHighlightItem( 'billing_country', 227, true );">香港</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 228, false );" id="MV" onclick="DHighlightItem( 'billing_country', 228, true );">马尔代夫</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 229, false );" id="MW" onclick="DHighlightItem( 'billing_country', 229, true );">马拉维</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 230, false );" id="MQ" onclick="DHighlightItem( 'billing_country', 230, true );">马提尼克岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 231, false );" id="MY" onclick="DHighlightItem( 'billing_country', 231, true );">马来西亚</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 232, false );" id="YT" onclick="DHighlightItem( 'billing_country', 232, true );">马约特岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 233, false );" id="MH" onclick="DHighlightItem( 'billing_country', 233, true );">马绍尔群岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 234, false );" id="MT" onclick="DHighlightItem( 'billing_country', 234, true );">马耳他</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 235, false );" id="MG" onclick="DHighlightItem( 'billing_country', 235, true );">马达加斯加岛</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 236, false );" id="ML" onclick="DHighlightItem( 'billing_country', 236, true );">马里</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 237, false );" id="LB" onclick="DHighlightItem( 'billing_country', 237, true );">黎巴嫩</a>
</li>
<li><a class="inactive_selection" tabindex="99999" href="javascript:DSelectNoop();" onmouseover="DHighlightItem( 'billing_country', 238, false );" id="ME" onclick="DHighlightItem( 'billing_country', 238, true );">黑山</a>
</li>
</ul>
</div>
</div>
<script language="javascript">
$J(function() {
$J('#billing_country_dselect_container').on('keydown', HandleKeyDown);
});
</script>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
</div>
<div class="form_row redeem_form_row" id="billing_postal_code_row">
<div>
<div class="form_left">
<label for="billing_postal_code">邮政编码</label>
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
<div>
<div class="form_left">
<input tabindex="106" type="text" class="redeem_input_box_text" maxlength="255" name="billing_postal_code" id="billing_postal_code">
</div>
<div class="form_right"></div>
<div style="clear: both;"></div>
</div>
</div>
<div class="button_row">
<a tabindex="300" href="javascript:SubmitAddressForm();" class="btnv6_blue_hoverfade btn_medium" id="address_btn" style=""> <span>继续</span>
</a>
<div id="address_btn_in_progress" class="btnv6_blue_hoverfade btn_medium" style="display: none;"> <span>处理中</span>
</div>
</div>
<div style="clear: both;"></div>
</div>
<div id="redeem_amount_form" name="redeem_amount_form" style="display:none;" class="redeem_wallet_code_form">
<h2>
货币兑换 </h2>
<div>
<br>基于您的居住地区,您的 Steam 钱包需要将您的 Steam 钱包充值码所充入的资金存储为不同的货币。当您使用 Steam 钱包充值码时,我们将自动转换资金并存入您的 Steam 钱包。</div>
<div class="redeem_wallet_conversion_box">
<div class="redeem_wallet_conversion_box_row">
<div id="code_amount" class="redeem_wallet_conversion_text redeem_wallet_conversion_text_box"></div>
<div class="redeem_wallet_conversion_text redeem_wallet_conversion_text_equal">=</div>
<div id="code_exchange_amount" class="redeem_wallet_conversion_text redeem_wallet_conversion_text_box"></div>
<div style="clear: both;"></div>
</div>
</div>
<div class="button_row">
<a tabindex="300" href="javascript:RedeemWalletCode();" class="btnv6_blue_hoverfade btn_medium" id="redeem_btn"> <span>继续</span>
</a>
<div id="redeem_btn_in_progress" class="btnv6_blue_hoverfade btn_medium" style="display:none"> <span>处理中</span>
</div>
</div>
<div style="clear: both;"></div>
</div>
`);
function DisplayPage( page ){
$('error_display').innerHTML = '';
$('error_display').style.display = 'none';
switch ( page ){
case 'code':
$('wallet_code_form').style.display = '';
$('redeem_wallet_code_upsell_text').style.display = '';
$('address_form').style.display = 'none';
$('redeem_amount_form').style.display = 'none';
$('validate_btn').style.display = '';
$('validate_btn_in_progress').style.display = 'none';
jQuery('#inputKey').val('');
break;
case 'address':
$('address_btn').style.display = '';
$('address_btn_in_progress').style.display = 'none';
$('wallet_code_form').style.display = 'none';
$('redeem_wallet_code_upsell_text').style.display = 'none';
$('main_content').style.backgroundImage = "url('')";
$('address_form').style.display = '';
$('redeem_amount_form').style.display = 'none';
break;
case 'redeem_amount':
$('redeem_btn').style.display = '';
$('redeem_btn_in_progress').style.display = 'none';
$('wallet_code_form').style.display = 'none';
$('redeem_wallet_code_upsell_text').style.display = 'none';
$('main_content').style.backgroundImage = "url('')";
$('address_form').style.display = 'none';
$('redeem_amount_form').style.display = '';
break;
}
}
function UpdateStateSelection(){
try{
if ( $('billing_country').value == 'US' ){
$('billing_state_text').style.display = 'none';
$('billing_state_select_dselect_container').style.display = 'block';
}else{
$('billing_state_text').style.display = 'block';
$('billing_state_select_dselect_container').style.display = 'none';
}
}catch( e ){
ReportRedeemJSError( 'Failed in UpdateStateSelection()', e );
}
}
function ReportRedeemJSError( message, e ){
try{
if (typeof e == 'string')
e = new Error(e);
ReportError( '/public/javascript/redeemwalletcode.js?l=schinese', message, message+":\n\n Exception: "+e.name+" - "+e.message+"\n" );
} catch( e ){
}
}
var g_bValidateWalletCodeCallRunning = false;
function ValidateWalletCode(){
if( g_bValidateWalletCodeCallRunning )
return;
if ( jQuery('#inputKey').val().trim() == '' ){
DisplayErrorMessage( '您必须输入钱包充值码来继续。' );
}
else{
try{
g_bValidateWalletCodeCallRunning = true;
$('validate_btn').style.display = 'none';
$('validate_btn_in_progress').style.display = '';
new Ajax.Request('https://store.steampowered.com/account/validatewalletcode/',{
method:'post',
parameters: {
'wallet_code' : jQuery('#inputKey').val().trim(),
'sessionid' : g_sessionID
},
onSuccess: function(transport){
g_bValidateWalletCodeCallRunning = false;
if ( transport.responseText ){
try {
var result = transport.responseText.evalJSON(true);
} catch ( e ) {
// Failure
OnValidateWalletCodeFailure( 2 );
}
// Success...
if ( result.success == 1 && result.detail == 0 ){
OnValidateWalletCodeSuccess( result );
return;
}
else{
OnValidateWalletCodeFailure( result.detail );
return;
}
}
OnValidateWalletCodeFailure( 0 );
},
onFailure: function(){
g_bValidateWalletCodeCallRunning = false;
OnValidateWalletCodeFailure( 0 );
}
});
}catch(e){
ReportRedeemJSError( 'Failed gathering form data and calling ValidateWalletCode', e );
}
}
}
var g_sWalletCodeAmount;
var g_sExchangedWalletCodeAmount;
function OnValidateWalletCodeSuccess( result ){
try{
$('error_display').innerHTML = '';
$('error_display').style.display = 'none';
g_sWalletCodeAmount = result.formattedcodeamount;
g_sExchangedWalletCodeAmount = g_sWalletCodeAmount;
UpdateRedeemForm( result );
if ( result.haswallet ){
if ( result.currency == result.wallet.currencycode ){
RedeemWalletCode();
}else{
CreateWalletAndCheckFunds( false );
}
}else{
DisplayPage( 'address' );
UpdateStateSelection();
}
}catch( e ){
ReportRedeemJSError( 'Failed handling ValidateWalletCode success', e );
}
}
function OnValidateWalletCodeFailure( detail ){
try{
var sErrorMessage = '发生了一个意外错误。您的 Steam 钱包充值码目前无法被兑换。请在 30 分钟后重新兑换该充值码。如果您仍然遇到问题,请联系 <a href="https://help.steampowered.com/wizard/HelpWithWalletCode">Steam 客服</a>寻求进一步的帮助。';
switch ( detail ){
case 14:
sErrorMessage = '您输入的 Steam 钱包充值码无效。重新输入时请仔细核对字符。';
break;
case 15:
sErrorMessage = '您输入的 Steam 钱包充值码已被兑换。Steam 客服无法向您发放新的充值码。';
break;
case 58:
sErrorMessage = '您输入的 Steam 钱包充值码尚未被激活。请注意,充值码可能在购买几小时后才会由您的零售商完成激活。如果您仍然遇到问题,请联系充值码的卖家寻求进一步的帮助。';
break;
case 9:
sErrorMessage = '您输入的 Steam 钱包充值码已于先前兑换到您的帐户中了。';
break;
default:
sErrorMessage = '发生了一个意外错误。您的 Steam 钱包充值码目前无法被兑换。请在 30 分钟后重新兑换该充值码。如果您仍然遇到问题,请联系 <a href="https://help.steampowered.com/wizard/HelpWithWalletCode">Steam 客服</a>寻求进一步的帮助。';
break;
}
DisplayErrorMessage( sErrorMessage );
$('validate_btn').style.display = '';
$('validate_btn_in_progress').style.display = 'none';
}catch (e){
ReportRedeemJSError( 'Failed handling ValidateWalletCode failure', e );
}
}
function SubmitAddressForm(){
var errorString = '';
var rgBadFields = {
billing_address : false,
billing_city : false,
billing_state_text : false,
billing_postal_code : false,
billing_state_select_trigger : false
}
try{
if ( $( 'billing_address' ).value.length < 1 ){
errorString += '请输入您的账单地址。<br/>';
rgBadFields.billing_address = true;
}
if ( $( 'billing_city' ).value.length < 1 ){
errorString += '请输入您的账单城市。<br/>';
rgBadFields.billing_city = true;
}
if ( $( 'billing_country' ).value == 'US' ){
if ( $('billing_state_select').value.length < 1 ){
errorString += '请输入一个州或省。<br/>';
rgBadFields.billing_state_select_trigger = true;
}
}
if ( $( 'billing_country' ).value == 'US' ){
if ( $( 'billing_postal_code' ).value.length < 5 ){
errorString += '请输入您所在地区的邮政编码。<br/>';
rgBadFields.billing_postal_code = true;
}
}else if ( $( 'billing_postal_code' ).value.length < 1 ){
errorString += '请输入您所在地区的邮政编码。<br/>';
rgBadFields.billing_postal_code = true;
}
}catch(e){
ReportRedeemJSError( 'Failed validating address info form', e );
}
try{
for ( var key in rgBadFields ){
if ( rgBadFields[key] ){
ValidationMarkFieldBad( key );
}else{
ValidationMarkFieldOk( key );
}
}
if ( errorString != '' ){
var rgErrors = errorString.split( '<br/>' );
if ( rgErrors.length > 3 ){
errorString = '';
errorString = rgErrors[0] + '<br/>' + rgErrors[1] + '<br/>' + '并查看下面突出显示的更多错误。' + '<br/>';
}
DisplayErrorMessage( errorString );
}else{
$('error_display').innerHTML = '';
$('error_display').style.display = 'none';
CreateWalletAndCheckFunds( true );
}
}catch(e){
ReportRedeemJSError( 'Failed showing error or submitting payment info form', e );
}
}
var g_bCreateWalletAndCheckFundsRunning = false;
function CreateWalletAndCheckFunds( bCreateFromAddress ){
if( g_bCreateWalletAndCheckFundsRunning )
return;
try{
g_bCreateWalletAndCheckFundsRunning = true;
$('address_btn').style.display = 'none';
$('address_btn_in_progress').style.display = '';
new Ajax.Request('https://store.steampowered.com/account/createwalletandcheckfunds/',{
method:'post',
parameters: {
'wallet_code' : jQuery('#inputKey').val().trim(),
'CreateFromAddress' : bCreateFromAddress ? 1 : 0,
'Address' : $('billing_address').value,
'City' : $('billing_city').value,
'Country' : $('billing_country').value,
'State' : ($('billing_country').value == 'US' ? $('billing_state_select').value : $('billing_state_text').value),
'PostCode' : $('billing_postal_code').value,
'sessionid' : g_sessionID
},
onSuccess: function(transport){
g_bCreateWalletAndCheckFundsRunning = false;
if ( transport.responseText ){
try {
var result = transport.responseText.evalJSON(true);
} catch ( e ) {
// Failure
OnCreateWalletAndCheckFundsFailure( 2 );
}
// Success...
if ( result.success == 1 ){
OnCreateWalletAndCheckFundsSuccess( result );
return;
}else{
OnCreateWalletAndCheckFundsFailure( result.success );
return;
}
}
OnCreateWalletAndCheckFundsFailure( 2 );
},
onFailure: function(){
g_bCreateWalletAndCheckFundsRunning = false;
OnCreateWalletAndCheckFundsFailure( 2 );
}
});
}catch(e){
ReportRedeemJSError( 'Failed gathering form data and calling CreateWallet', e );
}
}
function UpdateRedeemForm( result ){
$('redeem_wallet_success_description').innerHTML = result.success_message;
$('redeem_wallet_success_upsell_text').innerHTML = result.upsell_text;
$('redeem_wallet_success_app_image_link').href = result.redirect_url;
$('redeem_wallet_success_button').href = result.redirect_url;
$('redeem_wallet_success_button_text').innerHTML = result.redirect_button_text;
if ( result.bRedirectToApp ){
$('redeem_wallet_success_default_image').style.display = 'none';
$('redeem_wallet_success_image').src = result.redirect_image;
$('redeem_wallet_success_app_image').style.display = '';
}else{
$('redeem_wallet_success_default_image').style.display = '';
$('redeem_wallet_success_app_image').style.display = 'none';
}
}
function OnCreateWalletAndCheckFundsSuccess( result ){
try{
$('error_display').innerHTML = '';
$('error_display').style.display = 'none';
g_sExchangedWalletCodeAmount = result.formattedcodeexchangeamount;
UpdateRedeemForm( result );
if ( result.currency != result.grant_currency ){
$('code_amount').innerHTML = g_sWalletCodeAmount;
$('code_exchange_amount').innerHTML = g_sExchangedWalletCodeAmount;
DisplayPage( 'redeem_amount' );
}else{
RedeemWalletCode();
}
}catch( e ){
ReportRedeemJSError( 'Failed handling CreateWallet success', e );
}
}
function OnCreateWalletAndCheckFundsFailure( detail ){
try{
DisplayErrorMessage( '确认钱包时出现错误。您的钱包充值码尚未被兑换。<br>请联系 <a href="http://support.steampowered.com">Steam 客服</a>。' );
$('address_btn').style.display = '';
$('address_btn_in_progress').style.display = 'none';
$('validate_btn').style.display = '';
$('validate_btn_in_progress').style.display = 'none';
}catch (e){
ReportRedeemJSError( 'Failed handling CreateWallet failure', e );
}
}
var g_bRedeemWalletCodeRunning = false;
function RedeemWalletCode(){
if( g_bRedeemWalletCodeRunning )
return;
try{
g_bRedeemWalletCodeRunning = true;
$('redeem_btn').style.display = 'none';
$('redeem_btn_in_progress').style.display = '';
new Ajax.Request('https://store.steampowered.com/account/confirmredeemwalletcode/',{
method:'post',
parameters: {
'wallet_code' : jQuery('#inputKey').val().trim(),
'sessionid' : g_sessionID
},
onSuccess: function(transport){
g_bRedeemWalletCodeRunning = false;
if ( transport.responseText ){
try {
var result = transport.responseText.evalJSON(true);
} catch ( e ) {
// Failure
OnRedeemWalletCodeFailure( 2 );
}
// Success...
if ( result.success == 1 ){
OnRedeemWalletCodeSuccess( result );
return;
}else{
OnRedeemWalletCodeFailure( result.success, result.detail );
return;
}
}
OnRedeemWalletCodeFailure( 2, 0 );
},
onFailure: function(){
g_bRedeemWalletCodeRunning = false;
OnRedeemWalletCodeFailure( 2, 0 );
}
});
}catch(e){
ReportRedeemJSError( 'Failed gathering form data and calling RedeemWalletCode', e );
}
}
function OnRedeemWalletCodeSuccess( result ){
try{
$('wallet_current_balance').innerHTML = result.formattednewwalletbalance;
DisplayPage( 'code' );
showModal ( 'redirectStorePageModal', true );
}catch( e ){
ReportRedeemJSError( 'Failed handling RedeemWalletCode success', e );
}
}
function OnRedeemWalletCodeFailure( success, detail ){
try{
var sErrorMessage = '发生了一个意外错误。您的 Steam 钱包充值码目前无法被兑换。请在 30 分钟后重新兑换该充值码。如果您仍然遇到问题,请联系 <a href="https://help.steampowered.com/wizard/HelpWithWalletCode">Steam 客服</a>寻求进一步的帮助。';
switch ( success ){
case 16:
sErrorMessage = '发生了一个意外错误。您的 Steam 钱包充值码目前无法被兑换。请在 30 分钟后重新兑换该充值码。如果您仍然遇到问题,请联系 <a href="https://help.steampowered.com/wizard/HelpWithWalletCode">Steam 客服</a>寻求进一步的帮助。';
break;
default:
switch ( detail ){
case 48:
sErrorMessage = '您输入的 Steam 钱包充值码无效。重新输入时请仔细核对字符。';
break;
case 14:
sErrorMessage = '您输入的 Steam 钱包充值码无效。重新输入时请仔细核对字符。';
break;
case 44:
sErrorMessage = '您输入的 Steam 钱包充值码似乎有效;然而,您的 Steam 帐户目前在激活 Steam 钱包充值码时受到限制。请联系 <a href="https://support.steampowered.com/newticket.php?category=15">Steam 客服</a>寻求进一步的帮助。';
break;
case 68:
sErrorMessage = '您输入的 Steam 钱包充值码似乎有效,然而受制于美国政府法规,Steam 钱包一天内的流动金额为 2000 美元。请于 24 小时后重试。';
break;
default:
sErrorMessage = '发生了一个意外错误。您的 Steam 钱包充值码目前无法被兑换。请在 30 分钟后重新兑换该充值码。如果您仍然遇到问题,请联系 <a href="https://help.steampowered.com/wizard/HelpWithWalletCode">Steam 客服</a>寻求进一步的帮助。';
break;
}
break;
}
DisplayErrorMessage( sErrorMessage );
$('redeem_btn').style.display = '';
$('redeem_btn_in_progress').style.display = 'none';
$('validate_btn').style.display = '';
$('validate_btn_in_progress').style.display = 'none';
}catch (e){
ReportRedeemJSError( 'Failed handling RedeemWalletCode failure', e );
}
}
function DisplayErrorMessage( strMessage ){
$('error_display').innerHTML = strMessage;
$('error_display').style.display = 'block';
Effect.ScrollTo( 'error_display' );
new Effect.Highlight( 'error_display', { endcolor : '#000000', startcolor : '#ff9900' } );
}
function ValidationMarkFieldBad( elem ){
if ( $(elem) ){
if ( $(elem).hasClassName( 'highlight_on_error' ) )
new Effect.Morph( elem, {style: 'color: #FF9900', duration: 0.5 } );
else
new Effect.Morph( elem, {style: 'border-color: #FF9900', duration: 0.5 } )
}
}
function ValidationMarkFieldOk( elem ){
if ( $(elem) ){
if ( $(elem).hasClassName( 'highlight_on_error' ) )
$(elem).style.color='';
else
$(elem).style.borderColor = '';
}
}
function redeemSubs(){
redeemSub(jQuery('#inputKey').val().trim());
}
function redeemCode(){
ValidateWalletCode();
}
toggleUnusedKeyArea();
function copyKey(){
let infoHtml=jQuery("#unusedKeys>li");
let stmcnInfo="";
if(infoHtml&&(infoHtml.length==0)){
return "没有未使用的key";
}else{
for (let i=0;i<infoHtml.length;i++){
let info=infoHtml[i].innerHTML;
if(/已拥有/gim.test(info)){
let key=info.match(/[\w\d]{5}(-[\w\d]{5}){2}/gim)[0];
let code=info.match(/<code>[\d]+?<\/code>/gim)[0].replace(/<\/?code>/gim,"");
let name=info.match(/<\/code>[\w\W]*?\)/gim)[0].replace(/<\/code>|\)/gim,"").replace(/(^\s*)|(\s*$)/g, "");
stmcnInfo = stmcnInfo + "[url=https://store.steampowered.com/account/registerkey?key=" + key + "]" + key+ "[/url] [url=https://steamdb.info/sub/" + code + "]" + name + "[/url] \n";
}else{
return "没有已拥有的key";
}
}
}
return stmcnInfo;
}
css('table a {color: pink;}td {white-space: nowrap;overflow: hidden;}code {padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:3px}' +
'.notice_box_content {border: 1px solid #a25024;border-radius: 3px;width: 525px;color: #acb2b8;font-size: 14px;font-family: "Motiva Sans", Sans-serif;font-weight: normal;padding: 15px 15px;margin-bottom: 15px;}' +
'.notice_box_content b {font-weight: normal;color: #f47b20;}li {white-space: nowrap;overflow: hidden;}'+
'.link-toast{position:absolute;padding:12px 24px;font-size:15px;border-radius:8px;white-space:nowrap;color:#fff;-webkit-animation:h cubic-bezier(.22,.58,.12,.98) .4s;animation:h cubic-bezier(.22,.58,.12,.98) .4s;z-index:10000}'+
'.link-toast.info{background-color:#48bbf8;-webkit-box-shadow:0 .2em .1em .1em rgba(72,187,248,.2);box-shadow:0 .2em .1em .1em rgba(72,187,248,.2)}'+
'.link-toast.success{background-color:#47d279;-webkit-box-shadow:0 .2em .1em .1em rgba(71,210,121,.2);box-shadow:0 .2em .1em .1em rgba(71,210,121,.2)}</style>');
jQuery("body").append('<div id="suc" class="link-toast success" style="position:fixed;top:300px;left:600px;display:none">复制成功!</div>'+
'<div id="copyInfo" class="link-toast info" style="position:fixed;top:300px;left:600px;display:none"></div>');
jQuery("#unusedKeyArea>b").after('<button id="copy" class="btnv6_blue_hoverfade btn_medium">提取已拥有key(steamcn论坛格式)</button>');
function copySteamKey(){
let unk=copyKey();
if(unk=="没有未使用的key"){
jQuery("#copyInfo").html("没有未使用的key");
jQuery("#copyInfo").show();
setTimeout(function(){
jQuery("#copyInfo").fadeOut();
},2000);
}else if(unk=="没有已拥有的key"){
jQuery("#copyInfo").html("没有已拥有的key");
jQuery("#copyInfo").show();
setTimeout(function(){
jQuery("#copyInfo").fadeOut();
},2000);
}else{
copy(unk);
jQuery("#suc").show();
setTimeout(function(){
jQuery("#suc").fadeOut();
},2000);
}
}
jQuery("#copy").click(copySteamKey);
}else{//点击添加链接
let htmlEl;
if(window.document.body){
window.document.body.onclick = function(event){
htmlEl = event.target;//鼠标每经过一个元素,就把该元素赋值给变量htmlEl
if(htmlEl.tagName!=='A' && htmlEl.tagName!=='BUTTON' && htmlEl.getAttribute("type")!=='button' && htmlEl.tagName!=='TEXTAREA' && htmlEl.getAttribute("type")!=='text'){
let elCn = htmlEl.childNodes;
let elNum = elCn.length;
for(let i = 0;i<elNum;i++) {
if(elCn[i].nodeType===3&&(/[\w\d]{5}(-[\w\d]{5}){2}/gim.test(elCn[i].nodeValue))){
let key=elCn[i].nodeValue.match(/[\w\d]{5}(-[\w\d]{5}){2}/gim);
addHref(htmlEl,key);
}
}
}
}
}
function addHref(ele,steamKey){//添加链接
for(let i=0;i<steamKey.length;i++){
ele.innerHTML=/http/.test(steamKey)?ele.innerHTML.replace(steamKey,`<a href="${steamKey}" target="_blank">${steamKey}</a>`):ele.innerHTML.replace(steamKey,`<a href="https://store.steampowered.com/account/registerkey?key=${steamKey}" target="_blank">${steamKey}</a>`);
}
}
//激活页面内所有key
function redeemAllKey(){
let len=0;
let keyList="";
let hasKey=[];
function arr(arr) {
return [...new Set(arr)];
}
function addBtn(){
let div = document.createElement("div");
div.setAttribute("id", "keyDiv");
div.setAttribute("style", "position:fixed;left:5px;bottom:5px");
div.innerHTML = `<button id="allKey" value="https://store.steampowered.com/account/registerkey?key=" onClick="window.open(document.getElementById('allKey').value,'_blank')" style="display:none;z-index:9999">激活本页面所有key(共${len}个)</button>`;
document.getElementsByTagName('body')[0].appendChild(div);
}
addBtn();
setInterval(function(){
let allSteamKey=document.getElementsByTagName('body')[0].innerText;
allSteamKey=allSteamKey.match(/[\w\d]{5}(-[\w\d]{5}){2}/gim)||[];
allSteamKey=arr(allSteamKey)||[];
len=allSteamKey.length;
if(len>0){
for(let i=0;i<len;i++){
if(hasKey.indexOf(allSteamKey[i])<0){
keyList+=allSteamKey[i]+",";
hasKey.push(allSteamKey[i]);
}
}
document.getElementById('allKey').value="https://store.steampowered.com/account/registerkey?key=" + keyList;
document.getElementById('allKey').innerText="激活本页面所有key(共" + len + "个)";
document.getElementById('allKey').style.display="block";
}else if(document.getElementById('allKey')&&(document.getElementById('allKey').style.display==="block")){
document.getElementById('allKey').style.display="none";
document.getElementById('allKey').innerText="激活本页面所有key(共0个)";
}
},1000);
}
redeemAllKey();
}
//steamdb.info
if(/https?:\/\/steamdb\.info\/freepackages\//.test(url)){//点击自动跳转到激活页面
let activateConsole = function(e) {
let sub=[];
$("#freepackages span:visible").map(function(){
sub.push($(this).attr("data-subid"));
});
let freePackages=sub.join(",");
window.open("https://store.steampowered.com/account/licenses/?sub=" + freePackages,"_self");
};
let fp=setInterval(()=>{
if(document.getElementById("freepackages")){
document.getElementById("freepackages").onclick=activateConsole;
clearInterval(fp);
}
},1000);
}
if (/https?:\/\/store\.steampowered\.com\/account\/licenses\/(\?sub\=[\w\W]{0,})?/.test(url)){//自动添加sub
jQuery('.pageheader').parent().append('<div style="float: left;";>' +
'<textarea class="registerkey_input_box_text" rows="1"' + 'name="product_key"' +
' id="gameSub" placeholder="输入SUB,多个SUB之间用英文逗号连接"' + 'value=""' + 'color:#fff;' +
' style="margin: 3px 0px 0px; width: 400px; height: 15px;background-color:#102634; padding: 6px 18px 6px 18px; font-weight:bold; color:#fff;"></textarea>' +
'   ' + '</div>' + '<a tabindex="300" class="btnv6_blue_hoverfade btn_medium"' +
' style="width: 95px; height: 30px;"' +
' id="buttonSUB"><span>激活SUB</span></a>'+ '<a tabindex="300" class="btnv6_blue_hoverfade btn_medium"' +
' style="width: 125px; height: 30px;"' +
' id="changeCountry"><span>更改国家/地区</span></a>');
jQuery('#buttonSUB').click(()=>{redeemSub()});
jQuery('#changeCountry').click(cc);
if (/https?:\/\/store\.steampowered\.com\/account\/licenses\/\?sub\=([\d]{1,},){1,}/.test(url)){
setTimeout(()=>{redeemSub(url)},2000);
}
}
function redeemSub(e){
let subText=e||document.getElementById("gameSub").value;
if(subText){
let ownedPackages = {};
jQuery( '.account_table a' ).each( function( i, el ){
let match = el.href.match( /javascript:RemoveFreeLicense\( ([0-9]+), '/ );
if( match !== null ){
ownedPackages[ +match[ 1 ] ] = true;
}
} );
console.log(subText);
let freePackages =subText.match(/[\d]{2,}/g);
let i = 0,
loaded = 0,
packae = 0,
total = freePackages.length,
modal = swal( '正在执行…','请等待所有请求完成。 忽略所有错误,让它完成。' );
for( ; i < total; i++ ){
packae = freePackages[ i ];
if( ownedPackages[ packae ] ){
loaded++;
continue;
}
jQuery.post('//store.steampowered.com/checkout/addfreelicense',{
action: 'add_to_cart',
sessionid: g_sessionID,
subid: packae
}).always(function(){
loaded++;
//modal.Dismiss();
if( loaded >= total ){
if(url.includes("licenses")){
window.open("https://store.steampowered.com/account/licenses/","_self");
}else{
swal("全部激活完成,是否前往账户页面查看结果?", {
buttons: {
cancel: "取消",
"确定": true,
},
})
.then((value) => {
if(value) window.open("https://store.steampowered.com/account/licenses/","_blank");
});
}
}else{
modal = swal( '正在激活…','进度:' + loaded + '/' + total + '.' );
}
});
}
}
}
function cc(){
jQuery.ajax({
url:"//store.steampowered.com/cart/",
type:"get",
success:function(data){
if(data.match(/id\=\"usercountrycurrency_trigger\"[\w\W]*?\>[w\W]*?\<\/a/gim)){
let c=data.match(/id\=\"usercountrycurrency_trigger\"[\w\W]*?\>[w\W]*?\<\/a/gim)[0].replace(/id\=\"usercountrycurrency_trigger\"[\w\W]*?\>|\<\/a/g,"");
let thisC=data.match(/id\=\"usercountrycurrency\"[\w\W]*?value=\".*?\"/gim)[0].match(/value=\".*?\"/gim)[0].replace(/value=\"|\"/g,"");
let div=data.match(/\<div class=\"currency_change_options\"\>[\w\W]*?\<p/gim)[0].replace(/[\s]*?\<p/gim,"")+"</div>";
jQuery("body").append(`<div id="ccDiv" style="position:fixed;margin:auto;z-index: 1000;width:629px;height:228px;top:20px;bottom:20px;left:20px;right:20px;background-color:#232b34"><div class="newmodal_header_border"><div class="newmodal_header"><div class="newmodal_close"></div><div id="nowCountry" class="ellipsis" data-country="${thisC}" style="font-size:20px;">转换商店和钱包 当前国家/地区:${c}</div></div></div><div style="padding:20px">${div}</div></div>`);
jQuery(".currency_change_option").click(function(){
changeCountry(jQuery(this).attr("data-country"));
});
jQuery(".newmodal_close").click(function(){
jQuery("#ccDiv").remove();
});
}else{
swal("需要挂相应地区的梯子!","","warning");
}
},
error:()=>{
swal("获取当前国家/地区失败!","","error");
}
});
}
function changeCountry(country){
jQuery.ajax({
url:"//store.steampowered.com/account/setcountry",
type:"post",
data:{
sessionid:g_sessionID,
"cc":country
},
complete:function(data){
jQuery.ajax({
url:"//store.steampowered.com/cart/",
type:"get",
success:function(data){
let c=data.match(/id\=\"usercountrycurrency_trigger\"[\w\W]*?\>[w\W]*?\<\/a/gim)[0].replace(/id\=\"usercountrycurrency_trigger\"[\w\W]*?\>|\<\/a/g,"");
let thisC=data.match(/id\=\"usercountrycurrency\"[\w\W]*?value=\".*?\"/gim)[0].match(/value=\".*?\"/gim)[0].replace(/value=\"|\"/g,"");
let div=data.match(/\<div class=\"currency_change_options\"\>[\w\W]*?\<p/gim)[0].replace(/[\s]*?\<p/gim,"")+"</div>";
jQuery("#ccDiv").html(`<div class="newmodal_header_border"><div class="newmodal_header"><div class="newmodal_close"></div><div id="nowCountry" class="ellipsis" data-country="${thisC}" style="font-size:20px;">转换商店和钱包 当前国家/地区:${c}</div></div></div><div style="padding:20px">${div}</div>`);
jQuery(".currency_change_option").click(function(){
changeCountry(jQuery(this).attr("data-country"));
});
jQuery(".newmodal_close").click(function(){
jQuery("#ccDiv").remove();
});
if(thisC===country){
swal("更换成功!","","success");
}else{
swal("更换失败!","","error");
}
},
error:()=>{
swal("获取当前国家/地区失败!","","error");
}
});
}
});
}
GM_addStyle(`
.currency_change_option_ctn {
vertical-align: top;
margin: 0 6%;
}
.currency_change_option_ctn:first-child {
margin-bottom: 12px;
}
.currency_change_option_ctn > p {
font-size: 12px;
margin: 8px 8px 0 8px;
}
.currency_change_option_ctn {
vertical-align: top;
margin: 0 6%;
}
.currency_change_option_ctn:first-child {
margin-bottom: 12px;
}
.currency_change_option {
font-family: "Motiva Sans", Sans-serif;
font-weight: 300; /* light */
display: block;
}
.currency_change_option > span {
display: block;
padding: 9px 19px;
}
.currency_change_option .country {
font-size: 20px;
}
.currency_change_option .notes {
font-size: 13px;
line-height: 18px;
}
.currency_change_option_ctn > p {
font-size: 12px;
margin: 8px 8px 0 8px;
}
`)
}catch(e){
console.log("AuTo Redeemer Steamkey脚本执行出错: \n",e.stack);
}
}());