<!--
function SetCookie(name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

var var_cookie = document.cookie;

  function getCookie(name) {
    name += "="; // append '=' to name string
    var i = 0; // index of first name=value pair
    while (i < var_cookie.length) {
      var offset = i + name.length; // end of section to compare with name string
      if (var_cookie.substring(i, offset) == name) { // if string matches
        var endstr = var_cookie.indexOf(";", offset); // locate end of name=value pair
        if (endstr == -1) endstr = var_cookie.length;
        return unescape(var_cookie.substring(offset, endstr)); // return cookie value section
      }
      i = var_cookie.indexOf(" ", i) + 1; // move i to next name=value pair
      if (i == 0) break; // no more values in cookie string
    }
    return null; // cookie not found
  }

function check_cookie(url){
 SetCookie('accept', 'yes');
 if (getCookie('accept') == null) {}
 else{

      SetCookie('url', url);
  if  (getCookie('agree') == 'no' || (getCookie('agree') == null) )
        window.location.href = "disclaimer.shtml";
 }
 }
 //-->
