You definitely don't need to getElementById each time.