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 (LeadingZeros32925 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32925(secs) { if (secs < 0) { document.getElementById("cntdwns32925").innerHTML = FinishMessages32925; return; } DisplayStrs32925 = DisplayFormats32925.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32925 = DisplayStrs32925.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32925 = DisplayStrs32925.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32925 = DisplayStrs32925.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32925").innerHTML = DisplayStrs32925; if (CountActives32925) //alert(SetTimeOutPeriods32925); setTimeout("CountBacks32925(" + (secs+CountSteppers32925) + ")", SetTimeOutPeriods32925); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32925)=="undefined") BackColors32925 = ""; if (typeof(ForeColors32925)=="undefined") ForeColors32925= "white"; if (typeof(TargetDates32925)=="undefined") TargetDates32925 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32925)=="undefined") DisplayFormats32925 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32925)=="undefined") CountActives32925 = true; if (typeof(FinishMessages32925)=="undefined") FinishMessages32925 = ""; if (typeof(CountSteppers32925)!="number") CountSteppers32925 = -1; if (typeof(LeadingZeros32925)=="undefined") LeadingZeros32925 = true; CountSteppers32925 = Math.ceil(CountSteppers32925); if (CountSteppers32925 == 0) CountActives32925 = false; var SetTimeOutPeriods32925 = (Math.abs(CountSteppers32925)-1)*1000 + 990; puti(BackColors32925, ForeColors32925); var dthens32925 = new Date(TargetDates32925); var dnows32925 = new Date("10/09/2025 8:45:15 PM"); if(CountSteppers32925>0) ddiffs32925 = new Date(dnows32925-dthens32925); else ddiffs32925 = new Date(dthens32925-dnows32925); gsecss32925 = Math.floor(ddiffs32925.valueOf()/1000); CountBacks32925(gsecss32925);