<!--
var now = new Date();
var foo = now;
now.setFullYear(now.getFullYear() + 1); 
//permanent ID
var visitID = getCookie("AS2ID"); var yournum;
if (!visitID) { 
var oldnum = getRandomNum(1, 99999); 
var secondoldnum = getRandomNum(1, 99999); 
visitID = oldnum + "-" + secondoldnum; } 
setCookie("AS2ID", visitID, now);

//session ID
var cook = getCookie("myTempID"); 
if ((!cook) || (cook.indexOf(':') == -1)) { ct = 1; visitTempID = getRandomNum(1, 99999); }
else { var arry = cook.split(':');
var visitTempID = arry[0];
var ct = arry[1]; 
var doc = arry[2];
if (doc != escape(document.location)) ct++; }
setTempCookie("myTempID", visitTempID + ":" + ct + ":" + escape(document.location)); 

var bg = ( visitID + "&" + visitTempID + "&" + escape(document.location) + "&" + escape(document.title) + "&" + escape(document.referrer) + "&" + escape(navigator.appName) + "&" + escape(navigator.appVersion) + "&" + escape(ct) + "&" + escape(foo.toDateString() + "-" + foo.toTimeString()));
var agp = visitID;
if (navigator.javaEnabled()) {
document.write ("<applet codebase=\"" + nonCGI + "\" code=asapplet.class id=asapplet name=asapplet height=0 width=0>");
document.write ("<param name=credit value=\"©2002 http://www.worldwidecreations.com\">");
document.write ("<PARAM NAME=url_to_php_or_cgi value=\"" + theURL + "\">");
document.write ("<PARAM NAME=mode value=\"" + mode + "\">");
document.write ("<PARAM NAME=query_string value=\"" + bg + "\">");
document.write ("<PARAM NAME=uID value=\"" + agp + "\">");
document.write ("<PARAM NAME=tID value=\"" + visitTempID + "\">");
document.write ("</applet>");  }

function getRandomNum(lbound, ubound) { return (Math.floor(Math.random() * (ubound - lbound)) + lbound); }

function getCookie(name) {
var dc = document.cookie; var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) { begin = dc.indexOf(prefix);
if (begin != 0) return null; } else begin += 2;
var end = document.cookie.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin + prefix.length, end)); }

function setCookie(name, value, expires) {
var curCookie = name + "=" + escape(value) +
"; expires=" + expires.toGMTString() + "; path=/";
document.cookie = curCookie; }

function setTempCookie(name, value) {
var curCookie = name + "=" + escape(value) + "; path=/";
document.cookie = curCookie; }

function clickchat() {
window.open(theURL + "as2chat." + mode, '', 'menubar=no,scrollbars=0,resizable=1'); }

//-->