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 (LeadingZeros32014 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32014(secs) { if (secs < 0) { document.getElementById("cntdwns32014").innerHTML = FinishMessages32014; return; } DisplayStrs32014 = DisplayFormats32014.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32014 = DisplayStrs32014.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32014 = DisplayStrs32014.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32014 = DisplayStrs32014.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32014").innerHTML = DisplayStrs32014; if (CountActives32014) //alert(SetTimeOutPeriods32014); setTimeout("CountBacks32014(" + (secs+CountSteppers32014) + ")", SetTimeOutPeriods32014); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32014)=="undefined") BackColors32014 = ""; if (typeof(ForeColors32014)=="undefined") ForeColors32014= "white"; if (typeof(TargetDates32014)=="undefined") TargetDates32014 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32014)=="undefined") DisplayFormats32014 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32014)=="undefined") CountActives32014 = true; if (typeof(FinishMessages32014)=="undefined") FinishMessages32014 = ""; if (typeof(CountSteppers32014)!="number") CountSteppers32014 = -1; if (typeof(LeadingZeros32014)=="undefined") LeadingZeros32014 = true; CountSteppers32014 = Math.ceil(CountSteppers32014); if (CountSteppers32014 == 0) CountActives32014 = false; var SetTimeOutPeriods32014 = (Math.abs(CountSteppers32014)-1)*1000 + 990; puti(BackColors32014, ForeColors32014); var dthens32014 = new Date(TargetDates32014); var dnows32014 = new Date("03/29/2025 3:10:12 PM"); if(CountSteppers32014>0) ddiffs32014 = new Date(dnows32014-dthens32014); else ddiffs32014 = new Date(dthens32014-dnows32014); gsecss32014 = Math.floor(ddiffs32014.valueOf()/1000); CountBacks32014(gsecss32014);