
var bgsave;
function swapBg(elm, act, col){
    if(act == 'on'){
        bgsave = elm.style.backgroundColor;
        elm.style.backgroundColor = col;
    }
    else elm.style.backgroundColor = bgsave;
}

function sa(act, showConfirm){
    if(showConfirm && !confirm(showConfirm)) {
        return false;
    }
    parent.mycrm_body_frame.location = act;
}

function swapDisplay(ob, set){
    c = ob.length;
    for(i=0;i<c;i++){
        s = (set[i] == undefined) ? 'block' : set[i];
        tst = document.getElementById(ob[i]).style.display;
        document.getElementById(ob[i]).style.display = (tst == 'none') ? s : 'none';
    }
}

function MM_openBrWindow(theURL, winName, features) {
    window.open(theURL, winName, features);
}
