function acceptsCookies(){
var answer;                                                                    
document.cookie = "acceptsCookies=yes";   
if(document.cookie == "") answer = false; else answer = true;
document.cookie = "acceptsCookies=yes; expires=Fri, 13-Apr-1970 00:00:00 GMT"; 
return answer;}

function Cookie(name, expires, domain, path, isSecure) {
	this.name=name;
	this.expires=expires;
	this.domain=domain;
	this.path=path;
	this.isSecure=isSecure;
if (this.expires) fixCookieDate(this.expires);}

function fixCookieDate(theDate){
var testDate=new Date(0); 
var skew=testDate.getTime(); 
if (skew > 0) theDate.setTime(theDate.getTime()-skew);}

function Cookie_get() {
var thewholeCookie=document.cookie; 
var cookiestart=thewholeCookie.indexOf(this.name);
if (cookiestart == -1) return ""; 
else cookiestart += this.name.length + 1;
var cookieEnd = thewholeCookie.indexOf(";", cookiestart);
if (cookieEnd == -1) cookieEnd = thewholeCookie.length; 
var theCookie = thewholeCookie.substring(cookiestart, cookieEnd);
return unescape (theCookie);}

function Cookie_store(string){
document.cookie = this.name + "=" + escape(string) +
((this.expires) ? "; expires=" + this.expires.toGMTString() : "") +
((this.path) ? "; path=" + this.path : "") +
((this.domain) ? "; domain=" + this.domain : "") +
((this.isSecure) ? "; secure" : "");}

function Cookie_del(){
document.cookie=this.name + "=" +
((this.expires) ? "; expires=" + (new Date(0)) .toGMTstring() : "") +
((this.path) ? "; path=" + this.path : "")+
((this.domain) ? "; domain=" + this.domain : "");}

new Cookie();
Cookie.prototype.store = Cookie_store; 
Cookie.prototype.get = Cookie_get;
Cookie.prototype.del = Cookie_del;