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 (LeadingZeros31869 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31869(secs) { if (secs < 0) { document.getElementById("cntdwns31869").innerHTML = FinishMessages31869; return; } DisplayStrs31869 = DisplayFormats31869.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31869 = DisplayStrs31869.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31869 = DisplayStrs31869.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31869 = DisplayStrs31869.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31869").innerHTML = DisplayStrs31869; if (CountActives31869) //alert(SetTimeOutPeriods31869); setTimeout("CountBacks31869(" + (secs+CountSteppers31869) + ")", SetTimeOutPeriods31869); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31869)=="undefined") BackColors31869 = ""; if (typeof(ForeColors31869)=="undefined") ForeColors31869= "white"; if (typeof(TargetDates31869)=="undefined") TargetDates31869 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31869)=="undefined") DisplayFormats31869 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31869)=="undefined") CountActives31869 = true; if (typeof(FinishMessages31869)=="undefined") FinishMessages31869 = ""; if (typeof(CountSteppers31869)!="number") CountSteppers31869 = -1; if (typeof(LeadingZeros31869)=="undefined") LeadingZeros31869 = true; CountSteppers31869 = Math.ceil(CountSteppers31869); if (CountSteppers31869 == 0) CountActives31869 = false; var SetTimeOutPeriods31869 = (Math.abs(CountSteppers31869)-1)*1000 + 990; puti(BackColors31869, ForeColors31869); var dthens31869 = new Date(TargetDates31869); var dnows31869 = new Date("03/29/2025 3:15:50 PM"); if(CountSteppers31869>0) ddiffs31869 = new Date(dnows31869-dthens31869); else ddiffs31869 = new Date(dthens31869-dnows31869); gsecss31869 = Math.floor(ddiffs31869.valueOf()/1000); CountBacks31869(gsecss31869);