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 (LeadingZeros32365 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32365(secs) { if (secs < 0) { document.getElementById("cntdwns32365").innerHTML = FinishMessages32365; return; } DisplayStrs32365 = DisplayFormats32365.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32365 = DisplayStrs32365.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32365 = DisplayStrs32365.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32365 = DisplayStrs32365.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32365").innerHTML = DisplayStrs32365; if (CountActives32365) //alert(SetTimeOutPeriods32365); setTimeout("CountBacks32365(" + (secs+CountSteppers32365) + ")", SetTimeOutPeriods32365); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32365)=="undefined") BackColors32365 = ""; if (typeof(ForeColors32365)=="undefined") ForeColors32365= "white"; if (typeof(TargetDates32365)=="undefined") TargetDates32365 = "06/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32365)=="undefined") DisplayFormats32365 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32365)=="undefined") CountActives32365 = true; if (typeof(FinishMessages32365)=="undefined") FinishMessages32365 = ""; if (typeof(CountSteppers32365)!="number") CountSteppers32365 = -1; if (typeof(LeadingZeros32365)=="undefined") LeadingZeros32365 = true; CountSteppers32365 = Math.ceil(CountSteppers32365); if (CountSteppers32365 == 0) CountActives32365 = false; var SetTimeOutPeriods32365 = (Math.abs(CountSteppers32365)-1)*1000 + 990; puti(BackColors32365, ForeColors32365); var dthens32365 = new Date(TargetDates32365); var dnows32365 = new Date("06/03/2025 8:30:45 AM"); if(CountSteppers32365>0) ddiffs32365 = new Date(dnows32365-dthens32365); else ddiffs32365 = new Date(dthens32365-dnows32365); gsecss32365 = Math.floor(ddiffs32365.valueOf()/1000); CountBacks32365(gsecss32365);