document.write ('<img src="about:blank" id="cnt" width="1" height="1" border="0">');
var c=document.getElementById ('cnt'); 
var re = new RegExp("^"+location.protocol+"//"+location.host,"ig");

function go (e) {

	el = e.srcElement;
	while (el) {
		if (el.tagName == "A") {
		        if (!re.exec(el.href)) {
		        	c.src = "about:blank"; c.src="http://dbqp.nxn.ru/cnt?out="+el.href+"&location="+location.href+"&rnd="+Math.random (1,1000);
				var i=0;while (i<10000) {if (3==4) break; i++;}
			}
			break;
		} 
		el = el.parentElement
	}

}

if (c)
	res = document.attachEvent ('onclick', go);
