function rnd(num){
return Math.floor(Math.random() * num) +1;
}
function display_title() {
var hours = date.getHours(); 
var message = '';
if (hours < 12) { time_of_day = 'Morning'; message='Morning Message';}
if ((hours >= 12) && (hours < 18)) { time_of_day = 'Afternoon'; message='Afternoon Message'}
if (hours >= 18) { time_of_day = 'Evening'; message='Evening Message';}  
document.write('<CENTER><h2> Good ' + time_of_day + ' and Welcome to</h2>');
//document.write('<i><h1>The Executive Coach</i></h1><h2>Website</h2></font>');
}
//document.write('<CENTER>' + message + '<CENTER>'); 
//end display title

function display_date() {
date = new Date();
var day_of_week_number = date.getDay();
var day_of_month = date.getDate();
var month_number = date.getMonth();
var year = date.getYear();
var day_of_week = '';
var month = ''

if(month_number == 0){month = 'January';}
if(month_number == 1){month = 'February';}
if(month_number == 2){month = 'March';}
if(month_number == 3){month = 'April';}
if(month_number == 4){month = 'May';} 
if(month_number == 5){month = 'June';}
if(month_number == 6){month = 'July';}
if(month_number == 7){month = 'August';}
if(month_number == 8){month = 'September';}
if(month_number == 9){month = 'October';}
if(month_number == 10){month = 'November';}
if(month_number == 11){month ='December';}

if(day_of_week_number == 0){day_of_week = 'Sunday';}
if(day_of_week_number == 1){day_of_week = 'Monday';}
if(day_of_week_number == 2){day_of_week = 'Tuesday';}
if(day_of_week_number == 3){day_of_week = 'Wednesday';}
if(day_of_week_number == 4){day_of_week = 'Thursday';}
if(day_of_week_number == 5){day_of_week = 'Friday';}
if(day_of_week_number == 6){day_of_week = 'Saturday';}

ord="ord" + day_of_month
len_ord= ord.length-1
month_ord='th';
if(ord.substring(len_ord,5)== 1){month_ord = 'st';}
if(ord.substring(len_ord,5)== 2){month_ord = 'nd';}
if(ord.substring(len_ord,5)== 3){month_ord = 'rd';}
var date_to_show = day_of_week + ' ' + day_of_month + month_ord + ' ' + month + ' ' + year; 
document.write('<h4> ' + date_to_show.fontcolor("#000080") + '</font><BR>');
} //end display date


var popup_window = null;
function popup(status,url)
{
if(status != 0)
{
if(popup != null) popup.focus();
else
{
	var popup = open(url,"Popup","width=200,height=200");
	popup_window = popup;
}
} else {
	if(popup_window != null) popup_window.close();
}
}


<!--
function img_swap_over(imgID,imgName,overCap) 
{
overlib(overCap, CAPCOLOR, '#efb563', TEXTCOLOR, '#FF6600', BELOW, CENTER, OFFSETX, -100, OFFSETY, 75, BACKGROUND, 'graphics/i_box.gif', WIDTH, 240, HEIGHT, 100, PADX, 40, 10, PADY, 15, 15); 
rolloverImage(imgID,imgName);
}

function img_swap_out(imgID,imgName,overCap) 
{
rolloverImage(imgID,imgName);
nd();
}
function img_swap(img1a,img1b,img2a,img2b) 
{
rolloverImage(img1a,img1b);
if(img2a!= '') rolloverImage(img2a,img2b);
}

// -->


<!--

function err() {return true;}
window.onerror=err;

browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
browserVendor = browserName.substring(0,9);
gSrc=""

function openWindow0(url, wd, ht, lf, tp, txt) {
	flyingwin =  window.open("", "remote")
	flyingwintxt = "<img src= \"" +url
	flyingwintxt += "\"><P><P><P> <INPUT name=\"close\" type=\"button\" value=\"Close\" onclick=\"window.close()\";>"
	flyingwin.document.write(flyingwintxt);
	}

function openWindow(url, wd, ht, lf, tp, txt) {
	window.open(url, "remote", 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,dependent=yes,width=' +wd+ ',height=' +ht+ ',left=' +lf+ ',top=' +tp)
	gSrc=url
}

var imgs=document.images

function loadImage(imgObj,imgSrc) {
if(imgs){
    eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
    }
}

function rolloverImage(imgNam,anImg) {
 if (imgs){
 	imageOnName = imgNam
 	document.images[imgNam].src = eval(anImg+'.src')
 	}
}

//-->


