// JavaScript Document

function removeElement(parentDiv, childDiv){
     if (childDiv == parentDiv) {
          alert("There is nothing in the basket");
     }
     else if (document.getElementById(childDiv)) {     
          var child = document.getElementById(childDiv);
          var parent = document.getElementById(parentDiv);
          parent.removeChild(child);
     }
     else {
          alert("Sorry this has already been removed from the basket.");
          return false;
     }
}
