HosUtil = {}
HosUtil.ping = function(a) {
	var url = a.getAttribute("ping");
	// if(console) console.log(url);
	if(url) {
		xhr = (function() { try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }	catch(e) {}
			    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch(e) {}
			    try { return new ActiveXObject("Msxml2.XMLHTTP"); }	catch(e) {}
			    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {}
				try { return new XMLHttpRequest(); } catch(e) {}
			    throw new Error("This browser does not support XMLHttpRequest.");
		})();
		// if(console) console.log(xhr);
		xhr.open("HEAD", url, false);
		// if(console) console.log(xhr);
		xhr.send(null);
	}
}

