var JS_ETABLES = "http://www.emarketer.com/include/etables.js (540 lines) 2001-02-27 12:54 Dean Hannotte"; /*--------------------------------------------------------------------*/ /* */ /* The eMarketer Global Tables */ /* --------------------------- */ /* */ /* Keep these tables sorted in the order in which you want */ /* their contents to appear in the various dropdown menus */ /* and hyperlink lists. */ /* */ /* WARNING: Titles should contain neither apostrophes (') */ /* nor quotation marks ("). */ /* */ /* RETIRED functions: */ /* (see virtual_html/include/etables.20001219.js for reference) */ /* */ /* e_PromoteRelatedReport() - retired 12/20/2000 -MJ */ /* */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* Channel/Report Table */ /* */ /* This table indicates many-to-many relationships between channels */ /* and reports. */ /*--------------------------------------------------------------------*/ var e_ChannelReportTableWidth = 2; // number of columns in table var e_ChannelReportTable = new Array ( // ChannelDir ReportDir //---------------------- --------------------- "broadband", "broadband", "easia", "easia", "easia", "eglobal", "ecommerce_b2b", "ecommerce_b2b", "ecommerce_b2b", "ecommerce_b2b_july_2000", "ecommerce_b2b", "asp", "ecommerce_b2b", "eglobal", "ecommerce_b2b", "ehealth", "ecommerce_b2b", "eprivacy_security", "ecommerce_b2b", "imt_executive_insight", "ecommerce_b2b", "knowledge_management", "ecommerce_b2b", "statmarket_usage_trends", "ecommerce_b2c", "ecommerce_b2c", "ecommerce_b2c", "ecommerce_b2c_november_2000", "ecommerce_b2c", "ebanking", "ecommerce_b2c", "eglobal", "ecommerce_b2c", "ehealth", "ecommerce_b2c", "einvesting", "ecommerce_b2c", "eprivacy_security", "ecommerce_b2c", "etravel", "ecommerce_b2c", "imt_executive_insight", "edemographics", "edemographics", "edemographics", "edemographics_september_2000", "edemographics", "ehealth", "edemographics", "statmarket_usage_trends", "eeurope", "eeurope", "eeurope", "eglobal", "elatin_america", "elatin_america", "elatin_america", "ebrazil", "elatin_america", "eglobal", "email_marketing", "email_marketing", "email_marketing", "imt_permission_email", "wireless", "wireless" ); function e_ForEachChannel(report_dir, func_2_call) { for ( crx = 0; crx < e_ChannelReportTable.length; crx += e_ChanngelReportTableWidth ) { if (e_ChannelReportTable[crx + 1] == report_dir) { func_2_call(e_ChannelReportTable[crx]); } } } function e_ForEachReport(channel_dir, func_2_call) { for ( crx = 0; crx < e_ChannelReportTable.length; crx += e_ChannelReportTableWidth ) { if (e_ChannelReportTable[crx] == channel_dir) { func_2_call(e_ChannelReportTable[crx + 1]); } } } /*--------------------------------------------------------------------*/ /* Channel Table */ /*--------------------------------------------------------------------*/ var e_ChannelDir = new String(); var e_ChannelLongName = new String(); var e_ChannelTableWidth = 2; // number of columns in table var e_ChannelTable = new Array ( // Dir LongName //---------------------- --------------------- "ecommerce_b2b", "eCommerce: B2B", "ecommerce_b2c", "eCommerce: B2C", "edemographics", "eDemographics", "eadvertising", "eAdvertising", "email_marketing", "eMail Marketing", "broadband", "Broadband", "wireless", "Wireless", "easia", "eAsia", "eeurope", "eEurope", "elatin_america", "eLatin America" ); function e_ChannelIndex(channel_dir) { for ( cx = 0; cx < e_ChannelTable.length; cx += e_ChannelTableWidth ) { if (e_ChannelTable[cx] == channel_dir) { return cx; } } return 0 - e_ChannelTableWidth; } /*--------------------------------------------------------------------*/ /* Periodical Table */ /* */ /* WARNING: This is not the same thing as the Periodic Table. */ /* (Look it up under 'chemistry'.) */ /*--------------------------------------------------------------------*/ var e_PeriodicalType = new String(); var e_PeriodicalCode = new String(); var e_PeriodicalShortTitle = new String(); var e_PeriodicalLongTitle = new String(); var e_PeriodicalTableWidth = 5; // number of columns in table var e_NewsletterCodeForThisChannel = new String(); var e_PeriodicalTable = new Array //Flag: csoon => The newsletter is coming soon. ( // Type Code ShortTitle LongTitle Flag // -------- ------------ --------------------- ---------------------------- ------- // The first four are legacy periodicals launched before 12/2000. '.html', 'dnews' , 'Daily eNews' , 'Daily eNews' , '', '.html', 'dstat' , 'Daily eStat' , 'Daily eStat' , '', '.txt' , 'qstats' , 'Quick eStats' , 'Quick eStats' , '', '.txt' , 'wnews' , 'Weekly eNews' , 'Weekly eNewsletter' , '', // Next are channel-related weekly periodicals launched during 12/2000. // For these periodicals the ShortTitle must be // IDENTICAL to an eChannel LongName (see above). // Sylvia likes them alphabetized by LongTitle. '.txt' , 'wadv' , 'eAdvertising' , 'eAdvertising Weekly' , '', '.txt' , 'wasia' , 'eAsia' , 'eAsia Weekly' , '', '.txt' , 'wbband' , 'Broadband' , 'Broadband Weekly' , '', '.txt' , 'wb2b' , 'eCommerce: B2B' , 'eCommerce: B2B Weekly' , '', '.txt' , 'wb2c' , 'eCommerce: B2C' , 'eCommerce: B2C Weekly' , '', '.txt' , 'wdem' , 'eDemographics' , 'eDemographics Weekly' , '', '.txt' , 'weur' , 'eEurope' , 'eEurope Weekly' , '', '.txt' , 'wlat' , 'eLatin America' , 'eLatin America Weekly' , '', '.txt' , 'wemail' , 'eMail Marketing' , 'eMail Marketing Weekly' , '', '.txt' , 'wwire' , 'Wireless' , 'Wireless Weekly' , '', // Leave this as the last periodical: '.txt' , 'camp' , 'Occasional Notices', 'Occasional notices of new eMarketer products and services' , 'donotlist' ); /*--------------------------------------------------------------------*/ /* Report Table */ /*--------------------------------------------------------------------*/ var e_ReportSKU = new String(); // for ereports & etopics pages var e_ReportDir = new String(); // subdir under '/ereports/' var e_ReportChannel = new String(); var e_ReportShortTitle = new String(); // title in dropdowns var e_ReportLongTitle = new String(); // title in hyperlists var e_ReportTableWidth = 6; // number of columns in table var e_ReportTable = new Array ( //SKU Dir Channel ShortName LongName Flag //----- ------------------------ ----------------------- ------------------ ------------------------- ---- 137, "asp" , "ecommerce_b2b" , "ASP" , "ASP" , "pdf", 142, "easia" , "easia" , "eAsia" , "eAsia" , "pdf", 122, "ebanking" , "ecommerce_b2c" , "eBanking" , "eBanking" , "pdf", 149, "ebrazil" , "elatin_america" , "eBrazil" , "eBrazil" , "pdf", 132, "broadband" , "broadband" , "eBroadband" , "Business of Broadband" , "pdf", 141, "ecommerce_b2b" , "ecommerce_b2b" , "eCom B2B" , "eCommerce: B2B" , "pdf", 128, "ecommerce_b2b_july_2000", "ecommerce_b2b" , "eCom B2B" , "eCommerce: B2B July 2000", "pdf", 147, "ecommerce_b2c" , "ecommerce_b2c" , "eCom B2C" , "eCommerce: B2C" , "pdf", 135, "ecommerce_b2c_november_2000" , "ecommerce_b2c", "eCom B2C" , "eCommerce: B2C November 2000", "pdf", 148, "edemographics" , "edemographics" , "eDemographics" , "eDemographics" , "pdf", 131, "edemographics_september_2000", "edemographics", "eDemographics" , "eDemographics September 2000", "pdf", 151, "eeurope" , "eeurope" , "eEurope" , "eEurope" , "pdf", 138, "eglobal" , "" , "eGlobal" , "eGlobal" , "pdf", 145, "ehealth" , "" , "eHealth" , "eHealth" , "pdf", 136, "einvesting" , "ecommerce_b2c" , "eInvesting" , "eInvesting" , "pdf", 140, "elatin_america" , "elatin_america" , "eLatin America" , "eLatin America" , "pdf", 133, "email_marketing" , "email_marketing" , "eMail Marketing", "eMail Marketing" , "pdf", 139, "eprivacy_security" , "" , "ePrivacy" , "ePrivacy & Security" , "", 150, "etravel" , "ecommerce_b2c" , "eTravel" , "eTravel" , "pdf", "FREE", "knowledge_management" , "ecommerce_b2b" , "Knowledge Mgt" , "Knowledge Management Executive Brief" , "", 125, "myers_interactive_tv" , "" , "Interactive TV" , "Interactive Television Outlook 2000", "pdf", 144, "wireless" , "wireless" , "eWireless" , "eWireless" , "", /*--------------------------------------------------------------------*/ /* From Our Partners */ /*--------------------------------------------------------------------*/ 146, "imt_internet_pr" , "" , "Internet PR" , "IMT: Internet and PR" , "", 126, "imt_executive_insight", "" , "Exec. Insight" , "IMT: Executive Insight", "", 117, "imt_permission_email" , "email_marketing" , "Permiss. Email" , "IMT: Permission eMail" , "", 143, "statmarket_usage_trends", "" , "StatMarket" , "StatMarket Global Internet Usage Trends", "" /*--------------------------------------------------------------------*/ /* Coming Soon */ /*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/ /* Retired */ /*--------------------------------------------------------------------*/ // 109, "euser_and_usage", // 113, "ebusiness", // 112, "efinancial", // 116, "eoverview", // 115, "email_marketing", // 127, "econsumer", // 118, "eglobal", ); function e_ReportIndex(report_dir) { for ( rx = 0; rx < e_ReportTable.length; rx += e_ReportTableWidth ) { if (e_ReportTable[rx + 1] == report_dir) { return rx; } } return 0 - e_ReportTableWidth; } /*--------------------------------------------------------------------*/ /* Section Table */ /*--------------------------------------------------------------------*/ /* Added on 11/8/2000 - MJ NOTE: this array contains the image name keywords, indexOf keyword (must be unique), and the URLs. must use NO_KEYWORD, not "", otherwise the array record will show bold state. WARNING: If you change default menu order, or delete or add new entries, (by adjusting e_SectionTable in include/etables.js), please adjust the hard-coded references to the e_SubSections array (in include/echannels_menu.js). We apologize for this inelegant code, but this is only a temporary system (hopefully)! -MJ 01-19-2001 */ var e_SectionGif = new String(); var e_SectionDir = new String(); // enews, estats, ereports, etc. var e_SectionSabelaParm = new String(); // keyword for Sabela ads var e_SectionHome = new String(); var e_SectionName = new String(); //var e_SectionSubMenu = new Array(0, 0); var e_SectionTableWidth = 5; // number of columns in table var e_SectionTable = new Array ( // Gif Dir SabelaParm Home Name // -------------------- ---------------- ------------------ -------------------------------------------- ----------------- "ereports" , "ereports" , "EMKT=EREPORTS" , e_NonSecureHref("/ereports/") , "eReports", "newsletter_signup", "newsletters" , "EMKT=NLETTERS" , e_NonSecureHref("/newsletters/") , "Newsletters" , "estatnews" , "estatnews" , "EMKT=ESTATNEWS" , e_NonSecureHref("/estatnews/") , "eStatNews" , "my_info" , "shelf" , "EMKT=MYINFO" , e_SecureHref("/bin/estatstore/shelf") , "My Info" , "cart" , "cart" , "EMKT=ECART" , e_SecureHref("/bin/estatstore/cart") , "eCart" , "about_us" , "about_us" , "EMKT=ABOUTUS" , e_NonSecureHref("/about_us/welcome.html") , "About eMarketer", "home" , "" , "EMKT=HOMEPAGE" , e_NonSecureHref("/") , "Home" , "" , "" , "" , "" , "" , "analysis" , "analysis" , "EMKT=ANAL" , e_NonSecureHref("/analysis/") , "Analysis" , "bin" , "bin" , "EMKT=BIN" , "" , "estatstore" , "echannels" , "echannels" , "EMKT=ECHANNELHP", e_NonSecureHref("/echannels/") , "eChannel HPs" , "econtent" , "econtent" , "EMKT=ECONTENT" , "" , "eContent" , "news" , "news" , "EMKT=NEWS" , "" , "Research News" ); /*--------------------------------------------------------------------*/ /* Instantiate the currency vectors using local variables */ /*--------------------------------------------------------------------*/ e_InstantiateCurrencyVectors(); /**********************************************************************/ /* */ /* Table-Related Functions */ /* */ /**********************************************************************/ /*--------------------------------------------------------------------*/ /* e_InstantiateCurrencyVectors() function */ /*--------------------------------------------------------------------*/ function e_InstantiateCurrencyVectors() { var tx; // table index /* */ /* Channel Vectors */ /* */ for ( tx = 0; tx + e_ChannelTableWidth <= e_ChannelTable.length; tx += e_ChannelTableWidth ) { if (e_SubDir[1] == e_ChannelTable[tx] || e_SubDir[2] == e_ChannelTable[tx]) { e_ChannelDir = e_ChannelTable[tx]; e_ChannelLongName = e_ChannelTable[tx + 1]; break; } } /* */ /* Periodical Vectors */ /* */ for ( tx = 0; tx + e_PeriodicalTableWidth <= e_PeriodicalTable.length; tx += e_PeriodicalTableWidth ) { if (e_ChannelLongName == e_PeriodicalTable[tx + 2]) { e_NewsletterCodeForThisChannel = e_PeriodicalTable[tx + 1]; //alert("e_NewsletterCodeForThisChannel = '" + e_NewsletterCodeForThisChannel + "'."); break; } } /* */ /* Report Vectors */ /* */ for ( tx = 0; tx + e_ReportTableWidth <= e_ReportTable.length; tx += e_ReportTableWidth ) { if (e_SubDir[1] == e_ReportTable[tx + 1]) //01-10-2001 MJ { e_ReportSKU = e_ReportTable[tx + 0]; e_ReportDir = e_ReportTable[tx + 1]; e_ReportChannel = e_ReportTable[tx + 2]; e_ReportShortTitle = e_ReportTable[tx + 3]; e_ReportLongTitle = e_ReportTable[tx + 4]; break; } } /* */ /* Section Vectors */ /* */ e_SectionSabelaParm = "EMKT=UNDEFINED"; // defaults to "UNDEFINED" for ( tx = 0; tx + e_SectionTableWidth <= e_SectionTable.length; tx += e_SectionTableWidth ) { if (e_SubDir[0] == e_SectionTable[tx + 1]) { e_SectionGif = e_SectionTable[tx + 0]; e_SectionDir = e_SectionTable[tx + 1]; e_SectionSabelaParm = e_SectionTable[tx + 2]; e_SectionHome = e_SectionTable[tx + 3]; e_SectionName = e_SectionTable[tx + 4]; break; } } if (e_Protocol == "https:") { e_SectionGif = 'cart'; e_SectionDir = 'cart'; e_SectionSabelaParm = "EMKT=ECART"; e_SectionHome = e_SecureHref("/bin/estatstore/cart"); e_SectionName = 'My Cart'; if (e_SubDir[2] == 'shelf') { e_SectionGif = 'my_info'; e_SectionDir = 'shelf'; e_SectionSabelaParm = "EMKT=MYINFO"; e_SectionHome = e_SecureHref("/bin/estatstore/shelf"); e_SectionName = 'My Info'; } } } /*--------------------------------------------------------------------*/ /* e_CheckAllPeriodicals() function */ /*--------------------------------------------------------------------*/ function e_CheckAllPeriodicals(this_checkbox, checkbox_array) { //alert("e_CheckAllPeriodicals('" + this_checkbox.name + "', '" + checkbox_array[0].name + "');"); var new_val = false; if (this_checkbox.checked == true) { new_val = true; } //alert("new_val = '" + new_val + "'."); var num_periodicals = e_PeriodicalTable.length / e_PeriodicalTableWidth; for (cax = 0; cax < num_periodicals; cax++) { checkbox_array[cax].checked = new_val; } } /*--------------------------------------------------------------------*/ /* e_NoPeriodicalChecked() function */ /*--------------------------------------------------------------------*/ function e_NoPeriodicalChecked(checkbox_array, selection_name) { num_pers = e_PeriodicalTable.length / e_PeriodicalTableWidth; num_subs = 0; for (cax = 0; cax < num_pers; cax++) { if (checkbox_array[cax].checked) { num_subs++; } } if (num_subs == 0) { if (typeof selection_name == "undefined") { selection_name = "newsletter(s) you wish to receive"; } alert("Please check off the " + selection_name + "."); return true; } return false; } /*--------------------------------------------------------------------*/ /* e_PeriodicalCheckboxes() function */ /*--------------------------------------------------------------------*/ function e_PeriodicalCheckboxes(type, name) { var num_legacy_periodicals = 4; if (typeof name == 'undefined') { name = 'codes'; } var row_start = 1; if (type == 'legacy') { for ( px = 0; px < num_legacy_periodicals * e_PeriodicalTableWidth; px += e_PeriodicalTableWidth ) { var value = e_PeriodicalTable[px + 1]; var short_title = e_PeriodicalTable[px + 2]; if (row_start == 1) {e_Write("");} e_Write(""); e_Write("" + short_title + ""); if (row_start == 0) {e_Write("");} row_start = 1 - row_start; } } else if (type == 'channel') { row_start = 1; for ( px = num_legacy_periodicals * e_PeriodicalTableWidth; px < e_PeriodicalTable.length - e_PeriodicalTableWidth; px += e_PeriodicalTableWidth ) { var value = e_PeriodicalTable[px + 1]; var short_title = e_PeriodicalTable[px + 2]; if (row_start == 1) {e_Write("");} e_Write(""); e_Write("" + short_title + ""); if (row_start == 0) {e_Write("");} row_start = 1 - row_start; } value = e_PeriodicalTable[px + 1]; var long_title = e_PeriodicalTable[px + 3]; e_Write("" + ""); e_Write("" + "
"); e_Write("" + long_title + ".
Check all the above boxes!
"); } else { e_Error("e_PeriodicalCheckboxes: invalid type -- '" + type + "'."); } } /**********************************************************************/ /* E N D */ /**********************************************************************/