The scroll solution I have worked out is for scrolling specific page elements (like multi select lists) instead of the whole page like this function. So this function is good and serves a different purpose.