var NShopCoin = { buyNCoin : function() { var url = "https://purchase.ncsoft.com/ncoin/buyNCoin"; var width = "816"; var height = "610"; this.openPopup(url, width, height, 0, 'buyNCoin'); }, popupNCoin : function() { var url = "https://purchase.ncsoft.com/ncoin/buyNCoin"; var width = "816"; var height = "610"; var setup = "width=" + width + ",height=" + height + ",toolbar=no,location=no,status=no,menubar=no,top=20,left=20,scrollbars=0,resizable=no"; var win = window.open(url, "popupNCoin", setup); return win; }, subscription : function(goodsId) { var url = "https://purchase.ncsoft.com/ncoin/purchaseSubscription?goodsId=" + goodsId; var width = "816"; var height = "610"; this.openPopup(url, width, height, 0, 'buyNCoin'); }, editBillingInfo : function() { var url = "https://purchase.ncsoft.com/ncoin/editBillingInfo"; var width = "700"; var height = "700"; this.openPopup(url, width, height, 0, 'billingAddress'); }, openPopup : function(url, width, height, scroll, winName) { var url = url; var setup = "width=" + width + ",height=" + height + ",toolbar=no,location=no,status=no,menubar=no,top=20,left=20,scrollbars=" + scroll +",resizable=no"; var win = window.open(url, "popup", setup); win.focus(); }, loginLink : function() { window.location.href = "https://login.ncsoft.com/login?return_url="; }, };