// 2004-01-09 kwc: style (o.style) is not a supported css attribute in all browsers // 2008-11-12 kwc: set a cookie to let server know what time it is on the browser right now // 2009-08-11 kwc: create a routine to do the logged in timeout reset rather than having the code everywhere! // 2009-09-21 kwc: create a routine to check the title frame rather than having the code everywhere // ------------------------------------------------------------------------------------- function bName() { // return 1 for Internet Explorer if (navigator.appName == "Microsoft Internet Explorer") return 1; // return 2 for Navigator if (navigator.appName == "Netscape") return 2; // return 0 for other browsers return 0; } var bUseIds = false; if (bName == 2) bUseIds = true; // ------------------------------------------------------------------------------------- function NavBulletOver(o) { // alert("Over("+o.name+")"); } // ------------------------------------------------------------------------------------- function NavBulletOut(o) { // alert("Out("+o.name+")"); } // ------------------------------------------------------------------------------------- function NavClick(h) { // alert("NavClick("+h+")"); } // ------------------------------------------------------------------------------------- function LinkOver(o) { // alert("LinkOver("+o.name+")"); if (bUseIds) { document.ids[o.name].color="red"; } else { if (o.style) o.style.color="red"; } } // ------------------------------------------------------------------------------------- function LinkOut(o) { // alert("LinkOut("+o.name+")"); if (bUseIds) { document.ids[o.name].color="navy"; } else { if (o.style) o.style.color="navy"; } } // ------------------------------------------------------------------------------------- function openWindow(address) { var w = screen.width / 2; var h = screen.height / 2; var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; var scroll = 'yes'; var winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes'; win = window.open(address,'',winprops); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } // ------------------------------------------------------------------------------------- function resetLogoutTimer() { if (window.frames.length > 0) { if (parent) { if (parent.parent) { if (parent.parent.navigation) { if (parent.parent.navigation.bLoggedIn) parent.parent.navigation.startOver(); } } } } } // ------------------------------------------------------------------------------------- function reloadTitle() { if (window.frames.length > 0) { if (parent) { if (parent.title) { if (parent.title.titleAvailable) parent.title.location.reload(); else setTimeout("checkTitle()",1000); } } } } // ------------------------------------------------------------------------------------- function makeTop() { if (top.location != self.location) { alert("top.location.href="+top.location.href+"\nself.location.href="+self.location.href); top.location.href = self.location.href; } } // ------------------------------------------------------------------------------------- // 2008-11-12 kwc: set a cookie to let server know what time it is on the browser right now var browserNow = new Date(); browserNow.setTime( browserNow.getTime() ); var expireDays = 30 * (((1000 * 60) * 60) * 24); var expires_date = new Date( browserNow.getTime() + (expireDays) ); document.cookie = "browserNowCookie=" + browserNow.toLocaleString() + ";" + "expires=" + expires_date.toGMTString() + ";" + "path=/;" + "domain=.mvpontheweb.com;"; // alert( "window.name=["+window.name+"], document.domain=["+document.domain+"]\n"+ // "window.parent.name=["+window.parent.name+"], document.domain=["+document.domain+"]\n"+ // "window.parent.parent.name=["+window.parent.parent.name+"], document.domain=["+document.domain+"]"); // ------------------------------------------------------------------------------------- // To prevent javascript cross frame scripting errors, set document.domain in every page to mvpontheweg.com - // this will also allow access from *.mvpontheweb.com // this makes it worse for some reason?!!? if (false) { var sHost = ' ' + location.host; var sPath = ' ' + location.path; if (sHost.indexOf('mvpontheweb.com') > 0) document.domain = 'mvpontheweb.com'; if (sHost.indexOf('mvpontheweb.net') > 0) document.domain = 'mvpontheweb.net'; if (sHost.indexOf('vipmkg.') > 0) { if (sPath.indexOf('mvp/') > 0) document.domain = 'vipmkg.securesites.com'; if (sPath.indexOf('mvpnet/') > 0) document.domain = 'vipmkg.securesites.com'; } } // -------------------------------------------------------------------------------------