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 (LeadingZeros32729 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32729(secs) { if (secs < 0) { document.getElementById("cntdwns32729").innerHTML = FinishMessages32729; return; } DisplayStrs32729 = DisplayFormats32729.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32729 = DisplayStrs32729.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32729 = DisplayStrs32729.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32729 = DisplayStrs32729.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32729").innerHTML = DisplayStrs32729; if (CountActives32729) //alert(SetTimeOutPeriods32729); setTimeout("CountBacks32729(" + (secs+CountSteppers32729) + ")", SetTimeOutPeriods32729); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32729)=="undefined") BackColors32729 = ""; if (typeof(ForeColors32729)=="undefined") ForeColors32729= "white"; if (typeof(TargetDates32729)=="undefined") TargetDates32729 = "10/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32729)=="undefined") DisplayFormats32729 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32729)=="undefined") CountActives32729 = true; if (typeof(FinishMessages32729)=="undefined") FinishMessages32729 = ""; if (typeof(CountSteppers32729)!="number") CountSteppers32729 = -1; if (typeof(LeadingZeros32729)=="undefined") LeadingZeros32729 = true; CountSteppers32729 = Math.ceil(CountSteppers32729); if (CountSteppers32729 == 0) CountActives32729 = false; var SetTimeOutPeriods32729 = (Math.abs(CountSteppers32729)-1)*1000 + 990; puti(BackColors32729, ForeColors32729); var dthens32729 = new Date(TargetDates32729); var dnows32729 = new Date("10/03/2025 10:55:34 PM"); if(CountSteppers32729>0) ddiffs32729 = new Date(dnows32729-dthens32729); else ddiffs32729 = new Date(dthens32729-dnows32729); gsecss32729 = Math.floor(ddiffs32729.valueOf()/1000); CountBacks32729(gsecss32729);