function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } function SetCookie(cookieName,cookieValue,nDays){ var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*12*nDays); document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString(); } cook = getCookie("hostmirp_728"); cook = cook + 1; //alert(cook); if((cook!=1) && (cook!=11) && (cook!=111)) { SetCookie("hostmir_728", "yes", "1"); } SetCookie("hostmirp_728", cook, "1"); if(cook == 111) { SetCookie("hostmir_728", "yes", "1"); } cookie = getCookie("hostmir_728"); //alert(cookie); if(cookie!='yes') { SetCookie("hostmir_728", "yes", "1"); cookie = getCookie("hostmir_728"); } if(cookie!='yes') { function hostmir_click_728() { SetCookie("hostmir_728", "yes", "1"); urlclick_728='http://hostmir.net/click.php?site=9&url=&type=728f'; this.window.focus(); this.window.open(urlclick_728); this.window.focus(); } document.write(''); } if(cookie=='yes') { document.write(unescape('%3Cscript%20type%3D%22text%2Fjavascript%22%3E%0D%0Avar%20__rt%3D%20Math.round%28Math.random%28%29%20%2A%20100000%29%3B%0D%0Adocument.write%28%27%3Cscr%27%2B%27ipt%20language%3D%22javascript%22%20type%3D%22text%2Fjavascript%22%20src%3D%22http%3A%2F%2Fid771.luxup.ru%2Fshow%2F5852%2F%3Fdiv%3Dlx_5852%26rt%3D%27%2B__rt%2B%27%26r%3D%27%2Bescape%28document.referrer%29%2B%27%22%3E%3C%27%2B%27%2Fscr%27%2B%27ipt%3E%27%29%3B%0D%0A%3C%2Fscript%3E')); }