function statusSend(uri) {
	var http_zadost = false;
	if (window.XMLHttpRequest) { // Mozilla, Safari, Opera, Konqueror...
		http_zadost = new XMLHttpRequest();
		if (http_zadost.overrideMimeType) {
		    http_zadost.overrideMimeType('text/xml');
		}
	} else if (window.ActiveXObject) { // Internet Explorer
		try {
			http_zadost = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				http_zadost = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
			}
	}
	if (!http_zadost) {
		return false;
	}
	http_zadost.open('GET', uri, true);
	http_zadost.send(null);
	return true;
}

function statusTick(id)
{
	var rnd = Math.floor(Math.random()*90000000+10000000);
	statusSend(juri + 'service/status.php?id=' + id + '&rnd=' + rnd);
	setTimeout(function(){statusTick(id)}, 30000);
}

function statusStart(id)
{
	setTimeout(function(){statusTick(id)}, 30000);
}

