
function adurl(obj){
	if (obj.href.indexOf("ad_url.php")>=0)
		return;
	ad_url = encodeURIComponent(obj.href);
	ad_id = ""+obj.id;
	ad_id = ad_id.substr(3);
	dest = "ad_url.php?id="+ad_id+"&url="+ad_url;
	//alert(dest);
	//return false;
	obj.href = dest;
	//window.location.href = dest;
	return true;
}

