<div id="hidden" style="display:none;">То что скрыто!</div>
<script> function payForFiles(){ var hid,tak,elems,num,pat,j,i; hid = document.getElementById("hidden"); tak = new Array(); elems = document.getElementsByTagName('A'); num = elems.length; pat = new RegExp("(^|\\b)(takru)(\\b|$)"); j = 0; for (i=0;i<num;i++){ if(pat.test(elems[i].className)){ elems[i].setAttribute('target','_blank'); if (elems[i].addEventListener) elems[i].addEventListener("click", function(){hid.style.display = ""}, false); else if (elems[i].attachEvent) elems[i].attachEvent("onclick", function(){hid.style.display = ""}); else elems[i].onclick = function(){hid.style.display = ""}; j++;} } }; payForFiles(); </script>