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 (LeadingZeros34412 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34412(secs) { if (secs < 0) { document.getElementById("cntdwns34412").innerHTML = FinishMessages34412; return; } DisplayStrs34412 = DisplayFormats34412.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34412 = DisplayStrs34412.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34412 = DisplayStrs34412.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34412 = DisplayStrs34412.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34412").innerHTML = DisplayStrs34412; if (CountActives34412) //alert(SetTimeOutPeriods34412); setTimeout("CountBacks34412(" + (secs+CountSteppers34412) + ")", SetTimeOutPeriods34412); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34412)=="undefined") BackColors34412 = ""; if (typeof(ForeColors34412)=="undefined") ForeColors34412= "white"; if (typeof(TargetDates34412)=="undefined") TargetDates34412 = "11/08/2026 11:00:00 PM"; if (typeof(DisplayFormats34412)=="undefined") DisplayFormats34412 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34412)=="undefined") CountActives34412 = true; if (typeof(FinishMessages34412)=="undefined") FinishMessages34412 = ""; if (typeof(CountSteppers34412)!="number") CountSteppers34412 = -1; if (typeof(LeadingZeros34412)=="undefined") LeadingZeros34412 = true; CountSteppers34412 = Math.ceil(CountSteppers34412); if (CountSteppers34412 == 0) CountActives34412 = false; var SetTimeOutPeriods34412 = (Math.abs(CountSteppers34412)-1)*1000 + 990; puti(BackColors34412, ForeColors34412); var dthens34412 = new Date(TargetDates34412); var dnows34412 = new Date("11/05/2026 2:49:48 PM"); if(CountSteppers34412>0) ddiffs34412 = new Date(dnows34412-dthens34412); else ddiffs34412 = new Date(dthens34412-dnows34412); gsecss34412 = Math.floor(ddiffs34412.valueOf()/1000); CountBacks34412(gsecss34412);