productQuantityUpdate = { containerFinishID: 'product-finish', quantityFieldID: 'quantity_field', responseFieldID: 'quantity_response', helpText: 'Enter the quantity required in the box below to get a price and then add the product to your basket.Note: The minimum order value is £25. If your order is less than this, an additional £25 will be added to the final price.', helpTextFieldID: 'quantity_help', quantityFieldID: 'quantity_row', loadingImageID: 'preloader', preloader: null, init:function(){ if(!document.getElementById || !document.createTextNode){return;} // Display left menu after instanstiating the list (displays menu ONLY when its fully built - eliminates flicker) var containerQuantity = document.getElementById(productQuantityUpdate.quantityFieldID); if(!containerQuantity){return;} var helpTextContainer = document.getElementById(productQuantityUpdate.helpTextFieldID); helpTextContainer.innerHTML = productQuantityUpdate.helpText; var formContainer = document.getElementById(productQuantityUpdate.quantityFieldID); helper.cssjs('add', formContainer , "show"); if(window.ActiveXObject) var parentNode = formContainer.parentNode.parentNode.getElementsByTagName('tr'); else var parentNode = formContainer.parentNode.getElementsByTagName('tr'); // alert(parentNode); for(var i=0; i£'+formData[0]['price']+' Click Here Add to Basket' productIDValue.innerHTML = response; }else{ var response = 'No price found. Please call 01772 681000 for help.'; productIDValue.innerHTML = response; helper.cssjs("add", productQuantityUpdate.preloader, "hide"); return; } // if(ajaxCall.xmlHttp.status == 200) setTimeout('helper.cssjs("add", productQuantityUpdate.preloader, "hide")',500); // delay 2 seconds } } fp.addEvent(window, 'load', productQuantityUpdate.init, false);