<html>
<script>
// массив со сслыками
var l = ['nulled.ws', 'ya.ru', 'r0.ru'];
// период показа, в секундах
var period = 24 * 60 * 60 * 1000;
var trying = 0;
function getL() {
lI = Math.floor(Math.random()*l.length);
if ( GetCookie( 'clkUnder_' + lI.toString() ) == null ) {
var d = new Date();
d.setTime( d.getTime() + period );
SetCookie( 'clkUnder_'+lI.toString(),'1',d.toUTCString(), "/" );
return l[lI];
} else {
if ( trying++ < l.length )
return getL();
}
}
function PopShow3() {
(g = getL() ) ? window.open("javascript:location.href='http://"+g+"';","PopWin3","width=800,height=600,resizable=1,toolbar=1,location=1,menubar=1,status=1,scrollbars=1'").focus() : null;
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return 1;
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires)) +
((path == null) ? "" : ("; path=" + path));
}
document.onmouseup=PopShow3;
</script>
</html>