warntext="We regret that our web server does presently not support some browsers, including Netscape and Mozilla. This does not reflect any preference of particular software or computer systems; we value diversity and hope the problem will be resolved in the near future.";

agstr=navigator.userAgent;
apstr=navigator.appName;

brTst=-1;

if(agstr.indexOf("Safari")!=(-1)) brTst=1;
if(agstr.indexOf("MSIE")!=(-1)) brTst=1;
if(agstr.indexOf("Opera")!=(-1)) brTst=1;
if(agstr.indexOf("OmniWeb")!=(-1)) brTst=1;
if(apstr.indexOf("Explorer")!=(-1)) brTst=1;

if(brTst==-1) {
  // Check Cookie
  cookies=document.cookie;
  startpos=cookies.indexOf("BrowserWarning")+15;
  endpos=cookies.indexOf(";",startpos);
  if(endpos==-1) endpos=cookies.length;
  BrowserWarning=cookies.substring(startpos,endpos);
  if(BrowserWarning!="gotIt") {
    window.alert(warntext);
   {// Set Cookie
    til=new Date();
    til.setMinutes(til.getMinutes()+60);
    expiresWhen="expires="+til.toGMTString();
    document.cookie="BrowserWarning=gotIt; " + expiresWhen;}}}

