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 (LeadingZeros32231 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32231(secs) { if (secs < 0) { document.getElementById("cntdwns32231").innerHTML = FinishMessages32231; return; } DisplayStrs32231 = DisplayFormats32231.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32231 = DisplayStrs32231.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32231 = DisplayStrs32231.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32231 = DisplayStrs32231.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32231").innerHTML = DisplayStrs32231; if (CountActives32231) //alert(SetTimeOutPeriods32231); setTimeout("CountBacks32231(" + (secs+CountSteppers32231) + ")", SetTimeOutPeriods32231); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32231)=="undefined") BackColors32231 = ""; if (typeof(ForeColors32231)=="undefined") ForeColors32231= "white"; if (typeof(TargetDates32231)=="undefined") TargetDates32231 = "04/21/2025 10:00:00 PM"; if (typeof(DisplayFormats32231)=="undefined") DisplayFormats32231 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32231)=="undefined") CountActives32231 = true; if (typeof(FinishMessages32231)=="undefined") FinishMessages32231 = ""; if (typeof(CountSteppers32231)!="number") CountSteppers32231 = -1; if (typeof(LeadingZeros32231)=="undefined") LeadingZeros32231 = true; CountSteppers32231 = Math.ceil(CountSteppers32231); if (CountSteppers32231 == 0) CountActives32231 = false; var SetTimeOutPeriods32231 = (Math.abs(CountSteppers32231)-1)*1000 + 990; puti(BackColors32231, ForeColors32231); var dthens32231 = new Date(TargetDates32231); var dnows32231 = new Date("04/19/2025 1:59:01 PM"); if(CountSteppers32231>0) ddiffs32231 = new Date(dnows32231-dthens32231); else ddiffs32231 = new Date(dthens32231-dnows32231); gsecss32231 = Math.floor(ddiffs32231.valueOf()/1000); CountBacks32231(gsecss32231);