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 (LeadingZeros32560 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32560(secs) { if (secs < 0) { document.getElementById("cntdwns32560").innerHTML = FinishMessages32560; return; } DisplayStrs32560 = DisplayFormats32560.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32560 = DisplayStrs32560.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32560 = DisplayStrs32560.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32560 = DisplayStrs32560.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32560").innerHTML = DisplayStrs32560; if (CountActives32560) //alert(SetTimeOutPeriods32560); setTimeout("CountBacks32560(" + (secs+CountSteppers32560) + ")", SetTimeOutPeriods32560); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32560)=="undefined") BackColors32560 = ""; if (typeof(ForeColors32560)=="undefined") ForeColors32560= "white"; if (typeof(TargetDates32560)=="undefined") TargetDates32560 = "07/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32560)=="undefined") DisplayFormats32560 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32560)=="undefined") CountActives32560 = true; if (typeof(FinishMessages32560)=="undefined") FinishMessages32560 = ""; if (typeof(CountSteppers32560)!="number") CountSteppers32560 = -1; if (typeof(LeadingZeros32560)=="undefined") LeadingZeros32560 = true; CountSteppers32560 = Math.ceil(CountSteppers32560); if (CountSteppers32560 == 0) CountActives32560 = false; var SetTimeOutPeriods32560 = (Math.abs(CountSteppers32560)-1)*1000 + 990; puti(BackColors32560, ForeColors32560); var dthens32560 = new Date(TargetDates32560); var dnows32560 = new Date("07/09/2025 5:47:34 PM"); if(CountSteppers32560>0) ddiffs32560 = new Date(dnows32560-dthens32560); else ddiffs32560 = new Date(dthens32560-dnows32560); gsecss32560 = Math.floor(ddiffs32560.valueOf()/1000); CountBacks32560(gsecss32560);