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 (LeadingZeros34372 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34372(secs) { if (secs < 0) { document.getElementById("cntdwns34372").innerHTML = FinishMessages34372; return; } DisplayStrs34372 = DisplayFormats34372.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34372 = DisplayStrs34372.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34372 = DisplayStrs34372.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34372 = DisplayStrs34372.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34372").innerHTML = DisplayStrs34372; if (CountActives34372) //alert(SetTimeOutPeriods34372); setTimeout("CountBacks34372(" + (secs+CountSteppers34372) + ")", SetTimeOutPeriods34372); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34372)=="undefined") BackColors34372 = ""; if (typeof(ForeColors34372)=="undefined") ForeColors34372= "white"; if (typeof(TargetDates34372)=="undefined") TargetDates34372 = "11/04/2026 11:00:00 PM"; if (typeof(DisplayFormats34372)=="undefined") DisplayFormats34372 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34372)=="undefined") CountActives34372 = true; if (typeof(FinishMessages34372)=="undefined") FinishMessages34372 = ""; if (typeof(CountSteppers34372)!="number") CountSteppers34372 = -1; if (typeof(LeadingZeros34372)=="undefined") LeadingZeros34372 = true; CountSteppers34372 = Math.ceil(CountSteppers34372); if (CountSteppers34372 == 0) CountActives34372 = false; var SetTimeOutPeriods34372 = (Math.abs(CountSteppers34372)-1)*1000 + 990; puti(BackColors34372, ForeColors34372); var dthens34372 = new Date(TargetDates34372); var dnows34372 = new Date("11/03/2026 6:39:38 PM"); if(CountSteppers34372>0) ddiffs34372 = new Date(dnows34372-dthens34372); else ddiffs34372 = new Date(dthens34372-dnows34372); gsecss34372 = Math.floor(ddiffs34372.valueOf()/1000); CountBacks34372(gsecss34372);