function LikeCount(id,said,sid,action){
	var pathArray = window.location.pathname.split("/");
	var path = "";
	var xmlHttp = false;
	var token = 0;
	
	if (pathArray[1].toUpperCase() == "CFM") {
		path = window.location.host;
	} else {
		path = window.location.host + '/' + pathArray[1];
	}
	try {
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e2) {
			xmlHttp = false;
		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
		xmlHttp = new XMLHttpRequest();
	}
	var Url = window.location.protocol + "//" + path + "/cfm/LikeCount.cfm?SampleApplyID="+id+"&SampleActivityID="+said+"&ScouterID="+sid+"&action="+action;
	xmlHttp.open("GET", Url, true);
	xmlHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
	xmlHttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8");
	xmlHttp.onreadystatechange = function(){
		if (xmlHttp.readyState == 4) {
			if (xmlHttp.status == 200) {
		    var response = xmlHttp.responseText;
				if (window.DOMParser) {
					parser=new DOMParser();
					xmlDoc=parser.parseFromString(response,"text/xml");
				} else { // Internet Explorer
					xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
					xmlDoc.async="false";
					xmlDoc.loadXML(response);
				}
				if (response == ""){
					document.getElementById("LikeCount").innerHTML = '0';
				}
				else{
					document.getElementById("LikeCount").innerHTML = response;
				}
			}
		}
	};
	xmlHttp.send(null);
}



