function Recalc(frm) { var lngItems = ValueGet("items"); var boolValid = true; for(lngItem=1; lngItem<=lngItems; lngItem++) { if (isNaN(ValueGet("quantity" + lngItem)) == true) { boolValid = false; alert("Please enter a valid number of units you require for the " + ValueGet("productname" + lngItem) + " product."); Select("quantity" + lngItem); break; } if (isNaN(ValueGet("weeks" + lngItem)) == true) { boolValid = false; alert("Please enter a valid number of weeks you require for the " + ValueGet("productname" + lngItem) + " product."); Select("weeks" + lngItem); break; } } if (boolValid == true) { frm.submit(); } } function BasketDamageWaiver(frm, boolInclude) { if (boolInclude == true) { if (confirm("Please confirm you wish to add the Damage Waiver to the products in your basket.")) { frm.submit(); } } else { if (confirm("Please confirm you wish to remove the Damage Waiver to the products in your basket.")) { frm.submit(); } } } function BasketRemove(frm, lngID) { if (confirm("Are you sure you want to remove this product?")) { ValueSet("rid", lngID); frm.submit(); } } function show_box(name) { w=400; h=400; x=(screen.width-w)/2; if (x<0)x=0; y=(screen.height-h)/2; //fixIE('100%','hidden'); window.scrollTo(0, 0); $('outerlay').style.left='0px'; m=$(name); // m.style.left='50%'; m.style.top=y+'px'; m.style.left=x+'px'; } function close_box(name) { if($('outerlay'))$('outerlay').style.left = '-9999px'; if($(name))$(name).style.left = '-9999px'; } function paypal(form) { form.action='/cart/paypal.php'; formsub(form); }