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 (LeadingZeros32722 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32722(secs) { if (secs < 0) { document.getElementById("cntdwns32722").innerHTML = FinishMessages32722; return; } DisplayStrs32722 = DisplayFormats32722.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32722 = DisplayStrs32722.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32722 = DisplayStrs32722.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32722 = DisplayStrs32722.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32722").innerHTML = DisplayStrs32722; if (CountActives32722) //alert(SetTimeOutPeriods32722); setTimeout("CountBacks32722(" + (secs+CountSteppers32722) + ")", SetTimeOutPeriods32722); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32722)=="undefined") BackColors32722 = ""; if (typeof(ForeColors32722)=="undefined") ForeColors32722= "white"; if (typeof(TargetDates32722)=="undefined") TargetDates32722 = "09/04/2025 10:00:00 PM"; if (typeof(DisplayFormats32722)=="undefined") DisplayFormats32722 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32722)=="undefined") CountActives32722 = true; if (typeof(FinishMessages32722)=="undefined") FinishMessages32722 = ""; if (typeof(CountSteppers32722)!="number") CountSteppers32722 = -1; if (typeof(LeadingZeros32722)=="undefined") LeadingZeros32722 = true; CountSteppers32722 = Math.ceil(CountSteppers32722); if (CountSteppers32722 == 0) CountActives32722 = false; var SetTimeOutPeriods32722 = (Math.abs(CountSteppers32722)-1)*1000 + 990; puti(BackColors32722, ForeColors32722); var dthens32722 = new Date(TargetDates32722); var dnows32722 = new Date("09/04/2025 4:41:52 AM"); if(CountSteppers32722>0) ddiffs32722 = new Date(dnows32722-dthens32722); else ddiffs32722 = new Date(dthens32722-dnows32722); gsecss32722 = Math.floor(ddiffs32722.valueOf()/1000); CountBacks32722(gsecss32722);