function UpdateQty(item, doc) { error = false; c = document.frmCart.elements.length; for (i = 0; i < c; i++) { if (document.frmCart.elements[i].value == "") { error = true; break; } } if (error) { alert("You must have a value in the Quantity Field"); } else { document.frmCart.submit(); } } function set_session() { //window.location = 'https://www.snapsource.com/store/shopatron.php'; document.getElementById('session').src = 'https://www.snapsource.com/store/includes/cart/cart_set_ses.php?set_session=true'; }