<!-- 

//Comments Section
//Jim Allen email: tjallen@pipeline.com 
//Random Greeting Generator and its html and javascript code are
//copyright 2001 by Thomas James Allen

//script to generate random greetings
function greetMe(){
//check to see if personalized
var cookievalue = getCookie('getyourwebsitehere');
if (cookievalue == null){firstname = ""}else{firstname = cookievalue};
//preload greetings
var say = new Array();
say[0] = "8";
say[1] = "8";
say[2] = "8";
say[3] = "8";


//pick a random greeting
var howmany = 3
var bRand = 0;
bRand = Math.random();
bRand = Math.floor(bRand * howmany);
//prepare the cookievalue
if(firstname != ""){sayPers1 = firstname}else{sayPers1 = ""};
if(firstname != ""){sayPers2 = firstname + ", "}else{sayPers2 = ""};
//prepare and docwrite the greeting
sayWhat = say[bRand];
sayWhat = sayWhat.replace("8",sayPers1);
sayWhat = sayWhat.replace("7",sayPers2);
sayWhat =  + sayWhat + 
document.write(sayWhat);
document.close()
}

//below are the cookiemaker scripts
//this sets any cookies to expire one year after today (in milliseconds!)
var expiration = new Date();
expiration.setTime(expiration.getTime() + 24*60*60*365*1000);

//function for retrieving a cookie.
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}

//function for setting a cookie.
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) + 
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
return true;
}

//function for deleting a cookie.
function delCookie (name,path,domain) {
if (getCookie(name)) {
document.cookie = name + "=" +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}

//function to grab info from the cookiemaker form
function grabInfo(){
var cookinfo = document.reggy.info.value;
return cookinfo;
}

//-->