function update_ad_clicks(site_url,ad_id,ad_clicks,ad_link,ad_name)
{
	xmlHttp = GetXmlHttpObject();
		
	if(xmlHttp == null)
	{
		alert("Browser does not support HTTP Request");
		return;
	} 
	
	////////////////////////////////////////////////////////////////
	// send it off to the php file in the ajax_php folder
	var   url = site_url+"/modules/ads/assets/php/ads_ajax.php";
	url	= url+"?ad_id="+ ad_id;
	url	= url+"&ad_clicks="+ ad_clicks ;
	url	= url+"&sid="+Math.random();
	//prompt ("",url);
	 
	xmlHttp.onreadystatechange = function()
	{
		if(xmlHttp.readyState == 4)
		{ 			
			var result = xmlHttp.responseText;
			if (result == "Updated")
			{
				// woohoo happy day
			}			
		}  
	}   
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null); 
}
