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 (LeadingZeros34548 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34548(secs) { if (secs < 0) { document.getElementById("cntdwns34548").innerHTML = FinishMessages34548; return; } DisplayStrs34548 = DisplayFormats34548.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34548 = DisplayStrs34548.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34548 = DisplayStrs34548.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34548 = DisplayStrs34548.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34548").innerHTML = DisplayStrs34548; if (CountActives34548) //alert(SetTimeOutPeriods34548); setTimeout("CountBacks34548(" + (secs+CountSteppers34548) + ")", SetTimeOutPeriods34548); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34548)=="undefined") BackColors34548 = ""; if (typeof(ForeColors34548)=="undefined") ForeColors34548= "white"; if (typeof(TargetDates34548)=="undefined") TargetDates34548 = "11/30/2026 10:00:00 PM"; if (typeof(DisplayFormats34548)=="undefined") DisplayFormats34548 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34548)=="undefined") CountActives34548 = true; if (typeof(FinishMessages34548)=="undefined") FinishMessages34548 = ""; if (typeof(CountSteppers34548)!="number") CountSteppers34548 = -1; if (typeof(LeadingZeros34548)=="undefined") LeadingZeros34548 = true; CountSteppers34548 = Math.ceil(CountSteppers34548); if (CountSteppers34548 == 0) CountActives34548 = false; var SetTimeOutPeriods34548 = (Math.abs(CountSteppers34548)-1)*1000 + 990; puti(BackColors34548, ForeColors34548); var dthens34548 = new Date(TargetDates34548); var dnows34548 = new Date("11/28/2026 2:56:32 PM"); if(CountSteppers34548>0) ddiffs34548 = new Date(dnows34548-dthens34548); else ddiffs34548 = new Date(dthens34548-dnows34548); gsecss34548 = Math.floor(ddiffs34548.valueOf()/1000); CountBacks34548(gsecss34548);