1 |
6daefa8c
|
Petr Lukašík
|
<!--
|
2 |
|
|
var pong;
|
3 |
|
|
function makeArray(n){
|
4 |
|
|
this.length = n;
|
5 |
|
|
for (i=1;i<=n;i++){
|
6 |
|
|
this[i]=0;
|
7 |
|
|
}
|
8 |
|
|
return this;
|
9 |
|
|
}
|
10 |
|
|
function displayDate() {
|
11 |
|
|
var this_month = new makeArray(12);
|
12 |
|
|
this_month[0] = "January";
|
13 |
|
|
this_month[1] = "February";
|
14 |
|
|
this_month[2] = "March";
|
15 |
|
|
this_month[3] = "April";
|
16 |
|
|
this_month[4] = "May";
|
17 |
|
|
this_month[5] = "June";
|
18 |
|
|
this_month[6] = "July";
|
19 |
|
|
this_month[7] = "August";
|
20 |
|
|
this_month[8] = "September";
|
21 |
|
|
this_month[9] = "October";
|
22 |
|
|
this_month[10] = "November";
|
23 |
|
|
this_month[11] = "December";
|
24 |
|
|
var today = new Date();
|
25 |
|
|
var day = today.getDate();
|
26 |
|
|
var month = today.getMonth();
|
27 |
|
|
var year = today.getYear();
|
28 |
|
|
if (year< 1900) {
|
29 |
|
|
year += 1900;
|
30 |
|
|
}
|
31 |
|
|
return(this_month[month]+" "+day+", "+year);
|
32 |
|
|
}
|
33 |
|
|
function setPage (newAddress) {
|
34 |
|
|
if (newAddress != "") { window.location.href = newAddress; }
|
35 |
|
|
}
|
36 |
|
|
// -->
|