<center>
<script
language="javascript"
type="text/javascript">
var
now =
new
Date();
var
month =
now.getMonth();
var
date =
now.getDate();
var
day =
now.getDay();
var
year =
now.getYear();
m
=
new
Array("January","February","March","April","May","June","July",
"August","September","October","November","Decemeber");
d
=
new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
if
(year
<
2000)
year =
year +
1900;
var
monarr =
new
Array(31,
28,
31,
30,
31,
30,
31,
31,
30,
31,
30,
31);
if
(((year
%
4
==
0)
&&
(year
%
100
!=
0))
||
(year
%
400
==
0))
monarr[1]
=
"29";
while
(date
!=
1){
date
=
date -
1;
day
=
day -
1;
if
(day
<
0)
day =
day +
7;
}
weekday
=
0;
while
(date
!=
monarr[month]){
date
=
date +
1;
day
=
day +
1;
if
(day
>
6)
day
=
7
-
day;
if
(d[day]
==
"Wednesday")
weekday
=
weekday +
1;
}
if
(d[day]
==
"Wednesday")
weekday =
weekday +
1;
document.write
("<b>"+m[month]
+
" contains "
+
weekday +
" "
+
d[3]
+
"s</b>");</script>
</center>