function doLogging( szPage )
{

// time
Stamp = new Date();
year = Stamp.getYear();
if (year < 2000) year = 1900 + year;
var Hours;
var Mins;
var Time;
Hours = Stamp.getHours();
if (Hours > 12) {
Hours -= 12;
}
if (Hours == 0) {
Hours = 12;
}
Mins = Stamp.getMinutes();
if (Mins < 10) {
Mins = "0" + Mins;
}

var myTime = Hours+":"+Mins;
var myDate = (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+ year;

// referrer
var refer = document.referrer;
if ( (refer.substring(0,24) != "http://www.aaxatech.com/") && 
	(refer.substring(0,20) != "http://aaxatech.com/") &&
	(refer != "") )
{
	if (window.XMLHttpRequest)
	{	// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{	// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
		}
	}
	var url = "/inc/log.php";
	xmlhttp.open("POST",url,true);
	xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	xmlhttp.send("t="+myTime+"&d="+myDate+"&r="+refer+"&m="+szPage);
}
}
