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 (LeadingZeros33119 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33119(secs) { if (secs < 0) { document.getElementById("cntdwns33119").innerHTML = FinishMessages33119; return; } DisplayStrs33119 = DisplayFormats33119.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33119 = DisplayStrs33119.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33119 = DisplayStrs33119.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33119 = DisplayStrs33119.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33119").innerHTML = DisplayStrs33119; if (CountActives33119) //alert(SetTimeOutPeriods33119); setTimeout("CountBacks33119(" + (secs+CountSteppers33119) + ")", SetTimeOutPeriods33119); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33119)=="undefined") BackColors33119 = ""; if (typeof(ForeColors33119)=="undefined") ForeColors33119= "white"; if (typeof(TargetDates33119)=="undefined") TargetDates33119 = "12/06/2025 10:00:00 PM"; if (typeof(DisplayFormats33119)=="undefined") DisplayFormats33119 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33119)=="undefined") CountActives33119 = true; if (typeof(FinishMessages33119)=="undefined") FinishMessages33119 = ""; if (typeof(CountSteppers33119)!="number") CountSteppers33119 = -1; if (typeof(LeadingZeros33119)=="undefined") LeadingZeros33119 = true; CountSteppers33119 = Math.ceil(CountSteppers33119); if (CountSteppers33119 == 0) CountActives33119 = false; var SetTimeOutPeriods33119 = (Math.abs(CountSteppers33119)-1)*1000 + 990; puti(BackColors33119, ForeColors33119); var dthens33119 = new Date(TargetDates33119); var dnows33119 = new Date("12/04/2025 12:37:02 PM"); if(CountSteppers33119>0) ddiffs33119 = new Date(dnows33119-dthens33119); else ddiffs33119 = new Date(dthens33119-dnows33119); gsecss33119 = Math.floor(ddiffs33119.valueOf()/1000); CountBacks33119(gsecss33119);