//
// GoTrackNow Item Tracking Module
// See wlog.php for instructions
//

function DoGTNTracker()
{
	var szAccessScript = "http://www.gotracknow.com/wlog.php";
	var pageQS = location.search.substring(1);
	var pairs = pageQS.split("&");
	var tmpAry;
	var szTIDValue = "";
	var szUIDValue = "";
	
	for(var i=0; i<pairs.length; i++)
	{
		tmpAry = pairs[i].split("=");
		if(tmpAry[0] == "TID")
		{
			szTIDValue = tmpAry[1];
		}
		if(tmpAry[0] == "UID")
		{
			szUIDValue = tmpAry[1];
		}
	}
	
	if(szTIDValue.length > 0)
	{
		if(szUIDValue.length > 0)
		{
			$img_path2 = "&UID=" + szUIDValue;
		}
		else
		{
			$img_path2 = "";
		}
		$img_path = "<img height=\"1\" width=\"1\" src=\"" + szAccessScript + "?TID=" + szTIDValue + $img_path2 + "\">";
		document.write($img_path);
	}
}


