   
    
var xmlhttp = false;

	try {
	xmlhttp = new XMLHttpRequest();
	} catch(ee) {
	  try {
		 xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	  } catch(e) {
		 try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch(E) {
			xmlhttp = false;
		}
	  }
	}

function online(){

	xmlhttp.open('GET','controle.php?class=Status&method=onSetaStatus',true);
	xmlhttp.send(null);  
	intUpdate = setTimeout("online();", 20000);
}


//var intUpdate = setTimeout("online();", 20000);

