function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	
	document.cookie = name+"="+value+expires+"; path=/";
}

function eraseCookie() {
	createCookie("acceptance","",-1);
	var oBody = document.getElementsByTagName('body')[0];
		if (oBody) {
			oBody.className = 'notaccepted';
	}
}

function accept() {
	var oBody = document.getElementsByTagName('body')[0];
	if (oBody) {
		oBody.className = 'accepted';
		createCookie('acceptance_t', true ,1);
		createCookie('acceptance_s', true ,0);
	}
}

HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Wed, 08 Feb 2012 05:52:20 GMT
Connection: close
Content-Length: 20

<h1>Bad Request</h1>
