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 (LeadingZeros34546 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34546(secs) { if (secs < 0) { document.getElementById("cntdwns34546").innerHTML = FinishMessages34546; return; } DisplayStrs34546 = DisplayFormats34546.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34546 = DisplayStrs34546.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34546 = DisplayStrs34546.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34546 = DisplayStrs34546.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34546").innerHTML = DisplayStrs34546; if (CountActives34546) //alert(SetTimeOutPeriods34546); setTimeout("CountBacks34546(" + (secs+CountSteppers34546) + ")", SetTimeOutPeriods34546); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34546)=="undefined") BackColors34546 = ""; if (typeof(ForeColors34546)=="undefined") ForeColors34546= "white"; if (typeof(TargetDates34546)=="undefined") TargetDates34546 = "12/03/2026 10:00:00 PM"; if (typeof(DisplayFormats34546)=="undefined") DisplayFormats34546 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34546)=="undefined") CountActives34546 = true; if (typeof(FinishMessages34546)=="undefined") FinishMessages34546 = ""; if (typeof(CountSteppers34546)!="number") CountSteppers34546 = -1; if (typeof(LeadingZeros34546)=="undefined") LeadingZeros34546 = true; CountSteppers34546 = Math.ceil(CountSteppers34546); if (CountSteppers34546 == 0) CountActives34546 = false; var SetTimeOutPeriods34546 = (Math.abs(CountSteppers34546)-1)*1000 + 990; puti(BackColors34546, ForeColors34546); var dthens34546 = new Date(TargetDates34546); var dnows34546 = new Date("12/01/2026 9:55:50 PM"); if(CountSteppers34546>0) ddiffs34546 = new Date(dnows34546-dthens34546); else ddiffs34546 = new Date(dthens34546-dnows34546); gsecss34546 = Math.floor(ddiffs34546.valueOf()/1000); CountBacks34546(gsecss34546);