function displayAlert(vsURL) {
    alert("You are now leaving the CME activity");
    window.location.href = vsURL;
}

/*
collapse expand single item

by Leo Charre & Jesse Fergusson
Internet Connection  2004 2005 ©
www.internetconnection.net
*/

//imgout = new Image(9, 9);
//imgin = new Image(9, 9);

imgout = new Image(12, 11);
imgin = new Image(12, 11);

/////////////////BEGIN USER EDITABLE///////////////////////////////
//imgout.src = "http://172.16.30.60/cme2/images/rightArrow.gif";
//imgin.src = "http://172.16.30.60/cme2/images/downArrow.gif";
//imgout.src = "images/Hemonc/rightArrow.gif";
//imgin.src = "images/Hemonc/downArrow.gif";
imgout.src = "images/Hemonc/cme-plus-icon.gif";
imgin.src = "images/Hemonc/cme-minus-icon.gif";
///////////////END USER EDITABLE///////////////////////////////////

//this switches expand collapse icons
function filter(imagename, objectsrc) {
    if (document.images) {
        document.images[imagename].src = eval(objectsrc + ".src");
    }
}

//show OR hide funtion depends on if element is shown or hidden
function show(id) {

    if (document.getElementById) { // DOM3 = IE5, NS6
        if (document.getElementById(id).style.display == "none") {
            document.getElementById(id).style.display = 'block';
            filter(("img" + id), 'imgin');
        } else {
            filter(("img" + id), 'imgout');
            document.getElementById(id).style.display = 'none';
        }
    } else {
        if (document.layers) {
            if (document.id.display == "none") {
                document.id.display = 'block';
                filter(("img" + id), 'imgin');
            } else {
                filter(("img" + id), 'imgout');
                document.id.display = 'none';
            }
        } else {
            if (document.all.id.style.visibility == "none") {
                document.all.id.style.display = 'block';
            } else {
                filter(("img" + id), 'imgout');
                document.all.id.style.display = 'none';
            }
        }
    }
}

