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 (LeadingZeros34556 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34556(secs) { if (secs < 0) { document.getElementById("cntdwns34556").innerHTML = FinishMessages34556; return; } DisplayStrs34556 = DisplayFormats34556.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34556 = DisplayStrs34556.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34556 = DisplayStrs34556.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34556 = DisplayStrs34556.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34556").innerHTML = DisplayStrs34556; if (CountActives34556) //alert(SetTimeOutPeriods34556); setTimeout("CountBacks34556(" + (secs+CountSteppers34556) + ")", SetTimeOutPeriods34556); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34556)=="undefined") BackColors34556 = ""; if (typeof(ForeColors34556)=="undefined") ForeColors34556= "white"; if (typeof(TargetDates34556)=="undefined") TargetDates34556 = "12/06/2026 10:00:00 PM"; if (typeof(DisplayFormats34556)=="undefined") DisplayFormats34556 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34556)=="undefined") CountActives34556 = true; if (typeof(FinishMessages34556)=="undefined") FinishMessages34556 = ""; if (typeof(CountSteppers34556)!="number") CountSteppers34556 = -1; if (typeof(LeadingZeros34556)=="undefined") LeadingZeros34556 = true; CountSteppers34556 = Math.ceil(CountSteppers34556); if (CountSteppers34556 == 0) CountActives34556 = false; var SetTimeOutPeriods34556 = (Math.abs(CountSteppers34556)-1)*1000 + 990; puti(BackColors34556, ForeColors34556); var dthens34556 = new Date(TargetDates34556); var dnows34556 = new Date("12/04/2026 3:05:53 AM"); if(CountSteppers34556>0) ddiffs34556 = new Date(dnows34556-dthens34556); else ddiffs34556 = new Date(dthens34556-dnows34556); gsecss34556 = Math.floor(ddiffs34556.valueOf()/1000); CountBacks34556(gsecss34556);