<!--
function setCookie(name, value, expire, path, domain, secure) {
  //check cookies
  cc();
  var day = new Date;
  day.setTime(day.getTime() + 1000 * 60 * 60 * expire)
  var curCookie = name + "=" + escape(value) +
      ((expire) ? "; expires=" + day.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}
function deleteCookie(name, path, domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" + 
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

// date - any instance of the Date object
// * hand all instances of the Date object to this function for "repairs"
function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
 	date.setTime(date.getTime() - skew);
}
function cc()
{
/* Set a cookie to be sure that one exists.
   Note that this is outside the function*/
   document.cookie = 'killme=' + escape(' ')
 /* check for a cookie */
  if (document.cookie == "") 
  {
    /* if a cookie is not found - alert user -
     change cookieexists field value to false */
	 alert("Cookie Could not be set. Sending you to the orderform.");
	 window.open("/cookie_set.html","popupcookie","width=500,height=500,resizable=yes,scrollbars=yes,status=no,menubar=no,directories=no,toolbar=yes");	 
	 window.location.href = "https://secure.arts-letters.com/order/"
  }
}
//-->