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 (LeadingZeros32452 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32452(secs) { if (secs < 0) { document.getElementById("cntdwns32452").innerHTML = FinishMessages32452; return; } DisplayStrs32452 = DisplayFormats32452.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32452 = DisplayStrs32452.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32452 = DisplayStrs32452.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32452 = DisplayStrs32452.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32452").innerHTML = DisplayStrs32452; if (CountActives32452) //alert(SetTimeOutPeriods32452); setTimeout("CountBacks32452(" + (secs+CountSteppers32452) + ")", SetTimeOutPeriods32452); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32452)=="undefined") BackColors32452 = ""; if (typeof(ForeColors32452)=="undefined") ForeColors32452= "white"; if (typeof(TargetDates32452)=="undefined") TargetDates32452 = "06/06/2025 10:00:00 PM"; if (typeof(DisplayFormats32452)=="undefined") DisplayFormats32452 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32452)=="undefined") CountActives32452 = true; if (typeof(FinishMessages32452)=="undefined") FinishMessages32452 = ""; if (typeof(CountSteppers32452)!="number") CountSteppers32452 = -1; if (typeof(LeadingZeros32452)=="undefined") LeadingZeros32452 = true; CountSteppers32452 = Math.ceil(CountSteppers32452); if (CountSteppers32452 == 0) CountActives32452 = false; var SetTimeOutPeriods32452 = (Math.abs(CountSteppers32452)-1)*1000 + 990; puti(BackColors32452, ForeColors32452); var dthens32452 = new Date(TargetDates32452); var dnows32452 = new Date("06/06/2025 6:47:12 AM"); if(CountSteppers32452>0) ddiffs32452 = new Date(dnows32452-dthens32452); else ddiffs32452 = new Date(dthens32452-dnows32452); gsecss32452 = Math.floor(ddiffs32452.valueOf()/1000); CountBacks32452(gsecss32452);