function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros33013 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33013(secs) { if (secs < 0) { document.getElementById("cntdwns33013").innerHTML = FinishMessages33013; return; } DisplayStrs33013 = DisplayFormats33013.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33013 = DisplayStrs33013.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33013 = DisplayStrs33013.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33013 = DisplayStrs33013.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33013").innerHTML = DisplayStrs33013; if (CountActives33013) //alert(SetTimeOutPeriods33013); setTimeout("CountBacks33013(" + (secs+CountSteppers33013) + ")", SetTimeOutPeriods33013); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33013)=="undefined") BackColors33013 = ""; if (typeof(ForeColors33013)=="undefined") ForeColors33013= "white"; if (typeof(TargetDates33013)=="undefined") TargetDates33013 = "12/06/2025 9:00:00 PM"; if (typeof(DisplayFormats33013)=="undefined") DisplayFormats33013 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33013)=="undefined") CountActives33013 = true; if (typeof(FinishMessages33013)=="undefined") FinishMessages33013 = ""; if (typeof(CountSteppers33013)!="number") CountSteppers33013 = -1; if (typeof(LeadingZeros33013)=="undefined") LeadingZeros33013 = true; CountSteppers33013 = Math.ceil(CountSteppers33013); if (CountSteppers33013 == 0) CountActives33013 = false; var SetTimeOutPeriods33013 = (Math.abs(CountSteppers33013)-1)*1000 + 990; puti(BackColors33013, ForeColors33013); var dthens33013 = new Date(TargetDates33013); var dnows33013 = new Date("12/03/2025 1:32:48 PM"); if(CountSteppers33013>0) ddiffs33013 = new Date(dnows33013-dthens33013); else ddiffs33013 = new Date(dthens33013-dnows33013); gsecss33013 = Math.floor(ddiffs33013.valueOf()/1000); CountBacks33013(gsecss33013);