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 (LeadingZeros34484 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34484(secs) { if (secs < 0) { document.getElementById("cntdwns34484").innerHTML = FinishMessages34484; return; } DisplayStrs34484 = DisplayFormats34484.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34484 = DisplayStrs34484.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34484 = DisplayStrs34484.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34484 = DisplayStrs34484.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34484").innerHTML = DisplayStrs34484; if (CountActives34484) //alert(SetTimeOutPeriods34484); setTimeout("CountBacks34484(" + (secs+CountSteppers34484) + ")", SetTimeOutPeriods34484); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34484)=="undefined") BackColors34484 = ""; if (typeof(ForeColors34484)=="undefined") ForeColors34484= "white"; if (typeof(TargetDates34484)=="undefined") TargetDates34484 = "11/17/2026 11:00:00 PM"; if (typeof(DisplayFormats34484)=="undefined") DisplayFormats34484 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34484)=="undefined") CountActives34484 = true; if (typeof(FinishMessages34484)=="undefined") FinishMessages34484 = ""; if (typeof(CountSteppers34484)!="number") CountSteppers34484 = -1; if (typeof(LeadingZeros34484)=="undefined") LeadingZeros34484 = true; CountSteppers34484 = Math.ceil(CountSteppers34484); if (CountSteppers34484 == 0) CountActives34484 = false; var SetTimeOutPeriods34484 = (Math.abs(CountSteppers34484)-1)*1000 + 990; puti(BackColors34484, ForeColors34484); var dthens34484 = new Date(TargetDates34484); var dnows34484 = new Date("11/23/2026 10:17:25 PM"); if(CountSteppers34484>0) ddiffs34484 = new Date(dnows34484-dthens34484); else ddiffs34484 = new Date(dthens34484-dnows34484); gsecss34484 = Math.floor(ddiffs34484.valueOf()/1000); CountBacks34484(gsecss34484);