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 (LeadingZeros32252 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32252(secs) { if (secs < 0) { document.getElementById("cntdwns32252").innerHTML = FinishMessages32252; return; } DisplayStrs32252 = DisplayFormats32252.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32252 = DisplayStrs32252.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32252 = DisplayStrs32252.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32252 = DisplayStrs32252.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32252").innerHTML = DisplayStrs32252; if (CountActives32252) //alert(SetTimeOutPeriods32252); setTimeout("CountBacks32252(" + (secs+CountSteppers32252) + ")", SetTimeOutPeriods32252); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32252)=="undefined") BackColors32252 = ""; if (typeof(ForeColors32252)=="undefined") ForeColors32252= "white"; if (typeof(TargetDates32252)=="undefined") TargetDates32252 = "05/10/2025 10:00:00 PM"; if (typeof(DisplayFormats32252)=="undefined") DisplayFormats32252 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32252)=="undefined") CountActives32252 = true; if (typeof(FinishMessages32252)=="undefined") FinishMessages32252 = ""; if (typeof(CountSteppers32252)!="number") CountSteppers32252 = -1; if (typeof(LeadingZeros32252)=="undefined") LeadingZeros32252 = true; CountSteppers32252 = Math.ceil(CountSteppers32252); if (CountSteppers32252 == 0) CountActives32252 = false; var SetTimeOutPeriods32252 = (Math.abs(CountSteppers32252)-1)*1000 + 990; puti(BackColors32252, ForeColors32252); var dthens32252 = new Date(TargetDates32252); var dnows32252 = new Date("05/07/2025 9:27:57 PM"); if(CountSteppers32252>0) ddiffs32252 = new Date(dnows32252-dthens32252); else ddiffs32252 = new Date(dthens32252-dnows32252); gsecss32252 = Math.floor(ddiffs32252.valueOf()/1000); CountBacks32252(gsecss32252);