var http;// = getHTTPObject();

function handleHttpResponse2() 
{ 
	if (http.readyState == 4) 
	{	
      	isWorking = false;
		/*
    	if (http.responseText.indexOf('invalid') == -1) 
		{
			var xmlDocument = http.responseXML; 

			var no = xmlDocument.getElementsByTagName('id').length;
			//var Prod_Obj=document.getElementById('vState');
		}
		*/
  	}
}
function increaseHit(iId) 
{
	var url = site_url+"updateBaneerHits.php?iBannerId=";
	var isWorking = false;
	if (!isWorking)
	{
		isWorking = true;
		url += +iId;
		//alert(url);
		if (window.XMLHttpRequest)
	  	{
	  		http=new XMLHttpRequest()
	  		http.open("GET",url, true);
		  	http.onreadystatechange=handleHttpResponse2
		  	http.send(null)
	  	}
		// code for IE
		else if (window.ActiveXObject)
	  	{
	  		http=new ActiveXObject("Microsoft.XMLHTTP")
	    	if (http)
	    	{
	    		http.open("GET",url, true);
	    		http.onreadystatechange=handleHttpResponse2
	    		http.send()
	    	}
	  	}
  	}
	//if(!displayPopup)	closeLoadingWindow(winObj);
}

