


function trackArticle(action, arturl, headline, hash, premium){
	// create xmlHttp - multi-browser
	// netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
	//alert('called');
	var xmlHttp;
	var compatible = true;
	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) {
	        	// all else has failed - nothing else to be done
	        	compatible = false;}}} // end try
	
	if(compatible){
		
		var trackerurl = "http://www.irishtimes.com/newspaper/mostread/pagelog.cfm?action=" 
			+ action + "&arturl=" + arturl + "&md5hash=" + hash + "&headline=" + escape(headline)
      + "&premium=" + premium;
		//alert(trackerurl);
		xmlHttp.open("GET", trackerurl, true);
	    xmlHttp.send(null);
	}
} // end trackArticle


 
