/****************************** CART ******************************/ function removeItem(item) { var answer = confirm ('Weet je zeker dat je dit product wil verwijderen?') if (answer) window.location="index.php?page=cart&action=remove&productId=" + item; } function emptyCart() { var answer = confirm ('Weet je zeker dat je de winkelwagen wil legen?') if (answer) window.location="index.php?page=cart&action=empty"; } /****************************** FORM FIELDSET SHOW/HIDE ******************************/ function showDiv(divID,operator) { d = document.getElementById(divID); if(operator == "on") { d.style.display = "block"; } else if(operator == "off") { d.style.display = "none"; } } function checkShowDiv(divID,operator) { d = document.getElementById(divID); if(operator == 4) { d.style.display = "block"; } else { d.style.display = "none"; } } /****************************** FORM CHECK ******************************/ /****************************** DROPDOWN ******************************/ function selectReplacement(obj) { // append a class to the select obj.className += ' replaced'; // create list for styling var ul = document.createElement('ul'); ul.className = 'selectReplacement'; var opts = obj.options; for (var i=0; i