close
ishs: (location.protocol == 'https:'),
isgd: YWA.gcpn('gdid') ? true : false,
iscatitem: YWA.gcpn('catid') || YWA.gcpn('catitemid') ? true : false,
paysrc: YWA.gcpn('paysrc'),
ofp: YWA.gcpn('ofp'),
ct: YWA.gcpn('ct'),
otherdyc: (function(){
if (location.href.indexOf('search.php') >= 0) return 1;
if (location.href.indexOf('activity.ashx') >= 0) return 2;
if (location.href.indexOf('/help/') >= 0) return 3;
if (location.href.indexOf('/user/usertool/shop/track.aspx/home/default.ashx') >= 0) return 13;
if (location.href.indexOf('/user/usertool/shop/track.aspx/express/default.ashx') >= 0) return 14;
if (location.href.indexOf('/user/usertool/shop/track.aspx/cvs/default.ashx') >= 0) return 15;
if (location.href.indexOf('/usertool/shop/') >= 0) return 4;
if (location.href.indexOf('/usertool/qryprocess') >= 0) return 5;
if (location.href.indexOf('/usertool/qryauct01.asp') >= 0) return 11;
if (location.href.indexOf('/usertool/activity') >= 0) return 12;
if (location.href.indexOf('/usertool/') >= 0) return 6;
if (location.href.indexOf('/pay/') >= 0) return 7;
if (location.href.indexOf('/md/') >= 0) return 8;
if (location.href.indexOf('/member/') >= 0) return 9;
if (location.href.indexOf('bestbuy.ashx') >= 0) return 10;
return 0;
})(),
adv: (this.otherdyc == 1) ? YWA.gcpn('adv') : '',
sort1: (this.otherdyc == 1) ? YWA.gcpn('sort1') : '',
refFile: YWA.getFileName(location.href)
};
var params = '';
for (var name in o) {
if (o[name] !== '') {
params += (params.length ? '&' : '?');
params += (name + '=' + o[name]);
}
}
var script = document.createElement('script');
script.src = '/dycGet2.ashx' + params + '&t=' + Math.floor((+new Date)/86400000);
script.onload = function() {
if (typeof(callback) == 'function') {
var elmt = document.getElementById('spaceid');
if (elmt) callback(elmt.value);
}
};
document.body.appendChild(script);
};
setTimeout(function(){
var spaceid = document.getElementById('spaceid').value;
if (spaceid) {
DYC.sendRequest(spaceid);
if (typeof(callback) == 'function') {
callback(spaceid);
}
} else {
var zno = document.getElementById('zno').value;
var subno = document.getElementById('subno').value;
DYC.sendDycGet2(zno, subno, callback);
}
}, 0);
return DYC;
}