mydate = new Date();
fDay = mydate.getDay();
fDate = mydate.getDate();
fMonth = mydate.getMonth();
fYear = mydate.getFullYear();
arday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
armonth = new Array("January ","February ","March ","April ","May ","June ","July ","August ","September ", "October ","November ","December ");
ardate = new Array("0th","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th","31st")

function writeGreeting() {
     day = new Date()
     hr = day.getHours()
     if ((hr <= 5) && (hr>=0))document.write("Late Night Greetings!")
     if ((hr <= 11)&&(hr >= 6))document.write("Good morning!")
     if ((hr <=17) && (hr >= 12)) document.write("Good Afternoon!")
     if ((hr <=23) && (hr >= 18))document.write("Good Evening!");
}

NS4 = document.layers;
if (NS4) {
origWidth = innerWidth;
origHeight = innerHeight;
}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();
}
if (NS4) onresize = reDo;
