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 (LeadingZeros32279 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32279(secs) { if (secs < 0) { document.getElementById("cntdwns32279").innerHTML = FinishMessages32279; return; } DisplayStrs32279 = DisplayFormats32279.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32279 = DisplayStrs32279.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32279 = DisplayStrs32279.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32279 = DisplayStrs32279.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32279").innerHTML = DisplayStrs32279; if (CountActives32279) //alert(SetTimeOutPeriods32279); setTimeout("CountBacks32279(" + (secs+CountSteppers32279) + ")", SetTimeOutPeriods32279); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32279)=="undefined") BackColors32279 = ""; if (typeof(ForeColors32279)=="undefined") ForeColors32279= "white"; if (typeof(TargetDates32279)=="undefined") TargetDates32279 = "05/09/2025 10:00:00 PM"; if (typeof(DisplayFormats32279)=="undefined") DisplayFormats32279 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32279)=="undefined") CountActives32279 = true; if (typeof(FinishMessages32279)=="undefined") FinishMessages32279 = ""; if (typeof(CountSteppers32279)!="number") CountSteppers32279 = -1; if (typeof(LeadingZeros32279)=="undefined") LeadingZeros32279 = true; CountSteppers32279 = Math.ceil(CountSteppers32279); if (CountSteppers32279 == 0) CountActives32279 = false; var SetTimeOutPeriods32279 = (Math.abs(CountSteppers32279)-1)*1000 + 990; puti(BackColors32279, ForeColors32279); var dthens32279 = new Date(TargetDates32279); var dnows32279 = new Date("05/06/2025 11:25:44 PM"); if(CountSteppers32279>0) ddiffs32279 = new Date(dnows32279-dthens32279); else ddiffs32279 = new Date(dthens32279-dnows32279); gsecss32279 = Math.floor(ddiffs32279.valueOf()/1000); CountBacks32279(gsecss32279);