function BWWtrackLinkHTML(objLinkElement) {
 return BWWtrackLink(objLinkElement.href, objLinkElement.id, objLinkElement.target);
}

function BWWtrackLink(strPageTo, strLinkID, strLinkTarget) {
 var objHTTPReq = false;
 var boolNativeObj = false;
 var boolBlankTarget = false;
 
 if (!strLinkID) {
  strLinkID = "";
 }
 
 if (strLinkTarget && strLinkTarget == "_blank") {
  boolBlankTarget = true;
 }
 
 var strPageFrom = document.location.href;
 var intIndex = strPageFrom.indexOf("#");
 if (intIndex != -1) {
  strPageFrom = strPageFrom.substring(0, intIndex);
 }
 intIndex = strPageFrom.indexOf("?");
 if (intIndex != -1) {
  strPageFrom = strPageFrom.substring(0, intIndex);
 } 
 /*
 intIndex = strPageFrom.indexOf(";jessionid=");
 if (intIndex != -1) {
  strPageFrom = strPageFrom.substring(0, intIndex);
 }
 */
 
 var strAnchor = document.location.hash;
 if (strAnchor) {
  strAnchor = strAnchor.substring(1, strAnchor.length);
 }
 var strQueryString = document.location.search;
 if (strQueryString) {
  strQueryString = strQueryString.substring(1, strQueryString.length);
 }
 
 // branch for native XMLHttpRequest object
 if (window.XMLHttpRequest) {
 	try {
			objHTTPReq = new XMLHttpRequest();
   boolNativeObj = true;
  } catch (e) {
			objHTTPReq = false;
  }
 // branch for IE/Windows ActiveX version
 } else if (window.ActiveXObject) {
 	try {
   objHTTPReq = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
  	try {
  		objHTTPReq = new ActiveXObject("Microsoft.XMLHTTP");
   } catch (e) {
   	objHTTPReq = false;
   }
		}
 }
 
	if (objHTTPReq) {
  var boolAsynchronous = true;
  if (boolNativeObj && !boolBlankTarget) {
   boolAsynchronous = false;
  }
  
  strPageTo = encodeURIComponent(strPageTo);
  strPageFrom = encodeURIComponent(strPageFrom);
  strQueryString = encodeURIComponent(strQueryString);
  strAnchor = encodeURIComponent(strAnchor);
  strLinkID = encodeURIComponent(strLinkID);
  
	objHTTPReq.open("POST", "/log/link_tracker.asp", boolAsynchronous);
  objHTTPReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  objHTTPReq.send("page_to=" + strPageTo + "&page_from=" + strPageFrom + "&query_string=" + strQueryString + "&anchor=" + strAnchor + "&link_id=" + strLinkID);
	}
 
 return true;
}