var isBuyQuota = false ; var isQuotaExpire = true ; var isBuyPoint = false ; var isPointExpire = true ; function openMobileSpace() { if (!isBuyQuota && !isBuyPoint) { var canUseMobileSpace = false ; } else { var canUseMobileSpace = true ; } /* * alert("MobileSpace 改版中,暫停使用一天 (關閉時間自 10:00 ~ 24:00)") ; /* */ if (canUseMobileSpace) { if (isBuyQuota && isBuyPoint) { if (isQuotaExpire && isPointExpire) { alert("您的網路硬碟及點數已超過使用期限,請在購買新的使用期限後再使用 MobileSpace!") ; } else if (isQuotaExpire && !isPointExpire) { alert("您的網路硬碟已超過使用期限!") ; } else if (!isQuotaExpire && isPointExpire) { alert("您的點數已超過使用期限!") ; } else { if (isQuotaExpire) { alert("您的網路硬碟已超過使用期限!") ; } if (isPointExpire) { alert("您的點數已超過使用期限!") ; } } } if (!isQuotaExpire || !isPointExpire) { intWidth = 900 ; intHeight = 600 ; x = (screen.width - intWidth) / 2 ; y = (screen.height - intHeight) / 2 ; strFeature = "toolbar=yes,scrollbars=yes,resizable=yes,width=" + intWidth + ",height=" + intHeight + ",top=" + y + ",left=" + x ; MyCAMEO = window.open("/website/setMobileSpaceSession.htm", "MyCAMEO", strFeature); } } else { alert("尚未購買 MobileSpace 服務!") ; } /* */ }