var TrackTag = "http://fls.doubleclick.net/activityi;";

function GetTrackingTag(URL){
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	src = TrackTag + URL + 'ord=1;num='+ a + '?';
	
	if(GetTrackingTag){
		document.getElementById("tracking_tag").src = src;
		// alert(src);
	}
}

var TrackTagAD = "http://ad.doubleclick.net/activity;";

function GetTrackingTagAD(URL, link){
	
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	src = TrackTagAD + URL + 'ord=1;num='+ a + '?';
	if(GetTrackingTagAD){
		document.getElementById("tracking_tagAD").src = src;
	}
}


/*-------------- LOOK HERE : NEW TAGGING ------------*/
/* This is for Tracking both the SpotLightTags and FloodLight tags from doubleclick random Number */
/* for URL pass everything up to the random value to be generated */
/* ex1: http://fls.doubleclick.net/activityi;src=1649160;type=ritzzz;cat=recprnt;ord= (ord is the random element) */
/* ex2: http://fls.doubleclick.net/activityi;src=1649160;type=ritzzz;cat=tlfrnd;ord=1;num= (num is the random element) */
/* for tagID pass the id of the iframe or image element (defaults to "doubleclick_tag" if no tagID is passed in) */
/*-------------------------------------------------*/  
function getdoubleclicktag(URL,tagID){
	getDoubleClickTag(URL,tagID);
}

function getDoubleClickTag(URL,tagID){
	var axel = Math.random()+"";
	var a = axel * 10000000000000;
	src = URL + a + '?';
	
	if (!tagID || tagID == ""){
		tagID = "doubleclick_tag";
	};
	
	if(getDoubleClickTag){
		document.getElementById(tagID).src = src;
		// alert(src);
	}
}

function clickTag(href,dtag){
	var axel = Math.random() + "";
	var a = axel * 1000000000000000000;
			
	document.url = href;
	var doPing = new Image();
	// the URL below is a spotlight tag for page1
	doPing.src = dtag + a + '?';
	doPing.onLoad = passed;
	return false;
}

function passed(){
	document.location = document.url;
}

