var zagruz2 = "<img src='../../images/ajax-loader2.gif'>"; 

var numb = '';	  

	  

	  function handleHttpResponse2() {	

	   document.getElementById('prop'+numb).innerHTML = zagruz2;

		if (http.readyState == 4) {

			  if(http.status == 200) {

			  	var results=http.responseText;

			  document.getElementById('prop'+numb).innerHTML = results;

			  }

  			}

		}
	


	    function requestProp(cat,uin) { 

			 	if (cat != 0) {

			//var countr = document.getElementById("city").value;

			

			 var str='../../properties.php?property='+escape(cat)+'&uin='+escape(uin);
			 numb=cat;

			   	}


    		 http.open("GET", str, true);

			

			http.onreadystatechange = handleHttpResponse2;

			http.send(null);

		        }

				

function getHTTPObject() {

  var xmlhttp;

 

  if(window.XMLHttpRequest){

    xmlhttp = new XMLHttpRequest();

  }

  else if (window.ActiveXObject){

    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

    if (!xmlhttp){

        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");

    }

    

}

  return xmlhttp;



  

}

var http = getHTTPObject(); // We create the HTTP Object

