<!-- Countdown Script -->
var date = new Date("December 25, 2006");
var description = "Christmas";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
if (days > 1) {
cdown="There are " + (days+1) + " days until " + description + "."
}
else if (days == 1) {
cdown="Only two days until " + description + "."
}
else if (days == 0) {
cdown="Tomorrow is " + description + "."
}
else if (days == -1) {
cdown="It's" + description + "!"
}
else if (days < -1) {
cdown=description + " was " + ((days+1)*-1) + (days < -2 ? " days" : " day") + " ago."
}

<!-- Resolution Script -->
var bestwidth = 800;
var bestheight = 600;
if (screen.width != bestwidth || screen.height != bestheight)
{
resmsg = "This site may not look good to you because our website "
+ "is best viewed with " + bestwidth + "x" + bestheight + " resolution, "
+ "but your screen resolution is " + screen.width + "x"
+ screen.height + ".  Please change your screen resolution "
+ "to best view the site, if possible. Thanks!";
}
else
{
resmsg= "You are viewing our website properly because your screen resolution is 800x600.";
}

<!-- Time Greeting Script -->
day = new Date()
hours = day.getHours()
if ((hours == 1) || (hours == 2) || (hours == 3) || (hours == 4) || (hours == 5) || (hours == 6))
greet="It's a new day! Too early huh?"
if ((hours == 7) || (hours == 8) || (hours == 9) || (hours == 10))
greet="Good Morning! Did you eat your breakfast?"
if (hours == 11)
greet="Good Morning!"
if (hours == 12)
greet="NOON! Time for lunch."
if ((hours == 13) || (hours == 14) || (hours == 15) || (hours == 16) || (hours == 17))
greet="Good Afternoon!"
if ((hours == 18) || (hours == 19) || (hours == 20) || (hours == 21) || (hours == 22))
greet="Good Evening! Oh, you're visiting us by this time. Does it mean we beat the primetime TV?"
if (hours == 23)
greet="It's almost midnight... Aren't you sleepy yet?"
if (hours == 0)
greet="It's midnight... do you ever sleep?"

<!--  Get The Time Script -->
function funClock() {
if (!document.layers && !document.all)
return;
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "AM";
if (hours >= 12) {
dn = "PM";
hours = hours - 12;
}
if (hours == 0) {
hours = 12;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = hours + ":" + minutes + ":" + seconds + " " + dn;
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;

<!-- Random Message Script -->
var howMany = 20
var quote = new Array(howMany+1)
quote[0]=greet
quote[1]=resmsg
quote[2]="Your birthdate is needed. Please <a href=http://z14.invisionfree.com/chickautz/index.php?act=UserCP&CODE=01>complete your profile</a>."
quote[3]="Our Friendster email is postmaster@chick-autz.coms.ph."
quote[4]="J.M. de Leon is the webmaster of Chick-Autz website."
quote[5]="The webmaster first created our website at the age of 16."
quote[6]="Our MySpace URL is http://groups.myspace.com/chickautz."
quote[7]="Chick-Autz started on the first day of schoolyear 2002-2003."
quote[8]="Life without a friend is death without a witness."
quote[9]="Heading the list of the worst polluters is the Lamborghini Diablo which produces five times the level of gases involved in climate change as the Toyota Prius. The association said driving the Lamborghini is the equivalent of cutting down three fully grown oak trees every day. © UPI, News Powered by Bravenet.com"
quote[10]="Chick-Autz website was created last September 22, 2002."
quote[11]="Race the strip, not the streets. -PDRF"
quote[12]="For your comments and suggestions, go to <a href=http://z14.invisionfree.com/chickautz/index.php?showforum=2>Forum Assistance</a>."
quote[13]="A best friend is someone who is in your corner when you are cornered."
quote[14]="Do you know that in a race all the runners run, but only one gets the prize? Run in such a way as to get the prize. 1 Corinthians 9:24"
quote[15]="The righteous person is a guide to his friend, but the path of the wicked leads them astray. Proverbs 12:26"
quote[16]="<i>Samlang</i>'s vocabulary: <i>nag-bubularis, nag-Lolonghino, pingkoy ideh.</i>"
quote[17]="Flattery makes friends and truth makes enemies."
quote[18]="Our Gunbound Philippines guild name is CHIKAUTZ."
quote[19]="Our URL is http://z14.invisionfree.com/chickautz."
quote[20]="Text CHICKAUTZ to 2355 to access our text service. Globe subscribers only."
quote[21]="empty"
quote[22]="empty"
quote[23]=cdown
quote[24]="He that is born to be hanged shall never be drowned."
quote[25]="A country can be judged by the quality of its proverbs."
quote[26]="Flattery makes friends and truth makes enemies."
quote[27]="Life without a friend is death without a witness."
quote[28]="Translators, traitors."
quote[29]="If a man deceives me once, shame on him; if he deceives me twice, shame on me."
quote[30]="The nail that sticks up will be hammered down."
quote[31]="There are many paths to the top of the mountain, but the view is always the same."
quote[32]="Do not use a hatchet to remove a fly from your friend's forehead."
quote[33]="Of all the thirty-six alternatives, running away is best."
quote[34]="There is hope from the sea, but none from the grave."
quote[35]="When the apple is ripe it will fall."
quote[36]="Marry a mountain girl and you marry the whole mountain."
quote[37]="Life is a bridge. Cross over it, but build no house on it."
quote[38]="It is better to sit down than to stand, it is better to lie down than to sit, but death is the best of all."
quote[39]="If your buttocks burn, you know you have done wrong."
quote[40]="A wise man hears one word and understands two."
quote[41]="empty"
function rndnumber(){
var randscript = -1
while (randscript < 0 || randscript > howMany || isNaN(randscript)){
randscript = parseInt(Math.random()*(howMany+1))
}
return randscript
}
quo = rndnumber()
quox = quote[quo]

<!-- Date Greeting Script -->
<!-- Begin
var days = new Array();
var msgs = new Array();

days[0] = "January 1, 2008";
msgs[0] = "Happy New Year!";

days[1] = "September 25, 2007";
msgs[1] = "Happy birthday Jami!";

days[2] = "June 15, 2007";
msgs[2] = "Happy birthday Ponga!";

days[3] = "September 12, 2007";
msgs[3] = "Happy birthday Jec!";

days[4] = "September 9, 2005";
msgs[4] = "Happy birthday Fermin!";

days[5] = "January 4, 2008";
msgs[5] = "Happy birthday Bootog!";

days[6] = "May 1, 2007";
msgs[6] = "Today is Labor Day in the Philippines. Happy birthday Jeff G!";

days[7] = "September 22, 2007";
msgs[7] = "Today is Chick-Autz website's 4th anniversary!";

days[8] = "January 15, 2005";
msgs[8] = "Happy birthday Gerald!";

days[9] = "December 19, 2006";
msgs[9] = "Happy birthday Reggie!";

days[10] = "February 14, 2007";
msgs[10] = "Happy Valentines Day!";

days[11] = "December 26, 2007";
msgs[11] = "Happy birthday LJ!";

days[12] = "September 8, 2007";
msgs[12] = "Happy birthday Euro!";

days[13] = "April 9, 2007";
msgs[13] = "Today is <i>Araw ng Kagitingan</i>.";

days[14] = "October 17, 2005";
msgs[14] = "Happy birthday Jerkyll!";

days[15] = "September 11, 2007";
msgs[15] = "Since 1948, there have only been 25 hijackings which have led to deaths--four of those on 9/11.";

days[16] = "May 8, 2007";
msgs[16] = "Happy birthday Veejay!";

days[17] = "January 25, 2007";
msgs[17] = "Happy birthday Raymond!";

days[18] = "April 27, 2007";
msgs[18] = "Happy birthday Alfie!";

days[19] = "June 12, 2007";
msgs[19] = "Today is Philippine Independence Day.";

days[20] = "April 19, 2007";
msgs[20] = "Happy birthday Mike!";

days[21] = "August 25, 2007";
msgs[21] = "Today is National Heroes Day in the Philippines.";

days[22] = "November 1, 2007";
msgs[22] = "Today is All Saints Day.";

days[23] = "November 30, 2007";
days[23] = "Today is Bonifacio Day.";

days[24] = "December 30, 2007";
msgs[24] = "Today is Rizal Day.";

days[25] = "December 8, 2007";
msgs[25] = "Today is the Feast of Our Lady of Immaculate Conception.";

days[26] = "September 20, 2007";
msgs[26] = "Happy birthday Jayehm!";

days[27] = "December 25, 2007";
msgs[27] = cdown;

days[28] = "February 11, 2007";
msgs[28] = "Happy birthday Marianne!";

days[29] = "January 26, 2007";
msgs[29] = "Happy birthday Nem!";

days[30] = "January 29, 2007";
msgs[30] = "Happy birthday Roilan!";

days[31] = "November 4, 2007";
msgs[31] = "Happy birthday Sherie!";

days[32] = "May 30, 2007";
msgs[32] = "Happy birthday Sasha!";

days[33] = "February 13, 2007";
msgs[33] = "Happy birthday Jo-en!";

days[34] = "April 3, 2007";
msgs[34] = "Happy birthday Aeisa!";

days[35] = "April 7, 2007";
msgs[35] = "Happy birthday Palomo!";

days[36] = "April 12, 2007";
msgs[36] = "Happy birthday Rojohn!";

days[37] = "January 14, 2007";
msgs[37] = "Happy birthday Jenivet!";

days[38] = "June 21, 2007";
msgs[38] = "Happy birthday Kringster!";

<!-- Get The Date Script -->
var months = new Array("", 
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);
var weeks = new Array("", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");

var today = new Date(); // today
var week = weeks[today.getDay()+1]; // week
var mon = months[today.getMonth() + 1]; // month
var day = today.getDate(); // day
var year = y2k(today.getYear()); // year
datestamp = week+", "+mon+" "+day+", "+year;

function dateMsg() {
for (i = 0; i < days.length; i++) {
tempdate = new Date(days[i]);
tempmonth = months[tempdate.getMonth() + 1];
tempday = tempdate.getDate();
tempyear = y2k(tempdate.getYear());
if (year == tempyear && mon == tempmonth && day == tempday)
return(msgs[i]); // returns day message
   }
return(quox); // returns default
}

// Y2K Fix Function
function y2k(year) {
if (year < 2000)		
year = year + 1900;
return year;
}
//  End 
// -->