<!--

function openPageNewWinURL(sURL)
{
		myWin = window.open(sURL, "newWindow","resizable=no,menubar=no,toolbar=no,location=no,width=420,height=450,top=150,left=200");
		myWin.focus();		
		myWin.location.href = sURL;
}

function dateTill() {
var date = new Date("29 Nov 2000");
var description = "29 Nov 2000";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<font face='Georgia, Times New Roman, Times, serif' size='2' color='#FFFFFF'>")
if (days > 1) {
document.write(days+1 + " days until " + description);
}
else if (days == 1) {
document.write("Only 2 days until " + description);
}
else if (days == 0) {
document.write("Tomorrow is " + description);
}
else {
document.write("It's" + description + "!");
}
document.write("</font>");
}

function dateTill1() {
var date = new Date("22 Nov 2000");
var description = "22 Nov 2000";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<font face='Georgia, Times New Roman, Times, serif' size='2' color='#FFFFFF'>")
if (days > 1) {
document.write(days+1 + " days until " + description);
}
else if (days == 1) {
document.write("Only 2 days until " + description);
}
else if (days == 0) {
document.write("Tomorrow is " + description);
}
else {
document.write("It's" + description + "!");
}
document.write("</font>");
}

function typew()
{
a = a + 1;
check();
window.status = message[curmsg].substring(0, a);
if (a == message[curmsg].length + 5) {
curmsg = curmsg + 1;
a = 0;
}
if (curmsg > msgs) {
curmsg = 0; }
counter = setTimeout("typew()", wait);
}

function check()
{
if (a <= message[curmsg].length) {
if (message[curmsg].substring(a, a + 1) == "") {
a = a + 1;
check();
}
}
}

// message display on status bar
var wait = 50; 		//sleep time until next letter (milliseconds)
var message = new Array();
message[0] = "Welcome to PIERROT Gate...          ";
message[1] = "Kindly sign my guestbook so I know who you are...         ";
message[2] = "If you need to contact me, my email is teru-chan@glay.per.sg          ";
message[3] = "Brief intro of the web site...Guest is the guest book for this site         ";
message[4] = "Biography is about PIERROT         ";
message[5] = "Discography contains media clips of their songs and PVs         ";
message[6] = "Live! contains a special interview and media clips of their live performances         ";
message[7] = "Gallery contains wallpapers, etc. pls email me if you wish to contribute         ";
message[8] = "Votes is a voting booth on PIERROT         ";
message[9] = "BBS is a message board for anything related to PIERROT         ";
message[10] = "Links - Pls visit this page if you wish to link to my site         ";
message[11] = "Others contains SOON TO BE UP and other miscellaneous pages         ";
var msgs = 11; 		//Number of message (0 is first)

var temp = "";		//Do not modify these... (recommended)
var curmsg = 0;
var a = 0;
var counter = 0;
typew();

//  End -->