document.write("
");
var xmlhttpstatus4;
function loadXMLDoc(url)
{
xmlhttpstatus4=null;
if (window.XMLHttpRequest)
{// code for IE7, Firefox, Opera, etc.
xmlhttpstatus4=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{// code for IE6, IE5
xmlhttpstatus4=new ActiveXObject("Microsoft.XMLHTTP");
}
if (xmlhttpstatus4!=null)
{
xmlhttpstatus4.onreadystatechange=state_Change;
xmlhttpstatus4.open("GET",url,true);
xmlhttpstatus4.send(null);
}
else
{
//alert("Your browser does not support XMLHTTP.");
}
}
function state_Change()
{
if (xmlhttpstatus4.readyState==4)
{// 4 = "loaded"
if (xmlhttpstatus4.status==200)
{// 200 = "OK"
var answer = xmlhttpstatus4.responseText;
//alert(answer);
var answers=Array();
answers = answer.split(":",2);
var boxid = answers[0];
var status = answers[1];
//alert(boxid);
//alert("Boxid: " + boxid + " is " + status);
numResults++;
if(status=="up")
{
document.getElementById(boxid).innerHTML="
";
anyup=1;
}else if(status=="down")
{
document.getElementById(boxid).innerHTML="
";
}else if(status=="?")
{
document.getElementById(boxid).innerHTML="
";
}
if(numResults==totalSites && anyup==0)
{
alert("Uh-oh! It appears that all of these links are dead.\n\nIf other users encounter the same thing, this boo will be removed.");
loadXMLDoc('deadlinks.php?bh=');
}
}
else
{
document.getElementById("status4").innerHTML="
";
}
}
}
loadXMLDoc('status/Badongo.php?b=status4&u=http%3A%2F%2Fwww.badongo.com%2Ffile%2F18201767');