var warrantyItem=null;function addOptions(form,oform){var selectedValues=new Array();j=0;if(oform&&oform.chkoption){if(oform.chkoption.length){for(i=0;i<oform.chkoption.length;i++){if(oform.chkoption[i].checked){selectedValues[j++]=oform.chkoption[i].value}}}else{if(oform.chkoption.checked){selectedValues[0]=oform.chkoption.value}}if(selectedValues.length>0){document.cart_quantity.add_options.value=selectedValues.join("_")}}if(warrantyItem&&warrantyItem.length>0){if(document.cart_quantity.add_options.value.length>0){document.cart_quantity.add_options.value+="_"+warrantyItem}else{document.cart_quantity.add_options.value=warrantyItem}}}function toggleThisProduct(form,thischk){if(thischk.checked==true){form.products_id.value=thischk.value}else{form.products_id.value=""}}function onWarrantySelect(productID,warrantyPrice,warrantyDescription){if(!productID){warrantyItems=null;return }warrantyItem=productID};