NIKE Youth Training Jacket - Metro Swim Shop"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; //colorSizeStock.innerHTML = "0"; } function addOne(type) { colorAddOne('Large', type); colorAddOne('Medium', type); colorAddOne('Small', type); colorAddOne('XLarge', type); } function colorAddOne(size, type) { if (size == 'AC') size = ''; var colorSizeDiv = document.getElementById("p2size"); if (colorSizeDiv.style.display == 'block') { var quantity = document.getElementById("quantity"); if (type == 'add') { quantity.value = Number(quantity.value) + 1; } if (type == 'sub') { quantity.value = Number(quantity.value) - 1; } } }
