Shopping Cart - "Catalog"

<SCRIPT>

/*************** Cookie Functions ***************/

function getCookie(name) {
     var index = document.
cookie.indexOf(name + "=");

     if (index == -1) return null;

     index = document.cookie.indexOf("=", index) + 1;

     var endstr = document.cookie.indexOf(";", index);

     if (endstr == -1) endstr = document.cookie.length;

     return unescape(document.cookie.substring(index, endstr));
}

function setCookie(name, quantity) {
     if (value != null && value != "") document.
cookie = name + "=" + quantity;
}

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";
     }
}

/*************** End of Cookie Functions ***************/

function getValues() {
     with (document.orderForm) {
          devil.value = (getCookie("devil")) ? getCookie("devil") : 0
          frillneck.value = (getCookie("frillneck")) ? getCookie("frillneck") : 0
          koala.value = (getCookie("koala")) ? getCookie("koala") : 0
          wallaby.value = (getCookie("wallaby")) ? getCookie("wallaby") : 0
     }
}

</SCRIPT>

<BODY onLoad="getValues();">

<FORM NAME="orderForm">
     <INPUT TYPE="text" NAME="
devil" VALUE="0" SIZE="3">
     <INPUT TYPE="button" VALUE="Add to Cart"
       onClick
="setCookie('devil', this.form.devil.value);">

etc...

</FORM>