var timerform

startdate     = new Date(2008, 7-1, 11) 
countFromDate = new Date(2009, 1-1, 1) 
count=4929610

speed=0



function formatWithSeparator(i)
{
  var retStr = ''
  var workStr = ''+i
  if (workStr.length <= 3)
    return workStr
  
  retStr = workStr.substr(workStr.length-3, 3)
  workStr = workStr.substr(0, workStr.length-3)
    
  while (workStr.length > 3)
  {
    retStr = workStr.substr(workStr.length-3, 3) +'.'+retStr
    workStr = workStr.substr(0, workStr.length-3)
  }
  
  return workStr+'.'+retStr
}


function getNbrDownloads()
{
  return formatWithSeparator(10000000)
  //today=new Date()
  //curCount = count+Math.round((today.getTime()-countFromDate.getTime())/(speed))
  //return formatWithSeparator(curCount+600000)
}

function dotimer()
{
  document.timerform.timer.value=''+getNbrDownloads()
  window.setTimeout("dotimer()",speed)
}

function Timer()
{
  speed=(countFromDate.getTime()-startdate.getTime())/count
  document.write('<form name=timerform class="counter"><input name=timer size=7 class="counter" disabled="disabled"')
  document.write('></form>')
  dotimer()
}
