// log a click to leads then forward the user on to where they want to go 
function forward(obj){
	if (!window.did)
		var did=0;
		
	urlstring = '/wwwroot/remaint/ajax/forward.cfm?did='+did;
	urlstring += '&from_search='+escape(document.location.search);
	urlstring += '&from_pathname='+escape(document.location.pathname);
	urlstring += '&to_url='+escape(obj.url);
	if (obj.user_id)
		urlstring += '&user_id='+obj.user_id;
	if (obj.comp_id)
		urlstring += '&comp_id='+obj.comp_id;
	if (obj.classid)
		urlstring += '&classid='+obj.classid;
	if (obj.adid)
		urlstring += '&adid='+obj.adid;
	
	if(window.XMLHttpRequest) 
		var myxmlhttp = new XMLHttpRequest();
    else if(window.ActiveXObject) 
		var myxmlhttp = new ActiveXObject("MSXML2.XMLHTTP.3.0");
	myxmlhttp.open("POST", urlstring,true);
	myxmlhttp.send(null)
	var mystring = 'document.location = "'+obj.url+'"';
	//alert(mystring);
	setTimeout(mystring,50)
}

