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 (LeadingZeros32221 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32221(secs) { if (secs < 0) { document.getElementById("cntdwns32221").innerHTML = FinishMessages32221; return; } DisplayStrs32221 = DisplayFormats32221.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32221 = DisplayStrs32221.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32221 = DisplayStrs32221.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32221 = DisplayStrs32221.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32221").innerHTML = DisplayStrs32221; if (CountActives32221) //alert(SetTimeOutPeriods32221); setTimeout("CountBacks32221(" + (secs+CountSteppers32221) + ")", SetTimeOutPeriods32221); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32221)=="undefined") BackColors32221 = ""; if (typeof(ForeColors32221)=="undefined") ForeColors32221= "white"; if (typeof(TargetDates32221)=="undefined") TargetDates32221 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32221)=="undefined") DisplayFormats32221 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32221)=="undefined") CountActives32221 = true; if (typeof(FinishMessages32221)=="undefined") FinishMessages32221 = ""; if (typeof(CountSteppers32221)!="number") CountSteppers32221 = -1; if (typeof(LeadingZeros32221)=="undefined") LeadingZeros32221 = true; CountSteppers32221 = Math.ceil(CountSteppers32221); if (CountSteppers32221 == 0) CountActives32221 = false; var SetTimeOutPeriods32221 = (Math.abs(CountSteppers32221)-1)*1000 + 990; puti(BackColors32221, ForeColors32221); var dthens32221 = new Date(TargetDates32221); var dnows32221 = new Date("04/19/2025 3:36:03 AM"); if(CountSteppers32221>0) ddiffs32221 = new Date(dnows32221-dthens32221); else ddiffs32221 = new Date(dthens32221-dnows32221); gsecss32221 = Math.floor(ddiffs32221.valueOf()/1000); CountBacks32221(gsecss32221);