AlexShowFakeCart=false; function PWCartCheckout(cid) { cid = (typeof cid !== 'undefined') ? cid : GetAlexCartID(); var par="action=checkout"; par+="&cid="+encodeURIComponent(cid); var params = { type: "POST", url: "https://abettersign.com/alexcart/cart.php", dataType: 'json', cache: false, data: par, success: function(result){ if (result.fcsid && result.fcsid!='') { window.location.href=result.foxylink; } else { alert ("no, something was wrong..."); } } }; jQuery.ajax(params); } function PWShowPriceFromAlexCart(code) { let par="action=AlexCartShowPrice"; par+="&code="+encodeURIComponent(code); par+="&cid="+encodeURIComponent(GetAlexCartID()); let params = { type: "POST", url: "https://abettersign.com/alexcart/cart.php", data: par, dataType: 'json', success: function(result){ optbox = jQuery("
", { id: 'optbox', style: 'width:auto;height:auto;', html: result.html}); optbox.dialog({ title : "Quantity Discounts", draggable: false, resizable: false, closeOnEscape: true, modal : true, close: function( event, ui ) {jQuery( this ).dialog( "close" ); jQuery('#optbox').remove();}, width: 'auto', height: 'auto', position: { my: "center", at: "top", of: window }, create: function( event, ui ) { jQuery(this).parent().css("maxWidth", "980px"); }, open: function () { jQuery(this).parent().find(".ui-dialog-titlebar").append(''); jQuery('#pw_optbox_customclose').on('click', function () { optbox.dialog('close');}); }, buttons: { "Close": function() { jQuery( this ).dialog( "close" ); jQuery('#optbox').remove(); } } }); } }; jQuery.ajax(params); } function PWShowOptionDesc(pg) { let html="