jQuery(document).ready(function() {
   
    jQuery('a[href=#top]').click(function(){
        jQuery('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });

});

function doSome()
{
	var anchor = document.form1.ankerliste.value.substring(1, document.form1.ankerliste.value.length);
	
	var scrollposition = jQuery('a[name='+anchor+']').position().top;
	jQuery('html, body').animate({scrollTop:scrollposition}, 'fast');
}