home *** CD-ROM | disk | FTP | other *** search
- Option Explicit
-
- Dim strAcceptUrl, strDeclineUrl
-
-
- Function OnDecline()
- '{
- Call window.location.replace (CStr(CANCEL_HTM))
- '}
- End Function
-
- Function OnAccept()
- '{
- Dim strAccountID, objRequest
- Dim nRegForce, nSubmitResult
-
- Set objRequest = gobjExternal.GetParam ( PROP_REGREQUEST )
-
- If IsObject (objRequest) Then
- '{
- strAccountID = objRequest.Item ( PROP_ACCOUNTID )
- Set objRequest = Nothing
- '}
- End If
-
- If "" = strAccountID Then
- strAcceptUrl = PROFILE_HTM
- Else
- '{
- nSubmitResult = SubmitDataForRegistration ( MODE_AUTH )
-
- If REGWIZ_STATUS_NOINTERNET = nSubmitResult Then
- '{
- ' Hide Cancel button for force registration
- nRegForce = gobjExternal.GetParam ( PROP_FORCE_REG )
-
- If 1 = nRegForce Then
- '{
- strAcceptUrl = SUBMITONCONNECT_HTM
- '}
- Else
- '{
- strAcceptUrl = REMINDME_HTM
- '}
- End If
- '}
- End If
- '}
- End If
-
- Call window.location.replace (CStr(strAcceptUrl))
- '}
- End Function
-
- Function OnEulaBodyLoad()
- '{
- Dim sIni, sTemp
-
- ' Always check if we are running in MgHtml's instance.
- Call SetExternalObject (gobjExternal)
-
- strAcceptUrl = PROFILE_HTM
- strDeclineUrl = CANCEL_HTM
-
- gsEulaLang = REGWIZ_LANG_ID
-
- Call window.setTimeout ( "SetDefaultEulaText()", 300 )
- '}
- End Function
-
- Function SetDefaultEulaText()
- '{
- ' Populate the country list
- Dim szCountry, szLang, szVal, strEulaTextLang, strTempLang
- Dim nLength, nCtr
-
- Call SortArray ( gCountryArray, gCountryArraySorted )
- nLength = getArrayLength ( gCountryArraySorted )
-
- strEulaTextLang = Replace ( gsEulaLang, "-", "_" )
-
- for nCtr = 0 To (nLength-1)
- '{
- szVal = GetCountryNameAndLangCode ( nCtr )
-
- szCountry = split(szVal,"$")(0)
- szLang = split(szVal,"$")(1)
-
- call AddToOptionList(idCountryList, szLang, szCountry)
-
- strTempLang = Replace ( strEulaTextLang, "_", "-" )
-
- If strTempLang = szLang Then
- '{
- idCountryList.options(nCtr).selected = true
- '}
- End If
- '}
- next
-
- ' language specific country should be selected by default. Ex. for us build it is "United States", for french build it is "France"
- idEulaText.value = eval("STR_EULA_CONTENT_" & strEulaTextLang)
- '}
- End Function
-
- Function ShowEulaContents()
- '{
- Dim strEulaTextLang
- strEulaTextLang = Replace ( idCountryList.value, "-", "_" )
-
- idEulaText.readOnly = false
- idEulaText.value = eval("STR_EULA_CONTENT_" & strEulaTextLang)
- idEulaText.readOnly = true
-
- gsEulaLang = idCountryList.value
- '}
- End Function
-
- Function PrintPrivacyPolicy()
- '{
- ' Calling printDoc()
- Call printDoc (1)
- '}
- End Function