function janein(dahin){
  Check = confirm("Datensatz wirklich löschen?\n\nDie Daten sind nicht wiederherzustellen.");
  if(Check == false){
    return false;
  } else{
    document.location.href=dahin;
    return true;
  }
}

$(window).ready(function(){
  $('a[href*=#]').click(function() {
     var newHash = this.hash;
     var target = $(this.hash).offset().top;
     var oldLocation = window.location.href.replace(window.location.hash, '');
     var newLocation = this;

     if(oldLocation+newHash==newLocation) {
        $('html:not(:animated),body:not(:animated)').animate({ scrollTop: target }, 500, 'linear', function() {
           window.location.href=newLocation;
        });
        return false;
     }
  });
  
  if (!$.browser.msie) {
    $('div.chords> ul').hide();  
    $('div.chords> h2').click(function() {
      var $nextDiv = $(this).next();
      var $visibleSiblings = $nextDiv.siblings('ul:visible');

      if ($visibleSiblings.length ) {
        $visibleSiblings.slideUp('fast', function() {
          $nextDiv.slideToggle('fast');
        });
      } else {
         $nextDiv.slideToggle('fast');
      }
    });
  }
  
  
});

$(window).scroll(function(){
  if ((document.documentElement.scrollTop || document.body.scrollTop) > 100) {
    $('#go_top').fadeIn();
  } else {
    $('#go_top').fadeOut();
  }
});


