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