function checkCookie(){
  offset = document.cookie.indexOf("ASA_SESSION_ID");
  if (offset == -1) { // if cookie does not exist
    alert("Your browser is not set up to accept cookies. Please change the setting of your browser to accept cookies and then reload the page again");
  }
}

function checkBrowser() {
  
  // Code for detecting the browser on a WIN32 platform
  if((navigator.platform=="Win32") && (navigator.appName.indexOf("Microsoft")!=-1)) {
    var ver = navigator.appVersion;
    if (ver.charAt(0)<"4") {
      alert("Your Browser is not supported by the current Garage101.com site and as a result you may experience difficulties in loading of some of the pages. Please upgrade your browser to a 4 or higher version of IE");
    }
  }
  
  if((navigator.platform=="Win32") && (navigator.appName.indexOf("Netscape")!=-1)) {
    var ver = navigator.appVersion;
    if (ver.charAt(0)<"4") {
      alert("Your Browser is not supported by the current Garage101.com site and as a result you may experience difficulties in loading of some of the pages. Please upgrade your browser to a 4.03 or higher version of Netscape");
      }
  }
  
  // Code for detecting browser on a Mac Platform
  if((navigator.platform!="Win32") && (navigator.appName.indexOf("Microsoft")!=-1))
  {
    var ver = navigator.appVersion;
    if (ver.charAt(0)<"4") {
      alert("Your Browser is not supported by the current Garage101.com site and as a result you may experience difficulties in loading of some of the pages. Please upgrade your browser to a 4.01 or higher version of IE");
    }
  }
  
  if((navigator.platform!="Win32") && (navigator.appName.indexOf("Netscape")!=-1)) {
    var ver = navigator.appVersion;
    if (ver.charAt(0)<"4") {
      alert("Your Browser is not supported by the current Garage101.com site and as a result you may experience difficulties in loading of some of the pages. Please upgrade your browser to a 4.03 or higher version of Netscape");
    }
  }
}

