document.write(""); var xmlhttpstatus0; function loadXMLDoc(url) { xmlhttpstatus0=null; if (window.XMLHttpRequest) {// code for IE7, Firefox, Opera, etc. xmlhttpstatus0=new XMLHttpRequest(); } else if (window.ActiveXObject) {// code for IE6, IE5 xmlhttpstatus0=new ActiveXObject("Microsoft.XMLHTTP"); } if (xmlhttpstatus0!=null) { xmlhttpstatus0.onreadystatechange=state_Change; xmlhttpstatus0.open("GET",url,true); xmlhttpstatus0.send(null); } else { //alert("Your browser does not support XMLHTTP."); } } function state_Change() { if (xmlhttpstatus0.readyState==4) {// 4 = "loaded" if (xmlhttpstatus0.status==200) {// 200 = "OK" var answer = xmlhttpstatus0.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("status0").innerHTML=""; } } } loadXMLDoc('status/Depositfiles.php?b=status0&u=http%3A%2F%2Fdepositfiles.com%2Ffiles%2Feypwiqkvb');