﻿function popUp4(URL) { day = new Date();
 id = day.getTime();
 eval("page" + id + "=window.open(URL,'" + id + "','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=110,left=350,top=340');");
}
 
 // current time stamp (miliseconds)
 var initialtime = new Date();
 // dollars per second
 var intervalsec = 7.28;  //10.92
 // current timestamp in seconds
 var initialsec = (initialtime.getTime() / 1000);
 // baseAmount + ((initialsec - creationTimeStamp) * dollarsPerSecond)
 var initialdollars = 1000003698 + ((initialsec - 1284669895) * intervalsec);
 
 var indextime = new Date();
 var presentsec = (indextime.getTime() / 1000);
 var compsec = presentsec;
 function addCommas(nStr) { nStr += '';
 x = nStr.split('.');
 x1 = x[0];
 x2 = x.length > 1 ? '.' + x[1] : '';
 var rgx = /(\d+)(\d{3})/;
 while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ',' + '$2');
 }
 return x1 + x2;
 }
 function alertme() { indextime = new Date();
 presentsec = (indextime.getTime() / 1000);
 secdif = presentsec - initialsec;
 totalcash = Math.round((initialdollars + (secdif * intervalsec)) * 100) / 100;
 if ((Math.round(totalcash * 10) / 10) == (Math.round(totalcash * 100) / 100)) addzero = "0";
 else addzero = "";
 if (Math.round(totalcash) == totalcash) addzero = ".00";
 dynField = document.getElementById("debtresolved");
 cashstring = totalcash.toString();
 cashstring = cashstring + addzero;
 if (dynField != null) { dynField.innerHTML = "$" + addCommas(totalcash) + addzero;
 }
 window.setTimeout("alertme()", 50);
 }
 alertme();
