var cntr=1;
var result = "";
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1) endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (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 0;
}
function SetCookie (name, value) {
  document.cookie = name + "=" + escape (value) + "; path=/";
}
function LT(num) {
    parent.show(num);
}
function cR() {
  var rt = eval(GetCookie("rt"));
  var tot = eval(GetCookie("tot"));
  if (cntr == 1)
      rt = eval(++rt);
  if (cntr == 1)
      tot = eval(++tot);
  SetCookie('rt', rt);
  SetCookie('tot', tot);
  if (cntr == 1)
      parent.score.initializeCookies();
  cntr=2;
}
function cW() {
  var tot = eval(GetCookie("tot"));
  if (cntr == 1)
      tot = eval(++tot);
  SetCookie('tot', tot);
  if (cntr == 1)
      parent.score.initializeCookies();
  cntr=2
}
function nQ(num) {
  cntr=1;
  parent.bottom.document.open();
  parent.bottom.document.bgColor="FBFBFB";
  parent.bottom.document.write (" ");
  parent.bottom.document.close();
}
