function ajaxGo(cil,url,base) {
	 var xmlhttp = (window.XMLHttpRequest ? new XMLHttpRequest : (window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : false)); 
	 if (!xmlhttp) { return false; } 
	// alert("ajax.php?cil="+cil+"&url="+url+"&base="+base);
	 xmlhttp.open("GET","ajax.php?cil="+cil+"&url="+url+"&base="+base);
 	 xmlhttp.onreadystatechange = function() { 
 	 	ajaxPrijem(xmlhttp,url); 
 	 };
 	 xmlhttp.send("");
 	 if (this!=window) return false;
 	 
}

function ajaxPrijem(xmlhttp,url) {
	if (xmlhttp.readyState!=4) return;
	data=xmlhttp.responseXML;
	odpovedi=data.getElementsByTagName('ajax');
	var i,el;

	for (i=0;i<odpovedi.length;i++) {
		idDivu=odpovedi[i].getAttribute("div");
		el=document.getElementById(idDivu);
		src=odpovedi[i];
		if (el!=undefined) {
			napis="";
			for (j=0;j<src.childNodes.length;j++) {
				napis+=src.childNodes[j].firstChild.data;
			}
			el.innerHTML=napis;
		}
	}
	
	window.location.hash='ajaxurl='+url;
}

if (window.location.hash.length>9 && window.location.hash.substring(0,9)=="#ajaxurl=") {
	window.location=decodeURIComponent(window.location.hash.substring(9));
}

