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 (LeadingZeros32640 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32640(secs) { if (secs < 0) { document.getElementById("cntdwns32640").innerHTML = FinishMessages32640; return; } DisplayStrs32640 = DisplayFormats32640.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32640 = DisplayStrs32640.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32640 = DisplayStrs32640.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32640 = DisplayStrs32640.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32640").innerHTML = DisplayStrs32640; if (CountActives32640) //alert(SetTimeOutPeriods32640); setTimeout("CountBacks32640(" + (secs+CountSteppers32640) + ")", SetTimeOutPeriods32640); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32640)=="undefined") BackColors32640 = ""; if (typeof(ForeColors32640)=="undefined") ForeColors32640= "white"; if (typeof(TargetDates32640)=="undefined") TargetDates32640 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32640)=="undefined") DisplayFormats32640 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32640)=="undefined") CountActives32640 = true; if (typeof(FinishMessages32640)=="undefined") FinishMessages32640 = ""; if (typeof(CountSteppers32640)!="number") CountSteppers32640 = -1; if (typeof(LeadingZeros32640)=="undefined") LeadingZeros32640 = true; CountSteppers32640 = Math.ceil(CountSteppers32640); if (CountSteppers32640 == 0) CountActives32640 = false; var SetTimeOutPeriods32640 = (Math.abs(CountSteppers32640)-1)*1000 + 990; puti(BackColors32640, ForeColors32640); var dthens32640 = new Date(TargetDates32640); var dnows32640 = new Date("08/11/2025 7:24:19 PM"); if(CountSteppers32640>0) ddiffs32640 = new Date(dnows32640-dthens32640); else ddiffs32640 = new Date(dthens32640-dnows32640); gsecss32640 = Math.floor(ddiffs32640.valueOf()/1000); CountBacks32640(gsecss32640);