var FILE_INFO = "@(#) [file] [version] [environment] [state] [crtime]"; var bExplorer = false; var bNavigator = false; var bGecko = false; var bOpera = false; var bOperaIdentifyAsAnotherBrowser = false; getBrowsertype(); function getBrowsertype( withReturn ) { var GECKO = "gecko"; var MICROSOFT = "microsoft"; var MICROSOFT4 = "msie 4"; var MICROSOFT5 = "msie 5.0"; var MICROSOFT55 = "msie 5.5"; var NETSCAPE = "netscape"; var OPERA = "opera"; var fExplorerVersionOK = 4.0; var fNavigatorVersionOK = 4.61; var fGeckoVersionOK = 5.0; var fOperaVersionOK = 5.02; var fAppVersion = parseFloat( navigator.appVersion ); var sUserAgent = navigator.userAgent.toLowerCase(); var sAppName = navigator.appName.toLowerCase(); if( sAppName.indexOf( OPERA ) > -1 ) { if ( fAppVersion >= fOperaVersionOK ) { bOpera = true; } } else if( sUserAgent.indexOf( GECKO ) > -1 || ( sAppName.indexOf( NETSCAPE ) > -1 && fAppVersion >= 5.0 ) ) { if ( fAppVersion >= fGeckoVersionOK ) { bGecko = true; } } else if( sAppName.indexOf( NETSCAPE ) > -1 && sUserAgent.indexOf( GECKO ) < 0 ) { if ( fAppVersion >= fNavigatorVersionOK && fAppVersion < 5.0 ) { bNavigator = true; } } else if( sAppName.indexOf( MICROSOFT ) > -1 ) { fAppVersion = 0.0; if( sUserAgent.indexOf( MICROSOFT4 ) > -1 ) { fAppVersion = 4.0; } else if( sUserAgent.indexOf( MICROSOFT5 ) > -1 ) { fAppVersion = 5.0; } else if( sUserAgent.indexOf( MICROSOFT55 ) > -1 ) { fAppVersion = 5.5; } if ( fAppVersion >= fExplorerVersionOK ) { bExplorer = true; } } if( sUserAgent.indexOf( OPERA ) > -1 && bOpera == false ) { bOperaIdentifyAsAnotherBrowser = true; } bOpera = false; bGecko = false; if (bOperaIdentifyAsAnotherBrowser) { bExplorer = false; bNavigator = false; bOpera = true; } if (!bNavigator && !bExplorer && !bOpera && !bGecko) { bExplorer = true; } if ( withReturn && ( bExplorer || bGecko || bNavigator || bOpera ) ) { return true; } } function doStatus( sLayer ) { if ( bNavigator && sLayer != null && !bGecko) { for (i=0; ihere'); document.write(' to add this to your favourites list.'); } else { var msg = "You can bookmark this page. Please add this page to your bookmarks."; if(bNavigator) msg += " Press (CTRL-D)"; document.write(msg); } } function switchCheckBoxes(targets, source) { if (targets.length == null) { targets.checked = source.checked; } else { for (i=0; i 12) { thehours-=12; ampm = "PM"; } else { ampm = "AM"; } if (thehours == 0) thehours = 12; if (themins<10) themins="0"+themins; if (theseconds<10) theseconds="0"+theseconds; nowmonth = themonth +1; if (nowmonth<10) nowmonth="0"+nowmonth; if (thedate<10) nowdate="0"+thedate; }