function getCookie(cookieName) {
	thisCookie = document.cookie.split("; ")
	for (i=0; i<thisCookie.length; i++) {
  		if (cookieName == thisCookie[i].split("=")[0]) {
	  		return thisCookie[i].split("=")[1]
		}
	}
	if (cookieName == "NickName") {
		return "Anonymous" ;
	}
	return 0
}

function getPageName() {
	docURL = document.URL
	docURLArray = docURL.split("/")
	return docURLArray[docURLArray.length - 1]
}

function setContent(NewPage) {
	document.location.href = NewPage
}

function saveCookie(cookieNameIn) {

Today = new Date
thisYear = Today.getYear()
if (thisYear < 1000) {
thisYear += 1900
}
	expireDate = new Date(thisYear + 1, Today.getMonth(), Today.getDate())
	currDate = new Date
	document.cookie = cookieNameIn + "=" + escape(currDate.toGMTString()) + ";expires=" + expireDate.toGMTString() + ";path=/;"
	return
}

function showNew(var1, var2) {
	var ver = navigator.appName;
	var num = parseInt(navigator.appVersion);
//	if (ver == "Netscape" && num < 5) {
//		document.write("<FONT COLOR=#FFFFFF>*</FONT>")
//		return
//	}
	testDate = new Date("1/2/90")
	if (var2 < var1) {
      document.write("<FONT COLOR=RED>")
	} else {
      document.write("<FONT COLOR=WHITE>")
	}
	if (var2 < var1 && var2 > testDate) {
      document.write("&gt;")
      document.write("</FONT>")
   } else {
      document.write("*")
      document.write("</FONT>")
   }
}

function getExpireDate(ms2add) {
	thisDate = new Date
	thisDate = thisDate.getTime() + ms2add
	outputDate = new Date
	outputDate.setTime(thisDate)
	return outputDate
}
