function GetRandomCSS() {
   (document.cookie.indexOf("cholz")!=-1)?
      cookieEnabled=true:cookieEnabled=false;
   if(cookieEnabled) {
      return GetACookie('cholz');
   }
   else {
      var cssList = new Array(
         'css/index1.css',
         'css/index2.css',
         'css/index3.css',
         'css/index4.css',
         'css/index5.css',
         'css/index6.css',
         'css/index7.css',
         'css/index8.css');
      var randnum = Math.floor(cssList.length *
         Math.random());
      SetACookie('cholz',cssList[randnum]);
      return cssList[randnum];
   }
}
function changeCSS() {
   document.getElementById('cssHolder').setAttribute(
        'href',
        GetRandomCSS());
}
function SetACookie(name,value) {
	var theCookie = name + "=";
	theCookie = theCookie + escape(value);
	document.cookie = theCookie;
}
function GetCookieVal(offset) {
   var endstr = document.cookie.indexOf (";",offset);
   if (endstr == -1) { endstr = document.cookie.length; }
   return unescape(document.cookie.substring(
              offset,endstr));
}
function GetACookie(name) {
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while(i < clen) {
      var j = i + alen;
      if (document.cookie.substring(i,j) == arg) {
         return GetCookieVal(j);
      }
      i = document.cookie.indexOf(" ", i) + 1;
      if(i == 0) break;
   }
   return null;
}