function show_zijkant() {
var url = "/zijkant_online.php";



xmlHttp2 = GetXmlHttpObject();
xmlHttp2.onreadystatechange = function() { getresponse2(xmlHttp2, "zijkant_online"); };
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function getresponse2(xmlHttp, Cfield) {

if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {

 if ( xmlHttp.status == 200 ) {

 document.getElementById( Cfield ).innerHTML = xmlHttp.responseText;

 
} else alert ( xmlHttp.statusText );

}

}


var state2 = 'block';

function toggleonline(layer_ref) {

if (state2 == 'block') {
state2 = 'none';
document.getElementById("wol").innerHTML = "Ga online +";
}
else {
state2 = 'block';
document.getElementById("wol").innerHTML = "Ga offline -";
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state2");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state2;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state2;
}
} 


function Actie2(act) {

var url = "/zijkant_online.php?act=" + act;

toggleonline('woningonline');

xmlHttp2 = GetXmlHttpObject();
xmlHttp2.onreadystatechange = function() { getresponse2(xmlHttp2, "zijkant_online"); };
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );

}


setInterval("show_zijkant()",30000);
