//===== Hallo Software ================// Genauer als Version 2, (diff - millispernow) aber langsamerer Zähler.//===== Copyright © 2003 WEAT All rights reserved. ======<!--var curamount=0;         // total transactionsfunction calc_amount () {  startof = new Date ("Jan 01, 2012 00:00:00"); // first day of counting  curdate = new Date ();  millispernow = curdate.getHours() * 3600000 + curdate.getMinutes() * 60000 + curdate.getSeconds() * 1000 + curdate.getMilliseconds();  diff = curdate - startof - millispernow;  if (diff < 0) {    alert ("this counter uses your computers date to calculate the transactions. "+           "Yours must be wrong because according to your computer the transactions "+       "hasn't even started yet!");  }  var TA_year = 240000000;  var TA_month = TA_year / 12;  var TA_day = TA_year / 365;  var TA_now = 0;  stunde= curdate.getHours();if (stunde >=7 && stunde <=19) {    TA_day = TA_day * 2;  }  TA_now = TA_day / 86400000 * millispernow;//  alert (TA_day);  var millispermonth = 2628000000;                // (365*24*60*60*1000)/12 nicht 31*24*60*60*1000  var initialamount = 0;                   // start amount for rundungsdifferenzen  var sincethen = TA_month / millispermonth;  compareamount= (initialamount + diff * sincethen);  curamount = compareamount + TA_now;}// Converts a number 'n' to a string with points every three characters.function number_str (n) {  var x = n.toString ();  var dot = x.lastIndexOf ('.');  x = x.substr (0, dot);  var l = x.length;  var res = "";  for (l -= 3; l > 0; l -= 3) {    res = "." + x.substr (l, 3) + res;  }  res = x.substr (0, l+3) + res;  return res;}// Calcutates the current TA value by calling calc_amount()// Calls converter function number_str() for presentation// Calls itself all 'rate' milliseconds by timeout mechanism to repeat the defined task periodicallyfunction inc_transactions_at_rate(rate) {  calc_amount ();  document.getElementById ("TRANS").firstChild.nodeValue =  "TA´s " + number_str(curamount);  setTimeout('inc_transactions_at_rate('+rate+');', rate);}// -->
