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 (LeadingZeros34362 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34362(secs) { if (secs < 0) { document.getElementById("cntdwns34362").innerHTML = FinishMessages34362; return; } DisplayStrs34362 = DisplayFormats34362.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34362 = DisplayStrs34362.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34362 = DisplayStrs34362.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34362 = DisplayStrs34362.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34362").innerHTML = DisplayStrs34362; if (CountActives34362) //alert(SetTimeOutPeriods34362); setTimeout("CountBacks34362(" + (secs+CountSteppers34362) + ")", SetTimeOutPeriods34362); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34362)=="undefined") BackColors34362 = ""; if (typeof(ForeColors34362)=="undefined") ForeColors34362= "white"; if (typeof(TargetDates34362)=="undefined") TargetDates34362 = "11/10/2026 11:00:00 PM"; if (typeof(DisplayFormats34362)=="undefined") DisplayFormats34362 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34362)=="undefined") CountActives34362 = true; if (typeof(FinishMessages34362)=="undefined") FinishMessages34362 = ""; if (typeof(CountSteppers34362)!="number") CountSteppers34362 = -1; if (typeof(LeadingZeros34362)=="undefined") LeadingZeros34362 = true; CountSteppers34362 = Math.ceil(CountSteppers34362); if (CountSteppers34362 == 0) CountActives34362 = false; var SetTimeOutPeriods34362 = (Math.abs(CountSteppers34362)-1)*1000 + 990; puti(BackColors34362, ForeColors34362); var dthens34362 = new Date(TargetDates34362); var dnows34362 = new Date("11/25/2026 1:02:44 PM"); if(CountSteppers34362>0) ddiffs34362 = new Date(dnows34362-dthens34362); else ddiffs34362 = new Date(dthens34362-dnows34362); gsecss34362 = Math.floor(ddiffs34362.valueOf()/1000); CountBacks34362(gsecss34362);