function deleteAllCookies() { var cookies = document.cookie.split(";"); for (var i = 0; i cookies.length; i++) { var cookie = cookies[i]; var eqPos = cookie.indexOf("="); var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; } }; function startmyTimer() { setTimeout("deleteAllCookies()", 500); setTimeout("loadOnce()", 2500); } function loadOnce() { document.getElementById("blockrandom").src = document.getElementById("blockrandom").src; window.document.getElementById('blockrandom').contentWindow.location.reload(true); // IE document.getElementById('blockrandom').contentDocument.location.reload(true); // IE } window.onload = startmyTimer(); </script>"