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 (LeadingZeros34381 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34381(secs) { if (secs < 0) { document.getElementById("cntdwns34381").innerHTML = FinishMessages34381; return; } DisplayStrs34381 = DisplayFormats34381.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34381 = DisplayStrs34381.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34381 = DisplayStrs34381.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34381 = DisplayStrs34381.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34381").innerHTML = DisplayStrs34381; if (CountActives34381) //alert(SetTimeOutPeriods34381); setTimeout("CountBacks34381(" + (secs+CountSteppers34381) + ")", SetTimeOutPeriods34381); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34381)=="undefined") BackColors34381 = ""; if (typeof(ForeColors34381)=="undefined") ForeColors34381= "white"; if (typeof(TargetDates34381)=="undefined") TargetDates34381 = "11/06/2026 12:00:00 PM"; if (typeof(DisplayFormats34381)=="undefined") DisplayFormats34381 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34381)=="undefined") CountActives34381 = true; if (typeof(FinishMessages34381)=="undefined") FinishMessages34381 = ""; if (typeof(CountSteppers34381)!="number") CountSteppers34381 = -1; if (typeof(LeadingZeros34381)=="undefined") LeadingZeros34381 = true; CountSteppers34381 = Math.ceil(CountSteppers34381); if (CountSteppers34381 == 0) CountActives34381 = false; var SetTimeOutPeriods34381 = (Math.abs(CountSteppers34381)-1)*1000 + 990; puti(BackColors34381, ForeColors34381); var dthens34381 = new Date(TargetDates34381); var dnows34381 = new Date("11/03/2026 3:25:06 PM"); if(CountSteppers34381>0) ddiffs34381 = new Date(dnows34381-dthens34381); else ddiffs34381 = new Date(dthens34381-dnows34381); gsecss34381 = Math.floor(ddiffs34381.valueOf()/1000); CountBacks34381(gsecss34381);