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 (LeadingZeros34419 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34419(secs) { if (secs < 0) { document.getElementById("cntdwns34419").innerHTML = FinishMessages34419; return; } DisplayStrs34419 = DisplayFormats34419.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34419 = DisplayStrs34419.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34419 = DisplayStrs34419.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34419 = DisplayStrs34419.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34419").innerHTML = DisplayStrs34419; if (CountActives34419) //alert(SetTimeOutPeriods34419); setTimeout("CountBacks34419(" + (secs+CountSteppers34419) + ")", SetTimeOutPeriods34419); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34419)=="undefined") BackColors34419 = ""; if (typeof(ForeColors34419)=="undefined") ForeColors34419= "white"; if (typeof(TargetDates34419)=="undefined") TargetDates34419 = "11/25/2026 10:00:00 PM"; if (typeof(DisplayFormats34419)=="undefined") DisplayFormats34419 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34419)=="undefined") CountActives34419 = true; if (typeof(FinishMessages34419)=="undefined") FinishMessages34419 = ""; if (typeof(CountSteppers34419)!="number") CountSteppers34419 = -1; if (typeof(LeadingZeros34419)=="undefined") LeadingZeros34419 = true; CountSteppers34419 = Math.ceil(CountSteppers34419); if (CountSteppers34419 == 0) CountActives34419 = false; var SetTimeOutPeriods34419 = (Math.abs(CountSteppers34419)-1)*1000 + 990; puti(BackColors34419, ForeColors34419); var dthens34419 = new Date(TargetDates34419); var dnows34419 = new Date("11/22/2026 1:58:46 PM"); if(CountSteppers34419>0) ddiffs34419 = new Date(dnows34419-dthens34419); else ddiffs34419 = new Date(dthens34419-dnows34419); gsecss34419 = Math.floor(ddiffs34419.valueOf()/1000); CountBacks34419(gsecss34419);