function ad_click(href, id)
{
	$.ajax({
		type:	"GET",
		url:	"includes/ad_update_clicks.php",
		data:	{id_send: id},
		success: click_updated,
		error:  ajax_error
	});
	
	if(href != "")
		window.open(href);
}

function click_updated(data, status)
{
	//alert(data);
}

function ajax_error(xhr, reason, ex)
{
	//alert(reason);
}
