function changeStatus(thisElement, statusString) {
	window.status = statusString;
	thisElement.onmouseout = resetStatus;
	return true;
}

function resetStatus(thisElement) {
	window.status = "";
	return true;
}

function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
	var anchor = anchors[i];
	if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
	}
}
var xmlhttp
function ping(url) {
	if (window.XMLHttpRequest) {
		xmlhttp=new XMLHttpRequest()
		xmlhttp.onreadystatechange=xmlhttpChange
		xmlhttp.open("GET","/ping.php?url=" + escape(url),true)
		xmlhttp.send(null)
	}
	// code for IE
	else if (window.ActiveXObject) {
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		if (xmlhttp) {
			xmlhttp.onreadystatechange=xmlhttpChange
			xmlhttp.open("GET","/ping.php?url=" + escape(url),true)
			xmlhttp.send()
		}
	}
}

function xmlhttpChange()
{
}
window.onload = externalLinks;
