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 (LeadingZeros32334 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32334(secs) { if (secs < 0) { document.getElementById("cntdwns32334").innerHTML = FinishMessages32334; return; } DisplayStrs32334 = DisplayFormats32334.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32334 = DisplayStrs32334.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32334 = DisplayStrs32334.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32334 = DisplayStrs32334.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32334").innerHTML = DisplayStrs32334; if (CountActives32334) //alert(SetTimeOutPeriods32334); setTimeout("CountBacks32334(" + (secs+CountSteppers32334) + ")", SetTimeOutPeriods32334); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32334)=="undefined") BackColors32334 = ""; if (typeof(ForeColors32334)=="undefined") ForeColors32334= "white"; if (typeof(TargetDates32334)=="undefined") TargetDates32334 = "06/01/2025 10:00:00 PM"; if (typeof(DisplayFormats32334)=="undefined") DisplayFormats32334 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32334)=="undefined") CountActives32334 = true; if (typeof(FinishMessages32334)=="undefined") FinishMessages32334 = ""; if (typeof(CountSteppers32334)!="number") CountSteppers32334 = -1; if (typeof(LeadingZeros32334)=="undefined") LeadingZeros32334 = true; CountSteppers32334 = Math.ceil(CountSteppers32334); if (CountSteppers32334 == 0) CountActives32334 = false; var SetTimeOutPeriods32334 = (Math.abs(CountSteppers32334)-1)*1000 + 990; puti(BackColors32334, ForeColors32334); var dthens32334 = new Date(TargetDates32334); var dnows32334 = new Date("05/31/2025 10:18:52 AM"); if(CountSteppers32334>0) ddiffs32334 = new Date(dnows32334-dthens32334); else ddiffs32334 = new Date(dthens32334-dnows32334); gsecss32334 = Math.floor(ddiffs32334.valueOf()/1000); CountBacks32334(gsecss32334);