function MakeArrayday(size) {
  this.length = size;
  for (var i = 1; i <= size; i++) {
    this[i] = "";
  }
  return this;
};

function MakeArraymonth(size) {
  this.length = size;
  for (var i = 1; i <= size; i++) {
    this[i] = "";
  }
  return this;
};

function funClock() {
  if (!document.layers && !document.all) return; 
  var runTime = new Date();
  var hours = runTime.getHours();
  var minutes = runTime.getMinutes();
  var seconds = runTime.getSeconds();
  if (hours == 0) {hours = 12;} 
  if (minutes <= 9) {minutes = "0" + minutes;} 
  if (seconds <= 9) {seconds = "0" + seconds;} 
  movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " </b>"; 
  if (document.layers) { 
    document.layers.clock.document.write(movingtime); 
    document.layers.clock.document.close();
  } else if (document.all) { 
    clock.innerHTML = movingtime;
  }
  setTimeout("funClock()", 1000)
};

function message(text) { 
  window.status = text;
  return true;
}

function nw(pic) { // nove okno
  window.open("show.php?pic="+pic+"&maxx="+screen.availWidth+"&maxy="+screen.availHeight, "obrazek"+pic, "location=no,status=no,resizable,scrollbars=yes,left=0,top=0")
};

function create_mail(n,d,p) { // obrana proti spam robotum
  if (create_mail.arguments.length == 2) {
    document.write("<a href='mailto:"+n+"@"+d+"'>"+n+"@"+d+"</a>")
  }
  else {
    document.write("<a href='mailto:"+n+"@"+d+"'>"+p+"</a>")
  }
};

window.onload = funClock;
