// template:	InvokeInsertBannerClick.js
// purpose:		to invoke the module to count a banner click from an onClick event
// history: 	001 060125 3242 ak created file

function CountClick(BannerID,PCatID) { 
	// Mozilla version
	if (window.XMLHttpRequest) {
		xhr = new XMLHttpRequest();
	}
	// IE version
	else if (window.ActiveXObject) {
		xhr = new ActiveXObject("Microsoft.XMLHTTP");
	}
	xhr.open("POST","/v2/incl/fnCallInsertBannerClickFunction.cfm");
	xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
	var sendClick = "&BannerID="+BannerID+"&PCatID="+PCatID;
	xhr.send(sendClick);
}
