
	function init() {
		var xmlhttp=false;
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
			xmlhttp = new XMLHttpRequest();
		}
		if (window.XMLHttpRequest) {
			return new XMLHttpRequest();
		} else if (window.ActiveXObject) {
			return new ActiveXObject('Microsoft.XMLHTTP')
		} else {
		 console.log("Could not create XMLHttpRequest on this browser");
		 return null;
		}

		return xmlhttp;
	}
	
	function countExternal(url){
		var xmlhttp=init();
		
		xmlhttp.open('GET', '?ajax=count&url=' + url, true);
		
		xmlhttp.onreadystatechange = function() {
			if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
				if (xmlhttp.responseText == "403"){
					return;
				}
				var response = xmlhttp.responseText;
			}
		};
		xmlhttp.send(null);
	}
