function readCookie() {
nameEQ = "ratingsystem=";
ca = document.cookie.split(';');
for(i=0;i < ca.length;i++) {
  c = ca[i];
  while (c.charAt(0)==' ') c = c.substring(1,c.length);
  if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}

function createCookie() {
date = new Date();
milliseconddelay = 10 * 24 * 60 * 60 * 1000;
date.setTime(date.getTime()+milliseconddelay);
expires = "; expires="+date.toGMTString();
document.cookie = "ratingsystem=displayed"+expires+"; path=/";
}
