currenthit = 0;

function doNextHit(tothit) {
  if ($('hit' + currenthit) != null)   // unbold previous hit
    $('hit' + currenthit).style.fontWeight = 'normal';
    
  if (currenthit >= tothit) {
    currenthit = 0;
    // alert("Moving to first hit");
  }
  
  if (currenthit < tothit) {
    window.location.hash = "hit" + ++currenthit;
    $('current_hit').innerHTML =  + currenthit;
    $('hit' + currenthit).style.fontWeight = 'bold';
  } 
}

function doPrevHit(tothit) {
  if ($('hit' + currenthit) != null)   // unbold previous hit
    $('hit' + currenthit).style.fontWeight = 'normal';
  
  if (--currenthit <= 0) currenthit = tothit;
  
  if (currenthit > 0 ) {
    window.location.hash = "hit" + currenthit
    $('current_hit').innerHTML = currenthit;
    $('hit' + currenthit).style.fontWeight = 'bold';
  } 
}
function doNextHit1(tothit) {

  if ($('hit' + currenthit + '_2076053739') != null)   // unbold previous hit
    $('hit' + currenthit + '_2076053739').style.fontWeight = 'normal';
    
  if (currenthit >= tothit) {
    currenthit = 0;
    // alert("Moving to first hit");
  }
    
  if (currenthit < tothit) {
    window.location.hash = "hit" + ++currenthit + "_2076053739";
    
    $('current_hit').innerHTML =  + currenthit;
    $('hit' + currenthit).style.fontWeight = 'bold';

  } 
}

function doPrevHit1(tothit) {
  
  
  if ($('hit' + currenthit + '_2076053739') != null)   // unbold previous hit
    $('hit' + currenthit + '_2076053739').style.fontWeight = 'normal';
  
  if (--currenthit <= 0) currenthit = tothit;
  
  if (currenthit > 0 ) {
  
    window.location.hash = "hit" + currenthit + '_2076053739'
    $('current_hit').innerHTML = currenthit;
    $('hit' + currenthit).style.fontWeight = 'bold';
  } 
}

