function lbclick(e) {
    if (!e) var e = window.event;
    e.cancelBubble = true;
    if (e.stopPropagation) e.stopPropagation();
}
function addedtolb(fgid,msg,on) {
    if (h = find_object('added_'+fgid)) {
        if (on) { 
            h.innerHTML=msg; 
            h.style.visibility = 'visible'; 
            setTimeout('addedtolb('+fgid+',"",0)', 3000); }
        else { h.style.visibility='hidden' }
    }
}
function ch_sort(field) {
    dir = 'asc';
    if (document.sortform.sort.value == field) {
        if (document.sortform.sortdir.value == 'asc') dir = 'desc';
    } else {
        document.sortform.sort.value = field;
    }
    document.sortform.sortdir.value = dir;
    document.sortform.submit();
}
