var iErrHandlePage = parent.InUpdate ? GOTO_OFFLINE_PAGE_2 : GOTO_OFFLINE_PAGE_1;
var sErrMsg = "";
switch( err.number )
{
case CH_EXT_CH_MAINTENANCE_ON:
L_ERRDESC1_TEXT = "Microsoft Activation Server is offline for regular maintenance or upgrade. Please try your request later.";
sErrMsg = L_ERRDESC1_TEXT;
break;
case ESL_ERR_CONTACT_CSR:
case ESL_ERR_MAX_UNLOCK_LIMIT:
L_ERR2A_TEXT = "According to our records, this copy of ";
L_ERR2B_TEXT = " has already been activated on another computer. If you believe you have received this message in error, please contact a Customer Support Representative by clicking OK and following the instructions.";
L_ERRDESC3_TEXT = "You have entered an unauthorized Product Key. Product activation cannot continue. For more information, you may contact a Customer Service Representative by selecting the Telephone option.";
sErrMsg = L_ERRDESC3_TEXT;
break;
case ESL_ERR_INVALID_CERTIFICATE:
L_ERRDESC4_TEXT = "Your existing license seems to be invalid or corrupt. Please reinstall ";
L_ERRDESC5_TEXT = "Your Product ID is not valid. Please contact a Customer Service Representative by clicking OK and selecting the Telephone option.";
sErrMsg = L_ERRDESC5_TEXT;
break;
case ESL_ERR_INVALID_CREDIT_CARD_INFO:
L_ERRDESC6_TEXT = "Your credit card company has informed us that they cannot approve this transaction at this time. You can either try using this card later, or enter another card number now.";
sErrMsg = L_ERRDESC6_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case LA_ERR_MODEM_DIALUP_CONNECTION:
L_ERRDESC7_TEXT = "A communication error has occurred. Your request cannot be processed at this time. Please try again later, or select the Telephone option in the Activation Wizard and follow the instructions provided.";
sErrMsg = L_ERRDESC7_TEXT;
break;
case CH_ICLIENT_HTTP_SEND_FAILED:
L_ERRDESC8_TEXT = "A communication error has occurred. Your request cannot be processed at this time. Please try again later, or select the Telephone option to speak with a Customer Support Representative.";
sErrMsg = L_ERRDESC8_TEXT;
break;
case CH_CLIENT_CH_CONNECT_FAILED: //CH service is not started
L_ERRDESC9_TEXT = "The Microsoft Activation Server is offline for regular maintenance or an upgrade. Please try again later.";
sErrMsg = L_ERRDESC9_TEXT;
break;
case ESL_ERR_INVALID_REQUEST:
case ESL_ERR_INVALID_REQUEST_FOR_THIS_PROGRAM:
L_ERRDESC10_TEXT = "An error occurred while processing your request. Either try again later, or select the Telephone option in the Microsoft Office Activation Wizard and follow the instructions provided.";
sErrMsg = L_ERRDESC10_TEXT;
break;
case CH_CLIENT_CH_SUBMIT_FAILED:
case CH_EXT_CHCLIENT_CREATE_FAILED:
case CH_ICLIENT_CHEXT_STATUS_NOT_OK:
case CH_ICLIENT_RESP_PBAG_GET_FAILED: //Database is down
case LS_ERROR_NOT_FOUND:
L_ERRDESC11_TEXT = "Cannot connect to the Microsoft Activation Server. Make sure your connection to the Internet is working. Either try again later, or select the Telephone option in the Microsoft Office Activation Wizard and follow the instructions provided.";
sErrMsg = L_ERRDESC11_TEXT;
break;
case ESL_ERR_INTERNAL_ERROR:
case ESL_ERR_CCTRANS_INTERNAL_ERROR:
case ESL_ERR_CCTRANS_INVALID_FIRST_NAME:
case ESL_ERR_CCTRANS_INVALID_LAST_NAME:
case ESL_ERR_CCTRANS_UNKNOWN_ERROR:
L_ERRDESC12_TEXT = "An error occurred while processing your request. Please make sure the information provided by you is correct and then resubmit your request, or select the Telephone option in the Microsoft Office Activation Wizard and follow the instructions provided.";
sErrMsg = L_ERRDESC12_TEXT;
break;
case ESL_ERR_INVALID_LA_VERSION:
L_ERR13A_TEXT = "This version of ";
L_ERR13B_TEXT = " is no longer supported. Please upgrade to a newer version of the product and try again.";
L_ERRDESC14_TEXT = "According to our records, your last attemp to download license failed. We are unable to validate your credentials. Please contact Customer Service Representative to acquire your license.";
sErrMsg = L_ERRDESC14_TEXT;
break;
case ESL_ERR_TDO_TDN_FAILED:
L_ERRDESC16_TEXT = "U.S. Export Law prohibits delivery of intellectual property rights to this Country, Region, Company, or Individual. If you believe there has been an error, please select the Telephone method for your renewal to speak with a Customer Support Representative.";
sErrMsg = L_ERRDESC16_TEXT;
iErrHandlePage = GOTO_CURRENT_PAGE;
break;
case ESL_ERR_BAD_VAT_FORMAT:
L_ERRDESC17_TEXT = "Your tax registration number is not valid. Please check the number and try again.";
sErrMsg = L_ERRDESC17_TEXT;
iErrHandlePage = GOTO_CURRENT_PAGE;
break;
case ESL_ERR_INVALID_ADDRESS:
L_ERRDESC18_TEXT = "You have entered an invalid billing address. Please check the address and try again.";
sErrMsg = L_ERRDESC18_TEXT;
iErrHandlePage = GOTO_CURRENT_PAGE;
break;
case ESL_ERR_CCTRANS_REFERRAL_CALL:
L_ERRDESC19_TEXT = "Your credit card company has informed us that they cannot approve this transaction at this time. You can either try using this card later, or enter another card number now.";
sErrMsg = L_ERRDESC19_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case ESL_ERR_CCTRANS_PICKUP:
L_ERRDESC20_TEXT = "Your credit card company will not approve this transaction. Please try again later.";
sErrMsg = L_ERRDESC20_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case ESL_ERR_CCTRANS_REENTER_INFO:
L_ERRDESC21_TEXT = "The credit card number you have entered is not valid. Please check the card number and type, and try again.";
sErrMsg = L_ERRDESC21_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case ESL_ERR_CCTRANS_DECLINED:
L_ERRDESC22_TEXT = "Your credit card company has declined this transaction. Please try using another credit card.";
sErrMsg = L_ERRDESC22_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case ESL_ERR_CCTRANS_INVALID_CC_NUMBER:
L_ERRDESC23_TEXT = "The credit card number you entered is not valid. Please check the card number and type, and try again.";
sErrMsg = L_ERRDESC23_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case ESL_ERR_CCTRANS_INVALID_EXPIRATION_DATE:
L_ERRDESC24_TEXT = "The expiration date you entered is not valid. Please check the expiration date or use another credit card, and try again.";
sErrMsg = L_ERRDESC24_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case ESL_ERR_BANNED_CREDIT_CARD:
L_ERRDESC25_TEXT = "We are not able to process this credit card. Please use another credit card and try again.";
sErrMsg = L_ERRDESC25_TEXT;
iErrHandlePage = GOTO_PREVIOUS_PAGE;
break;
case ESL_ERR_BAD_CCRENEWAL_COUNTRY_OR_MPC:
case ESL_ERR_CCTRANS_INVALID_CURRENCY_CODE:
L_ERRDESC26_TEXT = "WeÆre sorry, but we are not able to accept credit cards from this country or region. We suggest that you acquire a renewal from an authorized Microsoft Retailer.";
L_ERRDESC27_TEXT = "Our records indicate that this Product Key has already been used to activate another product. If you feel you've received this message in error, please contact a Customer Service Representative by clicking OK and selecting the Telephone option.";
{ //nobody has err msg for this err code. use default here
L_ERRDESC0_TEXT = "We are unable to process your request at this time. Please try again later, or contact a Customer Service Representative by clicking OK and selecting the Telephone option.";