function updateBasketListProduct(theCheckBox, displayName) {
    if (theCheckBox != null && theCheckBox.checked) {
        addProductToBasket(displayName);
    }
    else {
        removeProductToBasket(displayName);
    }
}

function addProductToBasket(displayName) {
    listDvd = listDvd + '<br/> - ' + displayName;
    updateProductList();
}

function removeProductToBasket(displayName) {
    listDvd = listDvd.replace('<br/> - ' + displayName, '');
    updateProductList();
}

function updateProductList() {
    if (document.getElementById) {
        document.getElementById('dvds').innerHTML = listDvd;
    }
    else if (document.all) {
      document.all['dvds'].innerHTML = listDvd;
    }
    if (listDvd.length > 0) {
        setVisibility('dvds', true);
    }
    else {
        setVisibility('dvds', false);
    }
}