Code: <script type="text/javascript"> function calcDays() { var crteateDate = new Date("3 May 2009"); var today = new Date(); var daysApart = Math.abs(Math.round((crteateDate - today)/86400000)); alert("Сайт работает " + daysApart + "дня(дней)"); } onload=calcDays; </script>