<!--  
if (top != self) {
  top.location.href = location.href;
}

var pics = []; // = new Array();
var MyMsg = []; // = new Array();
var HOME = 0;
var MAIL = 1;
var JOBS = 2;
var ABOU = 3;
var RED1 = 4;
var GRAY = 5;
var DUMP = 6;
var GATE = 7;
var i;
var date1 = new Date();
var nDay  = date1.getDay();

var newWindow;
var newWindow2;
var maxDays;

function makeNewWindow(fileName) {
  if (!newWindow || newWindow.closed) {
    newWindow = window.open(fileName,"","resizable,height=630,width=550,scrollbars=yes")
    if (!newWindow.opener) {
      newWindow.opener = window
    }
  } else {
    newWindow.focus(fileName)
  }
}

function SetCookie(cookieName, cookieValue, nDays) {
  var today = new Date();
  var expire = new Date();
  if (nDays == null || nDays == 0) nDays = 1;
  expire.setTime(today.getTime() + 3600000 * 24 * nDays);
  document.cookie = cookieName + "=" + escape(cookieValue) + ";expires=" + expire.toGMTString();
}

function ReadCookie(cookieName) {
  var theCookie = "" + document.cookie;
  var ind = theCookie.indexOf(cookieName);
  if (ind == -1 || cookieName == "") return ""; 
  var ind1 = theCookie.indexOf(';', ind);
  if (ind1 == -1) ind1 = theCookie.length; 
  return unescape(theCookie.substring(ind + cookieName.length + 1, ind1));
}

function GetDateMonth() {
  return date1.getMonth() + 1;
}

function GetDateDay() {
  return date1.getDay() + 1;
}

function GetTDClass(rlWeekDay) {
  return (rlWeekDay == nDay) ? "day" : "reg";
}

function GetMonthYear() {
  var month = date1.getMonth();
  var strOut;
  if (month == 0)      { maxDays = 31; strOut = "January";  }
  else if (month == 1) { maxDays = 28; strOut = "February"; }
  else if (month == 2) { maxDays = 31; strOut = "March";    }
  else if (month == 3) { maxDays = 30; strOut = "April";    }
  else if (month == 4) { maxDays = 31; strOut = "May";      }
  else if (month == 5) { maxDays = 30; strOut = "June";     }
  else if (month == 6) { maxDays = 31; strOut = "July";     }
  else if (month == 7) { maxDays = 31; strOut = "August";   }
  else if (month == 8) { maxDays = 30; strOut = "September";}
  else if (month == 9) { maxDays = 31; strOut = "October";  }
  else if (month == 10){ maxDays = 30; strOut = "November"; }
  else if (month == 11){ maxDays = 31; strOut = "December"; }
  strOut += "&nbsp;" + date1.getFullYear();
  return strOut.replace("\n", " ");
}

function DayFromWeekDay(rlWeekDay) {
  var dayNum = date1.getDate() - (nDay - rlWeekDay);
  if (dayNum <= 0) {
    dayNum = ((maxDays == 31) ? 30 : 31) + dayNum;
  } else if (dayNum > maxDays) {
    dayNum = dayNum - maxDays;
  }
  return dayNum;
}

function time() {
  var clock_time = new Date();
  document.getElementById('time').innerHTML = clock_time.toLocaleTimeString();
  setTimeout("time()", 1000);
}

function goHome() {
  window.location = "http://www.jp2code.net/";
}

function Start(i) { // index, string, mouseout, mousedown, mouseover
  if (1 < i) {
    setTimeout('goHome()', i * 1000);
  }
}

-->

