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 (LeadingZeros31693 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31693(secs) { if (secs < 0) { document.getElementById("cntdwns31693").innerHTML = FinishMessages31693; return; } DisplayStrs31693 = DisplayFormats31693.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31693 = DisplayStrs31693.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31693 = DisplayStrs31693.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31693 = DisplayStrs31693.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31693").innerHTML = DisplayStrs31693; if (CountActives31693) //alert(SetTimeOutPeriods31693); setTimeout("CountBacks31693(" + (secs+CountSteppers31693) + ")", SetTimeOutPeriods31693); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31693)=="undefined") BackColors31693 = ""; if (typeof(ForeColors31693)=="undefined") ForeColors31693= "white"; if (typeof(TargetDates31693)=="undefined") TargetDates31693 = "02/03/2025 10:00:00 PM"; if (typeof(DisplayFormats31693)=="undefined") DisplayFormats31693 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31693)=="undefined") CountActives31693 = true; if (typeof(FinishMessages31693)=="undefined") FinishMessages31693 = ""; if (typeof(CountSteppers31693)!="number") CountSteppers31693 = -1; if (typeof(LeadingZeros31693)=="undefined") LeadingZeros31693 = true; CountSteppers31693 = Math.ceil(CountSteppers31693); if (CountSteppers31693 == 0) CountActives31693 = false; var SetTimeOutPeriods31693 = (Math.abs(CountSteppers31693)-1)*1000 + 990; puti(BackColors31693, ForeColors31693); var dthens31693 = new Date(TargetDates31693); var dnows31693 = new Date("01/31/2025 6:55:45 AM"); if(CountSteppers31693>0) ddiffs31693 = new Date(dnows31693-dthens31693); else ddiffs31693 = new Date(dthens31693-dnows31693); gsecss31693 = Math.floor(ddiffs31693.valueOf()/1000); CountBacks31693(gsecss31693);