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 (LeadingZeros32690 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32690(secs) { if (secs < 0) { document.getElementById("cntdwns32690").innerHTML = FinishMessages32690; return; } DisplayStrs32690 = DisplayFormats32690.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32690 = DisplayStrs32690.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32690 = DisplayStrs32690.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32690 = DisplayStrs32690.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32690").innerHTML = DisplayStrs32690; if (CountActives32690) //alert(SetTimeOutPeriods32690); setTimeout("CountBacks32690(" + (secs+CountSteppers32690) + ")", SetTimeOutPeriods32690); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32690)=="undefined") BackColors32690 = ""; if (typeof(ForeColors32690)=="undefined") ForeColors32690= "white"; if (typeof(TargetDates32690)=="undefined") TargetDates32690 = "10/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32690)=="undefined") DisplayFormats32690 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32690)=="undefined") CountActives32690 = true; if (typeof(FinishMessages32690)=="undefined") FinishMessages32690 = ""; if (typeof(CountSteppers32690)!="number") CountSteppers32690 = -1; if (typeof(LeadingZeros32690)=="undefined") LeadingZeros32690 = true; CountSteppers32690 = Math.ceil(CountSteppers32690); if (CountSteppers32690 == 0) CountActives32690 = false; var SetTimeOutPeriods32690 = (Math.abs(CountSteppers32690)-1)*1000 + 990; puti(BackColors32690, ForeColors32690); var dthens32690 = new Date(TargetDates32690); var dnows32690 = new Date("10/03/2025 10:58:06 PM"); if(CountSteppers32690>0) ddiffs32690 = new Date(dnows32690-dthens32690); else ddiffs32690 = new Date(dthens32690-dnows32690); gsecss32690 = Math.floor(ddiffs32690.valueOf()/1000); CountBacks32690(gsecss32690);