function prevent_right_click(e) {
    var message = "Copyright by Sondeal Reggae.";
    if (!e) var e = window.event;
    if (e.button) {
        if (e.button == 2 || e.button == 3) {
            //e.cancelBubble is supported by IE - this will kill the bubbling process.
            e.cancelBubble = true;
            e.returnValue = false;

            if (e.stopPropagation) {
                e.stopPropagation();
                e.preventDefault();
            }

            alert(message);
            return false;
        }
    }
    else if (e.which) {
        if (e.which == 3) {
            alert(message);
            return false;
        }
    }
    return true;
};

if (document.all) {
    document.onmousedown = prevent_right_click;
}
else {
    document.onclick = prevent_right_click;
}

if (document.captureEvents) {
    document.captureEvents(Event.MOUSEDOWN);
}
