var atlasUrl = 'https://view.atdmt.com/jaction/' 
function track(tag,destination){  // used to work, but does not seem to as of 12 August 2009 -sanord

    	var timestamp = new Date();
    	var qs = "?qstr=random=" + Math.ceil(Math.random() * 99999999) + timestamp.getUTCFullYear() + timestamp.getUTCMonth() + timestamp.getUTCDate() + timestamp.getUTCHours() + timestamp.getUTCMinutes() + timestamp.getUTCSeconds() + timestamp.getUTCMilliseconds();

    	var uri = atlasUrl + tag + qs;
    
    	var script = document.createElement('script');
    	script.type = 'text/javascript';
    	script.src = uri;

    	document.getElementsByTagName('head')[0].appendChild(script);
    	
    	document.location=destination;
}

// new function provided 19 August 2009
// does not build Atlas URL from tag and does not do redirect -sanord
function atlas(uri)
{
    var timestamp = new Date();

    var qs = "?qstr=random=" + Math.ceil(Math.random() * 99999999) + timestamp.getUTCFullYear() + timestamp.getUTCMonth() +  timestamp.getUTCDate() + timestamp.getUTCHours() + timestamp.getUTCMinutes() + timestamp.getUTCSeconds() + timestamp.getUTCMilliseconds();

    var uriPlus = uri + qs;
    
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = uriPlus;

    document.getElementsByTagName('head')[0].appendChild(script);
}
