Here's the script. Put this in the <head> tags on all template pages that are used prior to the shipping.html template page.

NOTE: DO NOT use this on static html pages.
This should only be used on Quikstore template pages! ie. database templates and cart template.


<SCRIPT LANGUAGE="JavaScript">
<!-- hide from old browsers
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
     if (dc.length > 0) {
     begin = dc.indexOf(cname);
          if (begin != -1) {
               begin += cname.length;
               end = dc.indexOf(";", begin);
               if (end == -1) end = dc.length;
               return unescape(dc.substring(begin, end));
          }
     }
return null;
}
function setCookie(name, value) {
     document.cookie = name + "=" + escape(value) + "; path=/";
}
function checkCookie(){
var cookieName = 'cart_id';
var cookieValue = "%%cart_id%%";

     if((getCookie(cookieName) == "")||(getCookie(cookieName) == null)){
          setCookie(cookieName,cookieValue);
     }
          // Test to see if the cookie got set

     if((getCookie(cookieName) == "")||(getCookie(cookieName) == null)){
          alert("You must have cookies turned on to shop on our website.\n\n" +
                "The shopping system uses a temporary cart ID cookie to keep" +
                " track of your purchases. This cookie will be deleted from" +
                " your system once you close your browser.");
     }

return null;
}
//-->
</SCRIPT>
</head>


Put this after the body tag on the same page:

<BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- checkCookie(); //--> </script>

The rest of the page....