var ad_idArr=new String()
var t

function ad_statistic(ad_id)
{
	if (ad_idArr!="")
		ad_idArr+=",";
	ad_idArr+=ad_id;
	clearTimeout ( t )	
	t=setTimeout("set_number_of_exp()",5000)
}

function set_number_of_exp()
{
	var xmlHttp;
		var sendStr = "ad_id=" + ad_idArr;
		ad_idArr=""
		try
		{  // Firefox, Opera 8.0+, Safari  
			xmlHttp=new XMLHttpRequest();
		}
		catch (e)
		{  // Internet Explorer  
			try
			{    
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");    
			}
			catch (e)
			{    
				try
				{      
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");      
				}
				catch (e)
				{      
					//alert("Your browser does not support AJAX!");      
					return false;      
				}    
			}  
		}
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState==4)
			{
				returnVal=xmlHttp.responseText;
				
			}
		}
		  xmlHttp.open("POST","/upload/components/ads/add_number_of_expXMLHTTP2.asp",true,"","");
		  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=windows-1255");
		
		  xmlHttp.send(sendStr); 
	
}
//document.onload(alert(ad_idArr))
