var JS_EMARKETER = "http://www.emarketer.com/include/emarketer.js (1631 lines) 2001-03-01 14:10 Dean Hannotte"; /*********************************************************************** eMarketer Global JavaScript Library ----------------------------------- The eMarketer Global JavaScript library contains functions used by the eMarketer web site. It was developed beginning in December 1999 by Dean Hannotte, who is solely responsible for its contents. This global library resides in the /include directory. Local libraries may reside in subdirectories of the root and may contain functions that replace the default functions defined here. Thus a simple form of inheritance can evolve. A typical eMarketer web page is divided into a 3x3 table. The top_row.htm include file generates the top three cells, INCLUDING the , , and tags. The bottom_row.htm file generates the bottom three cells, EXCLUDING the and tags -- in case anybody ever needs to generate just one tiny thing more on any particular page. The center three cells are a one-row table. The left column is 135 pixels wide and is usually divided into a 5 pixel wide "spacer" column and a 130-pixel wide sidebar. The middle column is 370 pixels (10 pixels spacer, 360 pixels content). The right column is 135 pixels (10 pixels spacer, 125 pixels content). That adds up to 640 pixels: Pixels Column Name ------ ------------- 5 (spacer) 130 Left Column 10 (spacer) 360 Middle Column 10 (spacer) 125 Right Column ------ ------------- 640 The and first tags of this one-row table are generated by top_row.htm, while the last and the
tags are generated by bottom_row.htm. The left and right center cells are usually invoked by the middle_row_left_cell.htm and middle_row_right_cell.htm files respectively to generate the default content. They DO NOT generate the opening and closing tags for the center cell. These are generated by middle_row_center_cell_start.htm and middle_row_center_cell_end.htm respectively. The first also generates a header for the center column, which is usually derived from the tag set. A typical eMarketer web page might be structured as follows: <HTML> <HEAD> <META ...> <TITLE>Welcome to eMarketer Middle row center cell content goes here, excluding the header. It's important to realize that the use of these structural functions is entirely voluntary. Pages that must stray from the standards they implement are entirely free to do so merely by eschewing their use. Almost all eMarketer globals (variables and functions) begin with the string "e_" to easily demarcate them from the work of other individuals, groups and unspecified sentient beings. --------------------------------------------------------------------- WARNING: When updating this file, remember that all these versions should be identical: /home/secure.e-land.com/include/emarketer.js /home/secure-proof/include/emarketer.js /home/www.emarketer.com/virtual_html/include/emarketer.js /home/www.emarketer.com/virtual_html-proof/include/emarketer.js ***********************************************************************/ /*--------------------------------------------------------------------*/ /* Declare Global Variables */ /*--------------------------------------------------------------------*/ var e_Border = "00"; // default border; // change to '1' when testing /*--------------------------------------------------------------------*/ var e_BodyTagOnLoad; // caller might set this var e_Browser = ""; // "IE" or "NN" /*--------------------------------------------------------------------*/ var e_CgiHttpHost = ""; // filled in by e_Environment(), but // could be overridden when testing // -- thus DON'T use location.host var e_CgiRemoteAddr = ""; // filled in by e_Environment() var e_CgiRemotePort = ""; // filled in by e_Environment() var e_CgiServerName = ""; // filled in by e_Environment() var e_CgiServerPort = ""; // filled in by e_Environment() var e_CgiTz = ""; // filled in by e_Environment() /*--------------------------------------------------------------------*/ var e_Config = new String(); // what mode we're running in; // set by e_Environment() var e_Debug = false; // Debugging variable that // changes the output of e_Write() // to reveal instead of generating // HTML codes (by changing // all '<' characters to '[' and // all '>' characters to ']'). var e_DefaultPage = false; // are we on the default page (welcome.html)? var e_Diagnostics = new Array("", "", ""); // text for 3 popup messages var e_ErrorMessages = new Array(); // used for form validation var e_FnFt = new String(); // shorthand var e_FirstTime = true; // see e_Write() var e_HomePage = false; // are we on the home page? var e_Host = location.host; // shorthand var e_Millis = 0; // current time in milliseconds //var e_NavBarDir = new String(); // where nav bar .GIF is stored var e_NonSecureHost = new String(); // usually "www.emarketer.com" var e_Now = new Date(); // right now var e_Pathname = location.pathname; // shorthand var e_Protocol = location.protocol; // shorthand var e_RequiredDataFlag = ""; var e_SecureHost = new String(); // usually "secure.e-land.com" var e_SourceId = new String(); // affiliate ID for Be Free in the // form of a twenty-digit number var e_SubDir = new Array(); // components of e_Pathname var e_TestSite = false; // true if secure port is 8888 // or non-secure port is 8001 // set by e_Environment() var e_DevSite = false; // true if secure port is 8887 // or non-secure port is 8002 // added by MJ, 11/12/2000 var e_UserAgent = navigator.userAgent.toLowerCase(); // shorthand var e_YYYY = 0; // the current year e_InitializeGlobalVariables(); // using local variables /*--------------------------------------------------------------------*/ /* e_InitializeGlobalVariables */ /*--------------------------------------------------------------------*/ function e_InitializeGlobalVariables() { e_Millis = e_Now.valueOf(); // current time in milliseconds e_YYYY = e_Now.getFullYear(); // the current year /* */ /* From e_Pathname get e_SubDir array, */ /* e_FnFt, e_DefaultPage and e_HomePage */ /* */ var slash1 = 0, slash2 = 0, sdx = 0; while ((slash1 = e_Pathname.indexOf("/", slash2)) > -1) { //alert("slash1 = " + slash1 + ", slash2 = " + slash2 + ", sdx = " + sdx + "."); slash2 = e_Pathname.indexOf("/", slash1 + 1); if (slash2 == -1) slash2 = e_Pathname.length; e_SubDir[sdx++] = e_Pathname.substring(slash1 + 1, slash2); } if (e_SubDir[sdx - 1].indexOf(".") > -1) { e_FnFt = e_SubDir[sdx - 1]; e_SubDir[sdx - 1] = ""; } if (e_FnFt == "" || e_FnFt == "welcome.html") { e_DefaultPage = true; if (e_SubDir[0] == "") { e_HomePage = true; } } /* */ /* What browser are we in? */ /* */ if (parseInt(navigator.appVersion) >= 4) { if ((e_UserAgent.indexOf('mozilla') != -1) && (e_UserAgent.indexOf('spoofer') == -1) && (e_UserAgent.indexOf('compatible') == -1)) { e_Browser = "NN"; // Netscape Navigator 4.0 or greater } else if (e_UserAgent.indexOf('msie') != -1) { e_Browser = "IE"; // Internet Explorer 4.0 or greater } } /* */ /* Set e_TestSite, e_DevSite, e_NonSecureHost, e_SecureHost */ /* */ e_TestSite = false; e_DevSite = false; //MJ 11/12/2000 e_Config = 'Normal'; e_NonSecureHost = "www.emarketer.com"; e_SecureHost = "secure.e-land.com"; if (e_Host == "www.emarketer.com:8001" || e_Host == "secure.e-land.com:8888") { e_TestSite = true; e_NonSecureHost = "www.emarketer.com:8001"; e_SecureHost = "secure.e-land.com:8888"; } //Added by MJ on 11/12/2000: else if (e_Host == "www.emarketer.com:8002" || e_Host == "secure.e-land.com:8887") { e_DevSite = true; e_NonSecureHost = "www.emarketer.com:8002"; e_SecureHost = "secure.e-land.com:8887"; } // Added 2001/02/12 by DH: if (typeof e_BodyTagOnLoad != 'undefined') { e_Error("Following global will be ignored: e_BodyTagOnLoad='" + e_BodyTagOnLoad + "'."); } /* */ /* Copy the sourceid= value from the URL to our cookie */ /* */ e_SaveSourceIdParm(); /* */ /* Set the e_SourceId variable from our cookie */ /* */ e_LoadSourceIdParm(); } /**********************************************************************/ /* */ /* Page-Generating Functions */ /* */ /**********************************************************************/ /*--------------------------------------------------------------------*/ /* e_BodyTag() function */ /*--------------------------------------------------------------------*/ function e_BodyTag(flag) { e_Error("e_BodyTag(): Obsolete function."); return; /* */ /* Write tag */ /* */ e_Write(""); } /*--------------------------------------------------------------------*/ /* e_DateStamp() function */ /*--------------------------------------------------------------------*/ function e_DateStamp() { var result; var day_name = new Array ( "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ); var month_name = new Array ( "Jan", "Feb", "Mar", "Apr", "May", "Jun", // 2000/09-DH "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ); result = day_name[e_Now.getDay()] + ", " + e_Now.getDate() + " " + month_name[e_Now.getMonth()] + " " + e_Now.getFullYear(); e_Write(result); } /*--------------------------------------------------------------------*/ /* e_Limesoft() function */ /*--------------------------------------------------------------------*/ function e_Limesoft() { // if (e_TestSite) return; // suppress e_Limesoft() // Keylime Software 4.1 13/07/2000 var kl_siteID = "22"; var kl_tagProtocol = ""; var kl_akamaipath = "a1944.g.akamai.net/f/1944/1482/8h/"; if (location.protocol == "https:") { kl_tagProtocol = "s"; kl_akamaipath = "a248.e.akamai.net/f/248/1482/8h/" } var kl_tag = ""; document.write(kl_tag); // 2000/08-DH e_Write("\n"); } /*--------------------------------------------------------------------*/ /* e_NavigationBar() function */ /*--------------------------------------------------------------------*/ // function e_NavigationBar() // { // e_Write("Navigation Bar for \"" + e_NavBarDir + "\" directory."); // } /**********************************************************************/ /* */ /* Form Validation Functions */ /* */ /**********************************************************************/ /*--------------------------------------------------------------------*/ /* e_AddErrorMessage() function */ /*--------------------------------------------------------------------*/ function e_AddErrorMessage(msg) { e_ErrorMessages[e_ErrorMessages.length] = msg; } /*--------------------------------------------------------------------*/ /* e_AnyRequiredInputMissing() function */ /*--------------------------------------------------------------------*/ function e_AnyRequiredInputMissing(a_form) { var rx, label, obj_name, object; //alert("e_AnyRequiredInputMissing('" + a_form.name + "');"); for (rx = 0; rx + 1 < e_RequiredInput.length; rx += 2) { obj_name = e_RequiredInput[rx]; label = e_RequiredInput[rx + 1]; object = eval(a_form.name + '.' + obj_name); if (e_NoInput(object, label)) return true; } return false; } /*--------------------------------------------------------------------*/ /* e_AnyRequiredSelectionsMissing() function */ /*--------------------------------------------------------------------*/ function e_AnyRequiredSelectionsMissing(a_form) { var rx, label, obj_name, object; //alert("e_AnyRequiredSelectionsMissing('" + a_form.name + "');"); for (rx = 0; rx + 1 < e_RequiredSelections.length; rx += 2) { obj_name = e_RequiredSelections[rx]; label = e_RequiredSelections[rx + 1]; object = eval(a_form.name + '.' + obj_name); if (e_NoSelection(object, label)) return true; } return false; } /*--------------------------------------------------------------------*/ /* e_AuditEmailAddress() function */ /*--------------------------------------------------------------------*/ function e_AuditEmailAddress(object, label) { if (object.value == "") { if (typeof label == 'undefined') { e_AddErrorMessage("Please enter your email address."); } else { e_AddErrorMessage("Please enter " + label + "."); } return; } if (object.value.indexOf("@") == -1) { e_AddErrorMessage("A valid email address would " + "have an at-sign ('@') in it."); } if (object.value.indexOf(".") == -1) { e_AddErrorMessage("A valid email address would " + "have a period ('.') in it."); } var badchars = /[^A-Za-z0-9@._-]/; var badx = object.value.search(badchars); if (badx > -1) { var badchar = object.value.substr(badx, 1); if (confirm("Do you want to use this email " + "address even though there's a '" + badchar + "' in position " + (badx + 1) + "?")) { e_AddErrorMessage("This email address has a '" + badchar + "' in position " + (badx + 1) + "?"); } } } /*--------------------------------------------------------------------*/ /* e_AuditInput() function */ /*--------------------------------------------------------------------*/ function e_AuditInput(form) { var rx, label, obj_name, object; for (rx = 0; rx + 1 < e_RequiredInput.length; rx += 2) { obj_name = e_RequiredInput[rx]; label = e_RequiredInput[rx + 1]; object = eval(form.name + '.' + obj_name); if (object.value == '') { e_AddErrorMessage("Please enter " + label + "."); } } } /*--------------------------------------------------------------------*/ /* e_AuditSelections() function */ /*--------------------------------------------------------------------*/ function e_AuditSelections(form) { var rx, label, obj_name, object; for (rx = 0; rx + 1 < e_RequiredSelections.length; rx += 2) { obj_name = e_RequiredSelections[rx]; label = e_RequiredSelections[rx + 1]; object = eval(form.name + '.' + obj_name); if (object.selectedIndex == 0 && object.options[0].value == '') { AddErrorMessage("Please select " + label + "."); } } } /*--------------------------------------------------------------------*/ /* e_EmailAddressIsValid() function */ /*--------------------------------------------------------------------*/ function e_EmailAddressIsValid(object) { return (!e_BadEmailAddress(object)); } /*--------------------------------------------------------------------*/ /* e_BadEmailAddress() function */ /*--------------------------------------------------------------------*/ function e_BadEmailAddress(object, label) { //alert("e_BadEmailAddress('" + object.name + "=" + object.value + "', '" + label + "');"); if (object.value == "") { object.focus(); object.select(); if (typeof label == 'undefined') { alert("Please enter your email address."); } else { alert("Please enter " + label + "."); } return true; } if (object.value.indexOf("@") == -1) { object.focus(); object.select(); alert("A valid email address would have an at-sign ('@') in it."); return true; } if (object.value.indexOf(".") == -1) { object.focus(); object.select(); alert("A valid email address would have a period ('.') in it."); return true; } var badchars = /[^A-Za-z0-9@._-]/; var badx = object.value.search(badchars); if (badx > -1) { var badchar = object.value.substr(badx, 1); object.focus(); object.select(); if (confirm("Do you want to use this email " + "address even though there's a '" + badchar + "' in position " + (badx + 1) + "?")) { return false; } return true; } return false; } /*--------------------------------------------------------------------*/ /* e_BadGeography() function */ /*--------------------------------------------------------------------*/ function e_BadGeography(country_object, state_object, province_object) { var country = country_object.options[country_object.selectedIndex].value; var state = state_object.options[state_object.selectedIndex].value; var province = province_object.value; if (country == "United States") { if (state == '' || state == 'Non-U.S.') { state_object.focus(); alert("Please select your state."); return true; } } else { if (province == '') { province_object.focus(); province_object.select(); alert("Please enter your province."); return true; } } return false; } /*--------------------------------------------------------------------*/ /* e_ErrorFound() function */ /*--------------------------------------------------------------------*/ function e_ErrorFound() { var ex, msg = new String(''); if (e_ErrorMessages.length == 0) return false; for (ex = 0; ex < e_ErrorMessages.length; ex++) { msg += e_ErrorMessages[ex] + '\n'; } alert('Please correct the following errors in this form:\n\n' + msg); return true; } /*--------------------------------------------------------------------*/ /* e_NoInput() function */ /*--------------------------------------------------------------------*/ function e_NoInput(object, label) { if (object.value == '') { object.focus(); object.select(); alert("Please enter " + label + "."); return true; } return false; } /*--------------------------------------------------------------------*/ /* e_NoSelection() function */ /*--------------------------------------------------------------------*/ function e_NoSelection(object, label) { if (object.selectedIndex == 0 && object.options[0].value == '') { object.focus(); alert("Please select " + label + "."); return true; } return false; } /**********************************************************************/ /* */ /* Utility Functions */ /* */ /**********************************************************************/ /*--------------------------------------------------------------------*/ /* e_Area() function */ /*--------------------------------------------------------------------*/ function e_Area(shape, coords, href, alt) { var html = new String(); html = " '9') { alert("Only digits are allowed in the " + date_name + " (" + date_value + ")."); return true; } } var yyyy = date_value.substr(0, 4); if (yyyy < '2000' || yyyy > '2002') { alert("The " + date_name + " year (" + yyyy + ") must lie between 2000 and 2002."); return true; } var mm = date_value.substr(4, 2); if (mm < '01' || mm > '12') { alert("The " + date_name + " month (" + mm + ") must lie between 01 and 12."); return true; } var dd = date_value.substr(6, 2); if (dd < '01' || dd > '31') { alert("The " + date_name + " day (" + dd + ") must lie between 01 and 31."); return true; } return false; } /*--------------------------------------------------------------------*/ /* e_Environment() function */ /*--------------------------------------------------------------------*/ function e_Environment ( http_host , remote_addr, remote_port, server_name, server_port, time_zone ) { e_CgiHttpHost = http_host; // save the IP address e_CgiRemoteAddr = remote_addr; // save the IP address e_CgiRemotePort = remote_port; // save the port number e_CgiServerName = server_name; // save the server name e_CgiServerPort = server_port; // save the server port e_CgiTz = time_zone; // save the time zone } /*--------------------------------------------------------------------*/ /* e_Error() function */ /*--------------------------------------------------------------------*/ function e_Error(message) { document.writeln("

[" + message + "]

"); // alert("ERROR:\n\n" + message); } /*--------------------------------------------------------------------*/ /* e_Expose() function */ /*--------------------------------------------------------------------*/ function e_Expose(objname) { var result = new String; var objval = eval(objname); for (var property in objval) { result += (objname + '.' + property + " == '" + objval[property] + "'.\n"); } return result; } /*--------------------------------------------------------------------*/ /* e_GetCookie() function */ /*--------------------------------------------------------------------*/ function e_GetCookie(name) { var x1; var x2; var cookie1; var cookie_jar; cookie_jar = new String(document.cookie); cookie1 = new String(""); x1 = cookie_jar.indexOf(name + "="); if (x1 > -1) { x1 += name.length + 1; x2 = cookie_jar.indexOf(";", x1); if (x2 <= -1) x2 = cookie_jar.length; cookie1 = cookie_jar.substring(x1, x2); } if (e_TestSite) { alert("After e_GetCookie('" + name + "') == '" + cookie1 + "',\n\n" + " document.cookie == '" + document.cookie + "'."); } return cookie1; } /*--------------------------------------------------------------------*/ /* e_PutCookie() function */ /*--------------------------------------------------------------------*/ function e_PutCookie(cookie1) { document.cookie = cookie1; if (e_TestSite) { alert("After e_PutCookie('" + cookie1 + "'),\n\n" + " document.cookie == '" + document.cookie + "'."); } } /*--------------------------------------------------------------------*/ /* e_DelCookie() function */ /*--------------------------------------------------------------------*/ function e_DelCookie(name) { var yesterday = new Date(); // expired yesterday yesterday.setTime(yesterday.getTime() - (24 * 60 * 60 * 1000)); document.cookie = name + "=; expires=" + yesterday.toString(); if (e_TestSite) { alert("After e_DelCookie('" + name + "'),\n\n" + " yesterday.toString() == '" + yesterday.toString() + "',\n\n" + " document.cookie == '" + document.cookie + "'."); } } /*--------------------------------------------------------------------*/ /* e_GetParm() function */ /*--------------------------------------------------------------------*/ function e_GetParm(name) { var e_x, e_y, e_parm, e_href; e_parm = ""; e_href = location.href; e_x = e_href.indexOf(name + "="); if (e_x > -1) { e_x += name.length + 1; e_y = e_href.indexOf("&", e_x); if (e_y <= -1) e_y = e_href.length; e_parm = e_href.substring(e_x, e_y); } return e_parm; } /*--------------------------------------------------------------------*/ /* e_HighlightLeadingE() function */ /*--------------------------------------------------------------------*/ function e_HighlightLeadingE(text) { var tx, this_byte = '', last_byte = ''; var result = new String(); for (tx = 0; tx < text.length; tx++) { last_byte = this_byte; this_byte = text.charAt(tx); if (this_byte == 'e' && (tx == 0 || last_byte == ' ')) { result += "" + this_byte + ""; } else { result += this_byte; } } return result; } /*--------------------------------------------------------------------*/ /* e_LeftPad() function */ /*--------------------------------------------------------------------*/ function e_LeftPad(value, bytes, pad_char) { var result = new String('' + value); while (result.length < bytes) { result = pad_char + result; } return result; } /*--------------------------------------------------------------------*/ /* e_LoadSourceIdParm() function */ /*--------------------------------------------------------------------*/ function e_LoadSourceIdParm() { var x, y, cookie; cookie = document.cookie; x = cookie.indexOf("e_SourceId="); if (x == -1) return; if (e_TestSite) alert("document.cookie = '" + document.cookie + "'."); // if (e_TestSite) alert("x = '" + x + "'."); y = cookie.indexOf(";", x); if (y == -1) y = cookie.length; // if (e_TestSite) alert("y = '" + y + "'."); e_SourceId = document.cookie.substring(x + 11, y); if (e_TestSite) alert("e_SourceId = '" + e_SourceId + "'."); } /*--------------------------------------------------------------------*/ /* e_NonSecureHref() function */ /*--------------------------------------------------------------------*/ function e_NonSecureHref(pathname) { var connector = new String(""); var source_id_parm = new String(""); var href = new String(""); if (e_Protocol == "https:" && e_SourceId != "") { if (pathname.indexOf("?") == -1) connector = "?sourceid="; else connector = "&sourceid="; source_id_parm = connector + e_SourceId; } href = "http://" + e_NonSecureHost + pathname + source_id_parm; return href; } /*--------------------------------------------------------------------*/ /* e_SecureHref() function */ /*--------------------------------------------------------------------*/ function e_SecureHref(pathname) { var connector = new String(""); var source_id_parm = new String(""); var href = new String(""); if (e_Protocol == "http:" && e_SourceId != "") { if (pathname.indexOf("?") == -1) connector = "?sourceid="; else connector = "&sourceid="; source_id_parm = connector + e_SourceId; } href = "https://" + e_SecureHost + pathname + source_id_parm; return href; } /*--------------------------------------------------------------------*/ /* e_NonSecureLink() function */ /* (Use only for going from a secure page to a non-secure page.) */ /*--------------------------------------------------------------------*/ //WARNING: This function sometimes does not work in NN. // Please test before using. function e_NonSecureLink(pathname, parm2) { if (typeof parm2 == 'undefined') parm2 = ""; else parm2 = " " + parm2; e_Write(""); } /*--------------------------------------------------------------------*/ /* e_SecureLink() function */ /* (Use only for going from a non-secure page to a secure page.) */ /*--------------------------------------------------------------------*/ //WARNING: This function sometimes does not work in NN. // Please test before using. function e_SecureLink(pathname, parm2) { if (typeof parm2 == 'undefined') parm2 = ""; else parm2 = " " + parm2; e_Write(""); } /*--------------------------------------------------------------------*/ /* e_OpenThankYouWindow() function */ /*--------------------------------------------------------------------*/ function e_OpenThankYouWindow(height, width, parms) { var e_height, e_width, e_parms; e_height = height; e_width = width ; e_parms = parms ; if (!height) e_height = 150; if (!width) e_width = 200; if (!parms) e_parms = 'toolbar=no, status=no, resizable=no'; window.open ( "", // URL "thanks", // Window name "height=" + e_height // Window features + ", width=" + e_width + ", " + e_parms ); } /*--------------------------------------------------------------------*/ /* e_PasswordInput() function */ /*--------------------------------------------------------------------*/ function e_PasswordInput(name, size, value, max_len) { var html = new String(); html = "" + errmsg + ""); } e_DelCookie("e_ErrMsg"); } /*--------------------------------------------------------------------*/ /* e_Tab() function */ /*--------------------------------------------------------------------*/ function e_Tab() { return "   "; } /*--------------------------------------------------------------------*/ /* e_TextInput() function */ /*--------------------------------------------------------------------*/ function e_TextInput(name, size, value, max_len) { var html = new String(); html = "JS_EMARKETER: "); document.writeln("'" + JS_EMARKETER + "'.
"); } for (t = 0; t < text.length; t++) { var this_char = text.charAt(t); if (this_char == "<") { text2 = text2 + "<"; } else if (this_char == ">") { text2 = text2 + ">"; } else if (this_char == "&") { text2 = text2 + "&"; } else { text2 = text2 + this_char; } } text2 += "
"; document.write("" + text2); } /**********************************************************************/ /* */ /* Advertising Functions */ /* */ /**********************************************************************/ /*--------------------------------------------------------------------*/ /* e_StaticAd() function */ /*--------------------------------------------------------------------*/ function e_StaticAd(width, height, siteid, kw_override) { // Sabela Media Project OTS. Copyright Sabela Media 1998 // Sabela Media Project OTS. Place standard GIF banners //return; if (typeof kw_override == 'undefined') { keyword = e_SectionSabelaParm; } else { keyword = kw_override; } // if (e_TestSite) return; // suppress e_StaticAd() e_Write("
"); e_Write(""); } /*--------------------------------------------------------------------*/ /* e_DynamicAdStart() function */ /*--------------------------------------------------------------------*/ function e_DynamicAdStart(width, height, siteid, keyword_override) { // Sabela Media Project OTS. Copyright Sabela Media 1998 // Sabela Media Project OTS. This goes at your ad location // Sabela OTS. Remove the CENTER and TABLE tags if the ad is not centered //return; if (e_Protocol == "https:" || e_Browser == "NN") { e_StaticAd(width, height, siteid, keyword_override); return; } // if (e_TestSite) return; // suppress e_DynamicAdStart() if (typeof kw_override == 'undefined') { keyword = e_SectionSabelaParm; } else { keyword = kw_override; } e_Write(""); e_Write(""); e_Write(""); e_Write(""); e_Write(""); } /*--------------------------------------------------------------------*/ /* e_DynamicAdEnd() function */ /*--------------------------------------------------------------------*/ function e_DynamicAdEnd(width, height, siteid, keyword_override) { // Sabela Media Project OTS. This goes at the end of the HTML file // The javascript will move the layer over the ILAYER in the earlier HTML //return; if (e_Protocol == "https:" || e_Browser == "NN") { return; } // if (e_TestSite) return; // suppress e_DynamicAdEnd() if (typeof kw_override == 'undefined') { keyword = e_SectionSabelaParm; } else { keyword = kw_override; } e_Write(""); e_Write(""); } /**********************************************************************/ /* */ /* Functions Added 11/2000 by Michael James for Phase 2 */ /* */ /**********************************************************************/ /*--------------------------------------------------------------------*/ /* e_CreateTableCorner() function */ /*--------------------------------------------------------------------*/ //Added on 10/27/2000 - MJ //The function must be written on one line to avoid gaps between images in the browser. -MJ function e_CreateCornerBGImageStart(width, height) { e_Write("
" + "
" + "" + "" + "" + "
" + "" + ""); } //use this function if you DON'T want the rule on the left side to expand downward with the text. -MJ function e_CreateCornerPixelStart(width, height) { e_Write("" + "" + "
" + "
" + "" + "" + ""); } function e_CreateCornerEnd() { e_Write("
"); } /*--------------------------------------------------------------------*/ /* e_CreateImageLinkRollover() function */ /*--------------------------------------------------------------------*/ //Added on 11/1/2000 - MJ //current available selections for "image": arrow, chart, checkmark, dollar, lines, page, question //NOTE: There cannot be two images with same imagename on one page. //the secure argument can be specified to allow secure links with the ImageLink function e_CreateImageLinkRollover(URL, image, imagename, text_on_right, alignment, secure) { //Preload image needed: eval('button_' + image + '_frame1 = new Image'); eval('button_' + image + '_frame2 = new Image'); eval('button_' + image + '_frame1.src = "/images/buttons/button_' + image + '.gif"'); eval('button_' + image + '_frame2.src = "/images/buttons/button_' + image + '_f2.gif"'); //Create imagelink: if (secure) { e_Write(""); e_Write(""); //Create text hyperlink on right: if (text_on_right) { e_Write(" "); if (secure) { e_Write(""); e_Write(text_on_right + ""); } e_Write(" "); } /*--------------------------------------------------------------------*/ /* e_StatDatabaseBox() function */ /*--------------------------------------------------------------------*/ //Added on 11/12/2000 - MJ function e_StatDatabaseBox() { return; // e_Write("" // + ""); // e_CreateCornerBGImageStart(125, 1); // e_TextInput("keywordname", 10, "Enter keyword"); // e_CreateImageLinkRollover("urlhere", "arrow", "arrow_name_estatdatabase_box"); // e_Write("
Login   " // + "More Info"); // e_CreateCornerEnd(); } /*--------------------------------------------------------------------*/ /* e_ThisIsAQACommentPage() function */ /*--------------------------------------------------------------------*/ function e_ThisIsAQACommentPage() { return (location.hostname == "eboards.emarketer.com"); } /*--------------------------------------------------------------------*/ /* e_NestedTable() function */ /*--------------------------------------------------------------------*/ //Added on 11/14/2000 - MJ function e_NestedTable(location) { if (location == "start") { e_Write("" + "
"); } else if (location == "middle") { e_Write(""); } else if (location == "end") // changed from '=' 20001117-dh (:P) { e_Write("
"); } else { alert("e_NestedTable(): Invalid operand -- '" + location + "'."); } } /**********************************************************************/ /* */ /* Third-Party Functions */ /* */ /**********************************************************************/ // /*--------------------------------------------------------------------*/ // /* Added on 2000-04-06 13:15 Michael James */ // /* This function is produced by Dreamweaver for the jump menus */ // /*--------------------------------------------------------------------*/ // function MM_jumpMenu(targ,selObj,restore) // { //v3.0 // eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'"); // if (restore) selObj.selectedIndex = 0; // } // // /*--------------------------------------------------------------------*/ // /* These next four functions were taken from the report sell pages */ // /* to create the mouse-over effects for the right-side navigation */ // /*--------------------------------------------------------------------*/ // function MM_swapImgRestore() // { //v3.0 // var i, x, a = document.MM_sr; // for(i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) // { // x.src = x.oSrc; // } // } // // function MM_preloadImages() // { //v3.0 // var d = document; // if (d.images) // { // if(!d.MM_p) d.MM_p = new Array(); // var i, j = d.MM_p.length, a = MM_preloadImages.arguments; // for(i = 0; i < a.length; i++) // { // if (a[i].indexOf("#") != 0) // { // d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; // } // } // } // } // // function MM_swapImage() // { //v3.0 // var i, j = 0, x, a = MM_swapImage.arguments; // document.MM_sr = new Array; // for(i = 0; i < (a.length-2); i += 3) // { // if ((x = MM_findObj(a[i])) != null) // { // document.MM_sr[j++] = x; // if(!x.oSrc) x.oSrc = x.src; // x.src = a[i+2]; // } // } // } // // function MM_findObj(n, d) // { //v3.0 // var p, i, x; // if(!d) d = document; // if((p = n.indexOf("?")) > 0 && parent.frames.length) // { // d = parent.frames[n.substring(p + 1)].document; // n = n.substring(0, p); // } // if(!(x = d[n]) && d.all) x = d.all[n]; // for (i = 0; !x && i < d.forms.length; i++) // { // x = d.forms[i][n]; // } // for (i = 0; !x && d.layers && i < d.layers.length; i++) // { // x = MM_findObj(n, d.layers[i].document); // } // return x; // } /**********************************************************************/ /* E N D */ /**********************************************************************/