/*
Netscape 3.0 Users will need to use their back buttons.
*/
today=new Date;
thisday=today.getDay();
thisdate=today.getDate();
thismonth=today.getMonth();
thisyear=today.getYear();
if (thisyear < 1000){
thisyear = thisyear +1900};

//Superscripts
if ((thisdate==1)||(thisdate==21)||(thisdate==31)){
supers="st"
}
else if ((thisdate==2)||(thisdate==22)){
supers="nd"
}
else if ((thisdate==3)||(thisdate==23)){
supers="rd"
}
else {
supers="th"
}
//end superscripts


//The Day
function days(s,m,t,w,th,f,sa)
{
this[0]=s;
this[1]=m;
this[2]=t;
this[3]=w;
this[4]=th;
this[5]=f;
this[6]=sa;
}
//End the day

//The month
function months(jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec)
{
this[0]=jan;
this[1]=feb;
this[2]=mar;
this[3]=apr;
this[4]=may;
this[5]=jun;
this[6]=jul;
this[7]=aug;
this[8]=sep;
this[9]=oct;
this[10]=nov;
this[11]=dec;
}
//End month

dotw= new days("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
month=new months("January","February","March","April","May","June","July","August","September","October","November","December");
//End Date Check


function showtime(){
today=new Date();
if (today.getHours()<10){
a="0";
}
else{
a=""
}

if (today.getMinutes()<10){
b="0";
}
else{
b=""
}

if (today.getSeconds()<10){
c="0";
}
else{
c=""
}

thetime=a + today.getHours() + ":"+ b + today.getMinutes() + ":"+ c + today.getSeconds();
if ((navigator.appName=="Microsoft Internet Explorer")&&(navapp > 3)){
document.all.time2.innerHTML = thetime;
}

else {document.timeform.timebox.value=thetime;}
window.setTimeout("showtime();",1000);
}

function popup(filename,x,y){
special = "width=" + x + ",height=" + y + ",center,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,left=100,top=100";
win = window.open(filename, "PopUp", special);
win.focus();
}
