<!--
function showValidationError(sve_subTitle,sve_message,sve_focusID) {
gDWTitle_obj = document.getElementById("id_genDialogWindow_HTML_title");
gDWSubTitle_obj = document.getElementById("id_genDialogWindow_HTML_subTitle");
gDWMessage_obj = document.getElementById("id_genDialogWindow_HTML_message");
gDWOkButton_obj = document.getElementById("id_genDialogWindow_HTML_buttonOk");
gDWTitle_obj.innerHTML = "Form Validation Error";
gDWSubTitle_obj.innerHTML = sve_subTitle;
gDWMessage_obj.innerHTML = sve_message;
gDWOkButton_obj.value = "Continue";
gDWOkButton_obj.onclick = function() { hideModalDialogWindow("id_genDialogWindow","id_dialogWindowMask",sve_focusID); };
showModalDialogWindow("id_genDialogWindow","id_dialogWindowMask",400,225,"id_genDialogWindow_HTML_buttonOk");
}

function updateShoppingCart(formObj) {
var vc_UID="1234567890";
changes = false;
inputElements = document.getElementsByTagName('input');
for (i=0;i<inputElements.length;i++) {
	if (inputElements[i].tagName == 'INPUT' && inputElements[i].type == 'text') {
		if (inputElements[i].id.indexOf('quantity_',1)) {
			newQuantity = inputElements[i];
			if (newQuantity.value == "") {
				showValidationError("Missing required field","Quantity can't be empty.<ol><li>Enter a number from 1 to 8.</li><li>Enter zero to remove the item from your cart.</li><li>Click on 'Update Cart' button for changes to take effect.</li></ol>",newQuantity.id);
				return false;
				}
			for (j=0;j<newQuantity.value.length;j++) {
				ch = newQuantity.value.charAt(j);
				if (vc_UID.indexOf(ch) == -1) {
					showValidationError("Missing required field","In quantity the character \""+ch+"\" is not allowed.<ol><li>Enter a number from 1 to 8.</li><li>Enter zero to remove the item from your cart.</li><li>Click on 'Update Cart' button for changes to take effect.</li></ol>",newQuantity.id);
					return false;
					}
				}
			if (newQuantity.value > 8) {
				showValidationError("Missing required field","Quantity exceeded maximum allowed.<ol><li>Enter a number from 1 to 8.</li><li>Enter zero to remove the item from your cart.</li><li>Click on 'Update Cart' button for changes to take effect.</li></ol>",newQuantity.id);
				return false;
				}
			curQuantity = document.getElementById('cur_'+newQuantity.id);
			if (Number(newQuantity.value) != Number(curQuantity.value)) {
				changes = true;
				}
			}
		}
	}
if (!changes) {
	showValidationError("No actions taken","No changes noticed.<p>Update Cart won't take effect.</p>",'');
	return false;
	}
showWindowMask('id_dialogWindowMask');
return true;
}
//-->
