//  Go to the page identified by the selected popup entry.  If a sortings attribute
//  exists for the entry, use it to load the page with the preferred sorting.
function gotoSelection(popup,defaultIndex) {
    var selectedOption = popup.options[popup.selectedIndex];
    if( selectedOption ) {
        newLoc = selectedOption.value;
        if (newLoc != "") {
            var sorting_list = selectedOption.getAttribute("sortings");
            if( sorting_list ) {
                loadSortedPage( newLoc, sorting_list );
            } else {
                window.location.href = newLoc;
            }
        }
    }
    //  Reset the popup to its original value
    if( typeof defaultIndex != "undefined" && defaultIndex >= 0 ) {
        popup.selectedIndex = defaultIndex;
    }
}
<!-- Designer By Wista Tasarim-2006-->
