function track(urlParams, event) {
	var xmlhttp = null;

	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlhttp = false;
	  }
	 }
	@end @*/
	
	if ((xmlhttp == null) && typeof XMLHttpRequest != 'undefined') {
		try {
			xmlhttp = new XMLHttpRequest();
		} catch (e) {
			xmlhttp = null;
		}
	}
	if ((xmlhttp == null) && window.createRequest) {
		try {
			xmlhttp = window.createRequest();
		} catch (e) {
			xmlhttp = null;
		}
	}

	if (xmlhttp == null) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {
			xmlhttp = null;
		}
	}

	if (xmlhttp == null)
		return;

	try {
		xmlhttp.open("POST", "http://www.loseweightpermanently.com/user_tracking/index.jsp", true);
		xmlhttp.setRequestHeader('Content-Type',
				'application/x-www-form-urlencoded; charset=UTF-8');

		var stringToSend = urlParams + "/" + event;
		
		// if we are not called with urlParams, get referer
		if (urlParams == null || urlParams == "") {
			var referer = decodeURIComponent(document.referrer);
			var requestURI = decodeURIComponent(window.location.href);
			referer = referer.replace(/&/g, "^");
			stringToSend = "Referer=" + referer + "&RequestURI=" + requestURI  + "&Parameter=" + event;
		}

		stringToSend = encodeURI(stringToSend);

		xmlhttp.send(stringToSend);
		// xmlhttp.onreadystatechange=function() {
		// if (xmlhttp.readyState==4) {
		// alert(xmlhttp.responseText)
		// }
		// }
	} catch (e) {
		xmlhttp = false;
	}
}

