/**
* Name: ClickLogger.js
* Description: 
*		Contains LogClick, a function to allow Click Through Tracking from the client.
*		Eg. <a href="http://www.google.com" onclick="LogClick(this, 'some addl info to be logged');">
*		
*		This file should be added to the site template(s): 
*		<SCRIPT SRC="#Request.CurrentRootURL#Common/ClientSideScripts/ClickLogger.js" TYPE="text/javascript">
*		
*
*  Date       Author             	Description
* ----------  ---------------- 		----------------------
* 04/14/2009  Dan Buchal	       	Created
*
*/

function LogClick( linkObject, addlInfo ){	
	// Set optional parameters
	if ( addlInfo === undefined ) {
		addlInfo = '';
	}
	
	// Create an image object to "ping" the click logging.
	// While the target CFM file will NEVER return a
	// valid image file, we don't really care... we just
	// want to trigger the CFM page itself.
	var imgPing = new Image();

	imgPing.src = ("/CustomTags/RecordClickActivityProxy.cfm?txTargetURL=" + linkObject.href + "&txAdditionalInfo=" + addlInfo );

	return;
}