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 (LeadingZeros32709 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32709(secs) { if (secs < 0) { document.getElementById("cntdwns32709").innerHTML = FinishMessages32709; return; } DisplayStrs32709 = DisplayFormats32709.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32709 = DisplayStrs32709.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32709 = DisplayStrs32709.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32709 = DisplayStrs32709.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32709").innerHTML = DisplayStrs32709; if (CountActives32709) //alert(SetTimeOutPeriods32709); setTimeout("CountBacks32709(" + (secs+CountSteppers32709) + ")", SetTimeOutPeriods32709); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32709)=="undefined") BackColors32709 = ""; if (typeof(ForeColors32709)=="undefined") ForeColors32709= "white"; if (typeof(TargetDates32709)=="undefined") TargetDates32709 = "09/03/2025 10:00:00 PM"; if (typeof(DisplayFormats32709)=="undefined") DisplayFormats32709 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32709)=="undefined") CountActives32709 = true; if (typeof(FinishMessages32709)=="undefined") FinishMessages32709 = ""; if (typeof(CountSteppers32709)!="number") CountSteppers32709 = -1; if (typeof(LeadingZeros32709)=="undefined") LeadingZeros32709 = true; CountSteppers32709 = Math.ceil(CountSteppers32709); if (CountSteppers32709 == 0) CountActives32709 = false; var SetTimeOutPeriods32709 = (Math.abs(CountSteppers32709)-1)*1000 + 990; puti(BackColors32709, ForeColors32709); var dthens32709 = new Date(TargetDates32709); var dnows32709 = new Date("09/03/2025 7:38:40 AM"); if(CountSteppers32709>0) ddiffs32709 = new Date(dnows32709-dthens32709); else ddiffs32709 = new Date(dthens32709-dnows32709); gsecss32709 = Math.floor(ddiffs32709.valueOf()/1000); CountBacks32709(gsecss32709);