var CD = 6; var CM = 5; var CY = 2017; var Ch = 14; var Cmin = 45; var SD = 24; var SM = 11; var SY = 2017; var Sh = 19; var Smin = 37; var J = new Date(); var SP = new Date(SY, SM-1, SD, Sh, Smin, 00); var TG = SP.getTime() - J.getTime(); function CountdownAnzeigen() { var J = new Date(); var Countdown = new Date(CY, CM-1, CD, Ch, Cmin, 00);var MS = Countdown.getTime()-J.getTime()-TG;var Re = Math.floor(MS/1000); var LI = "/dtm/saison/termin.html"; var RE = "Hockenheim"; var SE = "DTM-Saisonauftakt"; var TXT = "" + RE + ": ";if(Re>=600){if(Re>=86400){var D = Math.floor(Re/86400);Re = Re-D*86400;if (D == 1) { TXT += D + " Tag und ";}else{TXT += D + " Tage und ";}}if(Re>=3600){var HH = Math.floor(Re/3600); Re = Re-HH*3600;TXT += HH + ":";}else{TXT += "00:";}if(Re>=60){var Min = Math.floor(Re/60);Re = Re-Min*60;if(Min<10){TXT += "0";}TXT += Min + ":";}else{TXT += "00:";}if(Re<10){TXT += "0";}TXT += Re + " Stunden bis zum " + SE + ""; document.getElementById('Countdown').innerHTML = TXT;window.setTimeout("CountdownAnzeigen()", 3000);}}