function counter_code(n,width,height)
{
	var i = (n == "")?"":"&i="+n;
        var c = (n != 5) ? "" : "&c=000000";
	var str = '<!-- NoTaTkI --><!-- To change color of the 1 pixel \'invisible\' counter to page background find substring &c=000000 and replace 000000 with needed color --><a href="http://notatki.org.ua" id="nttk_cntr"><script>Nd=document;Nw=window;Ns=screen;Nt=new Date();try {Nl=escape(Nw.location.hostname);Nw=Ns.width;Nh=Ns.height;Nr=escape(Nd.referrer.replace("/","*"));Nd.getElementById("nttk_cntr").href += "catalog.php?host="+Nl; } catch (e) {} Nd.write("<img src=\'http://notatki.org.ua/counter.php?t="+Nt.getTime()+"'+i+c+'&l="+Nl+"&h="+Nh+"&w="+Nw+"&r="+Nr+"\' alt=\'notatki.org.ua\' width=\''+width+'\' height=\''+height+'\' border=\'0\'/>");</script></a><!-- END NoTaTkI -->';
	document.getElementById("counter_code").value = str;
}
