// The number of days to store the shopping cart information in the user's browser var orderCookieExpiration = 30; /** * The getExpires function returns an expiration date based on a specified number of * days from the current day. */ function getExpires(days) { var today = new Date(); var expires = new Date(today.getTime() + (30 * 86400000)); return expires; }