var window_feedback = ''
function Ajax(url, sTarget){
	try{
		// Firefox, Opera 8.0+, Safari
		httpRequest=new XMLHttpRequest();
		httpRequest.overrideMimeType("text/html; charset=windows-1250");
	}
	catch (e){
	    // Internet Explorer
  		try{
		    httpRequest=new ActiveXObject("Msxml2.XMLHTTP");

    	}
		catch (e){
	    	try{
		      	httpRequest=new ActiveXObject("Microsoft.XMLHTTP");

        	}
			catch (e){

			  return false;
			}
    	}
	}

			httpRequest.open("GET", url, true);
                        httpRequest.onreadystatechange= function () {processRequest(sTarget); } ;
                        httpRequest.send(null);
}

function processRequest(sTarget){

         if (httpRequest.readyState == 4)
            {
            if(httpRequest.status == 200)
               {
               var target = document.getElementById(sTarget);
               target.innerHTML = httpRequest.responseText;
               }
            else
               {
               //alert("Chyba pri nacitani stanky"+ httpRequest.status +":"+ httpRequest.statusText);
               }
            }
}

function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
		}
	}
	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curtop += obj.offsetTop
		}
	}
	return curtop;
}

