﻿function MakeAjaxCall(url)
{
	httpRequest = new XMLHttpRequest();

	if (httpRequest.overrideMimeType) 
	{
		httpRequest.overrideMimeType('text/xml');
	}

	httpRequest.onreadystatechange = function rssReceiveCallBack()
	{
		if(httpRequest.readyState == 4 )
		{
			if(httpRequest.status == 200 || httpRequest.status == 0)
			{
				var xmlDoc = httpRequest.responseXML;
			}
		}
		else
		{
		}	
	}

	httpRequest.open('GET', url, false);
	httpRequest.send(null);
}


function onLC(md5)
{
	var link = 'ClickCounter.ashx?linkHash=' + md5;
	MakeAjaxCall(link);
	return true;
}

function onLH(popupHtml, anchorId)
{
	return overlib(popupHtml, REF, anchorId,REFX, 10, REFY, 35, WRAP, BGCLASS, 'ol_popup_background');
}
