where name, value, and path are strings, and secure is either true or null. Only name and value are required.
WM_readCookie('name');
Returns the value associated with name.
WM_getCookieValue('name');
This is a helper function used by WM_readCookie() and WM_killCookie(). It extracts a single value based on name, given a cookie of the form 'name=value'.
WM_killCookie('name'[, 'path', 'domain']);
Remember that path and domain must be supplied if they were set with the cookie.
WM_acceptsCookies();
Returns true or false.
*/
function WM_acceptsCookies() {
// This function tests whether the user accepts cookies.
// Declare variable.
var answer;
// Try to set a cookie.
document.cookie = 'WM_acceptsCookies=yes';
// If it fails, return false; if it succeeds, return true.