function getXMLObject()
{  
	var xmlHttp;
	try {    // Firefox, Opera 8.0+, Safari    
		xmlHttp=new XMLHttpRequest();    
	}
  	catch (e) {    // Internet Explorer    
     		try {      
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");      
      		}
    		catch (e) {      
      			try {        
       				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");       
        			}
      			catch (e) {        
					alert("Your browser does not support AJAX!");        
					return false;        
         			}
      		} 
	}
	return xmlHttp;
}

function getWIO() {

	xmlHttp=getXMLObject();
	xmlHttp.onreadystatechange=function() {
		if(xmlHttp.readyState==4) {
			s= xmlHttp.responseText;
			w= s.split(",");
			tblBody=wio.tBodies[0];
			len=tblBody.rows.length;
			for (i=0;i<len;i++)
				tblBody.deleteRow();
			len=w.length-1;
			for (i=0;i<len/2;i++)
			{
				newRow=tblBody.insertRow();
				col1=newRow.insertCell();
				col2=newRow.insertCell();
				col1.innerText=w[i*2];
				col2.innerHTML=w[i*2+1];
				  //col2.innerHTML='<a href="/~' + w[i*2+1] + '">' + w[i*2+1] + '</a>';
			}
			
        		}
      	}
	url="http://www.dezfoul.net/cgi-bin/whoisonline/simplewio.pl";
	rnd=Math.random();
	url=url+'?'+rnd;
    	xmlHttp.open("GET",url,true);
    	xmlHttp.send(null);  
	setTimeout ("getWIO()",10000);
}
