 		function GetXmlHttpObject()
		{ 
			var objXMLHttp=null;
			if (window.XMLHttpRequest)
			{
				objXMLHttp=new XMLHttpRequest();
			}
			else if (window.ActiveXObject)
			{
				objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			return objXMLHttp;
		} 
		
		function showJax(url,letak)
		{	
			xmlHttp=GetXmlHttpObject()
			if (xmlHttp==null)
			{
				alert ("Browser does not support HTTP Request");
				return;
			} 
			
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp.open("GET",url+"&rand="+myRandom);
			xmlHttp.send(null);
			xmlHttp.onreadystatechange=function()
			{ 
				document.getElementById('busy_layer').style.visibility = 'visible';
				document.getElementById('busy_layer').style.display = 'inline';
				document.getElementById('loading-layer').style.display = 'inline';
				if(xmlHttp.readyState == 4 || xmlHttp.readyState=="complete")
					{ 
						document.getElementById('busy_layer').style.visibility = 'hidden';
						document.getElementById('busy_layer').style.display = 'none';
						document.getElementById('loading-layer').style.display = 'none'; 
						document.getElementById(letak).innerHTML='';
						document.getElementById(letak).innerHTML = xmlHttp.responseText; 
					}
				}
		}
		
		function realshowJax(url,letak)
		{
			showJax(url,letak);
			setTimeout("realshowJax('"+url+"','"+letak+"')",5000);
		}
		
		function jaxLama(url,letak){
			
		if(window.ActiveXObject){
		  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else{
		  xmlHttp = new XMLHttpRequest();
		}
		
		var myRandom=parseInt(Math.random()*99999999);  // cache buster
		xmlHttp.open("GET",url+"&rand="+myRandom,true);
		xmlHttp.send(null);
		xmlHttp.onreadystatechange=function()
			{ 
				if(xmlHttp.readyState == 4 )
				{ 
					document.getElementById(letak).innerHTML = xmlHttp.responseText;
				}
			}
		}  
		
		var objekxhr;

 
	function post(url,param,letak){
		if(window.ActiveXObject){
		  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		else{
		  xmlHttp = new XMLHttpRequest();
		}
			var myRandom=parseInt(Math.random()*99999999);  // cache buster
			xmlHttp.open("POST",url+"&rand="+myRandom, true);
			
			
			xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xmlHttp.setRequestHeader("Content-length", param.length);
			xmlHttp.setRequestHeader("Connection", "close");
			
			xmlHttp.send(param);
			xmlHttp.onreadystatechange=function()
					{ 
					
					if(xmlHttp.readyState == 4 )
						{ 
						document.getElementById(letak).innerHTML = xmlHttp.responseText;
						}
						 
						
					}
			
			
			}
			
			function ad()
			{
					alert("cscsa");
			}
