var http_request;

function tipBox(kat,offs) {
	if (window.XMLHttpRequest) {
		http_request=new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		http_request=new ActiveXObject("Microsoft.XMLHTTP");
	}
	http_request.onreadystatechange=onRStCh;
	http_request.open('GET', "./?http_request=tipBox&kategorie="+kat+"&offset="+offs, true);
	http_request.send(null);
}

function onRStCh() {
        if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			document.getElementById("tipBoxText").innerHTML=http_request.responseText;
		}
	}
}
