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 (LeadingZeros34311 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34311(secs) { if (secs < 0) { document.getElementById("cntdwns34311").innerHTML = FinishMessages34311; return; } DisplayStrs34311 = DisplayFormats34311.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34311 = DisplayStrs34311.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34311 = DisplayStrs34311.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34311 = DisplayStrs34311.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34311").innerHTML = DisplayStrs34311; if (CountActives34311) //alert(SetTimeOutPeriods34311); setTimeout("CountBacks34311(" + (secs+CountSteppers34311) + ")", SetTimeOutPeriods34311); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34311)=="undefined") BackColors34311 = ""; if (typeof(ForeColors34311)=="undefined") ForeColors34311= "white"; if (typeof(TargetDates34311)=="undefined") TargetDates34311 = "10/06/2026 8:00:00 AM"; if (typeof(DisplayFormats34311)=="undefined") DisplayFormats34311 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34311)=="undefined") CountActives34311 = true; if (typeof(FinishMessages34311)=="undefined") FinishMessages34311 = ""; if (typeof(CountSteppers34311)!="number") CountSteppers34311 = -1; if (typeof(LeadingZeros34311)=="undefined") LeadingZeros34311 = true; CountSteppers34311 = Math.ceil(CountSteppers34311); if (CountSteppers34311 == 0) CountActives34311 = false; var SetTimeOutPeriods34311 = (Math.abs(CountSteppers34311)-1)*1000 + 990; puti(BackColors34311, ForeColors34311); var dthens34311 = new Date(TargetDates34311); var dnows34311 = new Date("10/04/2026 11:34:19 PM"); if(CountSteppers34311>0) ddiffs34311 = new Date(dnows34311-dthens34311); else ddiffs34311 = new Date(dthens34311-dnows34311); gsecss34311 = Math.floor(ddiffs34311.valueOf()/1000); CountBacks34311(gsecss34311);