﻿function ResetScroll(){
    var scrollX = document.getElementById('__SCROLLPOSITIONX');
    var scrollY = document.getElementById('__SCROLLPOSITIONY');
    if(scrollX != null && scrollY != null)
    {
        scrollX.value = 0;
        scrollY.value = 0;
    }
    
    // For IE7 to work.
    setTimeout("window.scrollTo(0,0)", 0);
}

