function getCookie( name ) {
	var cookies = document.cookie;
	var index = cookies.indexOf( name + "=" );
	if ( index == -1 ) return null;
	index = cookies.indexOf( "=", index ) + 1;
	var endstr = cookies.indexOf( ";", index );
	if ( endstr == -1 ) endstr = cookies.length;
	return unescape( cookies.substring( index, endstr ) );
}

function setCookie( cookie ) {
	document.cookie = cookie;
}
